]> sourceware.org Git - lvm2.git/blame - configure
[REGEX] calculate dfa states on demand
[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
e2997b73 739PKG_CONFIG
ec6a6fbe
AK
740POW_LIB
741LIBOBJS
742ALLOCA
743CSCOPE_CMD
744CFLOW_CMD
745RANLIB
746MKDIR_P
747SET_MAKE
748LN_S
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752EGREP
753GREP
754CPP
755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762AWK
763SED
764target_os
765target_vendor
766target_cpu
767target
768host_os
769host_vendor
770host_cpu
771host
772build_os
773build_vendor
774build_cpu
775build
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
ad6254c5 813ac_subst_files=''
ec6a6fbe
AK
814ac_user_opts='
815enable_option_checking
816enable_static_link
817with_user
818with_group
819with_device_uid
820with_device_gid
821with_device_mode
822enable_lvm1_fallback
823with_lvm1
824with_pool
825with_cluster
826with_snapshots
827with_mirrors
8fea97b7 828with_replicators
ec6a6fbe
AK
829enable_readline
830enable_realtime
831with_clvmd
8c4e8a18 832with_clvmd_pidfile
66fd4529
AK
833enable_cmirrord
834with_cmirrord_pidfile
ec6a6fbe
AK
835enable_debug
836with_optimisation
837enable_profiling
838enable_devmapper
a5f46f6a
AK
839enable_udev_sync
840enable_udev_rules
ec6a6fbe 841enable_compat
95eaa683 842enable_units_compat
ec6a6fbe
AK
843enable_ioctl
844enable_o_direct
572fefeb 845enable_applib
ec6a6fbe
AK
846enable_cmdlib
847enable_pkgconfig
23b059e7 848enable_write_install
ec6a6fbe
AK
849enable_fsadm
850enable_dmeventd
851enable_selinux
852enable_nls
853with_localedir
854with_confdir
855with_staticdir
856with_usrlibdir
857with_usrsbindir
a5f46f6a 858with_udev_prefix
78ce7acc 859with_udevdir
ec6a6fbe
AK
860with_dmeventd_pidfile
861with_dmeventd_path
3399ae32
AK
862with_default_system_dir
863with_default_archive_subdir
864with_default_backup_subdir
865with_default_cache_subdir
866with_default_locking_dir
ec6a6fbe
AK
867with_interface
868'
7a197a62
AK
869 ac_precious_vars='build_alias
870host_alias
871target_alias
872CC
873CFLAGS
874LDFLAGS
25fbec5b 875LIBS
7a197a62 876CPPFLAGS
e2997b73
AK
877CPP
878PKG_CONFIG
a946372e
AK
879PKGCONFIGINIT_CFLAGS
880PKGCONFIGINIT_LIBS
881CCS_CFLAGS
882CCS_LIBS
883GULM_CFLAGS
884GULM_LIBS
885CMAN_CFLAGS
886CMAN_LIBS
887COROSYNC_CFLAGS
888COROSYNC_LIBS
e2997b73
AK
889QUORUM_CFLAGS
890QUORUM_LIBS
a946372e
AK
891SALCK_CFLAGS
892SALCK_LIBS
e2997b73
AK
893CONFDB_CFLAGS
894CONFDB_LIBS
895CPG_CFLAGS
a946372e
AK
896CPG_LIBS
897DLM_CFLAGS
90c80887
AK
898DLM_LIBS
899SACKPT_CFLAGS
900SACKPT_LIBS'
7a197a62 901
795ca3e5
AK
902
903# Initialize some variables set by options.
ad6254c5
AK
904ac_init_help=
905ac_init_version=false
ec6a6fbe
AK
906ac_unrecognized_opts=
907ac_unrecognized_sep=
795ca3e5
AK
908# The variables have the same names as the options, with
909# dashes changed to underlines.
ad6254c5 910cache_file=/dev/null
795ca3e5 911exec_prefix=NONE
795ca3e5 912no_create=
795ca3e5
AK
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
795ca3e5
AK
921verbose=
922x_includes=NONE
923x_libraries=NONE
ad6254c5
AK
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 930# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
7a197a62
AK
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
795ca3e5
AK
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
795ca3e5
AK
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
7a197a62
AK
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
795ca3e5 950
795ca3e5 951ac_prev=
7a197a62 952ac_dashdash=
795ca3e5
AK
953for ac_option
954do
795ca3e5
AK
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
7a197a62 957 eval $ac_prev=\$ac_option
795ca3e5
AK
958 ac_prev=
959 continue
960 fi
961
7a197a62
AK
962 case $ac_option in
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *) ac_optarg=yes ;;
965 esac
795ca3e5
AK
966
967 # Accept the important Cygnus configure options, so we can diagnose typos.
968
7a197a62
AK
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
795ca3e5
AK
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 976 bindir=$ac_optarg ;;
795ca3e5
AK
977
978 -build | --build | --buil | --bui | --bu)
ad6254c5 979 ac_prev=build_alias ;;
795ca3e5 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 981 build_alias=$ac_optarg ;;
795ca3e5
AK
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
795ca3e5 992
7a197a62 993 -datadir | --datadir | --datadi | --datad)
795ca3e5 994 ac_prev=datadir ;;
7a197a62 995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 996 datadir=$ac_optarg ;;
795ca3e5 997
7a197a62
AK
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
795ca3e5 1005 -disable-* | --disable-*)
ec6a6fbe 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1007 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1010 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
7a197a62
AK
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
795ca3e5
AK
1031
1032 -enable-* | --enable-*)
ec6a6fbe 1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1034 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1037 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042"enable_$ac_useropt"
1043"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
ad6254c5 1056 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
ad6254c5
AK
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
795ca3e5
AK
1068
1069 -host | --host | --hos | --ho)
ad6254c5 1070 ac_prev=host_alias ;;
795ca3e5 1071 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1072 host_alias=$ac_optarg ;;
795ca3e5 1073
7a197a62
AK
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
795ca3e5
AK
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1085 includedir=$ac_optarg ;;
795ca3e5
AK
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1090 infodir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1095 libdir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1102 libexecdir=$ac_optarg ;;
795ca3e5 1103
7a197a62
AK
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
795ca3e5 1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1110 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1114 localstatedir=$ac_optarg ;;
795ca3e5
AK
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1119 mandir=$ac_optarg ;;
795ca3e5
AK
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1126 | --no-cr | --no-c | -n)
795ca3e5
AK
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1140 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1145 prefix=$ac_optarg ;;
795ca3e5
AK
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1152 program_prefix=$ac_optarg ;;
795ca3e5
AK
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1159 program_suffix=$ac_optarg ;;
795ca3e5
AK
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1176 program_transform_name=$ac_optarg ;;
795ca3e5 1177
7a197a62
AK
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
795ca3e5
AK
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
ad6254c5 1196 sbindir=$ac_optarg ;;
795ca3e5
AK
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
ad6254c5 1207 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
ad6254c5 1212 site=$ac_optarg ;;
795ca3e5
AK
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1217 srcdir=$ac_optarg ;;
795ca3e5
AK
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1224 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1227 ac_prev=target_alias ;;
795ca3e5 1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1229 target_alias=$ac_optarg ;;
795ca3e5
AK
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
ad6254c5
AK
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
795ca3e5
AK
1236
1237 -with-* | --with-*)
ec6a6fbe 1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1239 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1242 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1253
1254 -without-* | --without-*)
ec6a6fbe 1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1256 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1259 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
795ca3e5
AK
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1280 x_includes=$ac_optarg ;;
795ca3e5
AK
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1287 x_libraries=$ac_optarg ;;
795ca3e5 1288
ec6a6fbe 1289 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1290Try \`$0 --help' for more information." >&2
1291 { (exit 1); exit 1; }; }
795ca3e5
AK
1292 ;;
1293
ad6254c5
AK
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1298 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1299 { (exit 1); exit 1; }; }
7a197a62 1300 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1301 export $ac_envvar ;;
1302
795ca3e5 1303 *)
ad6254c5 1304 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
ad6254c5 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1316 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1317 { (exit 1); exit 1; }; }
795ca3e5 1318fi
795ca3e5 1319
ec6a6fbe
AK
1320if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1324 { (exit 1); exit 1; }; } ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327fi
1328
1329# Check all directory arguments for consistency.
7a197a62
AK
1330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
795ca3e5 1334do
7a197a62 1335 eval ac_val=\$$ac_var
ec6a6fbe
AK
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
ad6254c5 1343 case $ac_val in
7a197a62
AK
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1346 esac
ec6a6fbe 1347 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1348 { (exit 1); exit 1; }; }
795ca3e5
AK
1349done
1350
ad6254c5
AK
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
ec6a6fbe 1362 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367fi
8106cdd5 1368
ad6254c5
AK
1369ac_tool_prefix=
1370test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372test "$silent" = yes && exec 6>/dev/null
795ca3e5 1373
795ca3e5 1374
7a197a62
AK
1375ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376ac_ls_di=`ls -di .` &&
1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1378 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1379 { (exit 1); exit 1; }; }
1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1381 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1382 { (exit 1); exit 1; }; }
1383
1384
795ca3e5
AK
1385# Find the source files, if location was not specified.
1386if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
7a197a62 1388 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1389 ac_confdir=`$as_dirname -- "$as_myself" ||
1390$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$as_myself" : 'X\(//\)[^/]' \| \
1392 X"$as_myself" : 'X\(//\)$' \| \
1393 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394$as_echo X"$as_myself" |
7a197a62
AK
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\).*/{
1408 s//\1/
1409 q
1410 }
1411 s/.*/./; q'`
795ca3e5 1412 srcdir=$ac_confdir
7a197a62 1413 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1414 srcdir=..
1415 fi
1416else
1417 ac_srcdir_defaulted=no
1418fi
7a197a62
AK
1419if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1421 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1422 { (exit 1); exit 1; }; }
795ca3e5 1423fi
7a197a62
AK
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
ec6a6fbe 1426 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1427 { (exit 1); exit 1; }; }
7a197a62
AK
1428 pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
ad6254c5
AK
1445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453\`configure' configures this package to adapt to many kinds of systems.
1454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
ad6254c5
AK
1473Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1475 [$ac_default_prefix]
ad6254c5 1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1477 [PREFIX]
ad6254c5
AK
1478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
ec6a6fbe
AK
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1506_ACEOF
1507
1508 cat <<\_ACEOF
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518
1519 cat <<\_ACEOF
1520
1521Optional Features:
ec6a6fbe 1522 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1525 --enable-static_link use this to link the tools to their libraries
1526 statically (default is dynamic linking
1527 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1528 device-mapper is missing from the kernel
71082be4
ZK
1529 --disable-readline disable readline support
1530 --enable-realtime enable realtime clock support
1531 --enable-cmirrord enable the cluster mirror log daemon
1532 --enable-debug enable debugging
1533 --enable-profiling gather gcov profiling data
1534 --disable-devmapper disable LVM2 device-mapper interaction
1535 --enable-udev_sync enable synchronisation with udev processing
1536 --enable-udev_rules install rule files needed for udev synchronisation
1537 --enable-compat enable support for old device-mapper versions
1538 --enable-units-compat enable output compatibility with old versions that
1539 that do not use KiB-style unit suffixes
1540 --disable-driver disable calls to device-mapper in the kernel
1541 --disable-o_direct disable O_DIRECT
1542 --enable-applib build application library
1543 --enable-cmdlib build shared command library
1544 --enable-pkgconfig install pkgconfig support
1545 --enable-write_install install user writable files
1546 --disable-fsadm disable fsadm
1547 --enable-dmeventd enable the device-mapper event daemon
1548 --disable-selinux disable selinux support
1549 --enable-nls enable Native Language Support
ad6254c5
AK
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1554 --with-user=USER set the owner of installed files [USER=]
1555 --with-group=GROUP set the group owner of installed files [GROUP=]
1556 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1557 --with-device-gid=GID set the group used for new device nodes [GID=0]
1558 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1559 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1560 [TYPE=internal]
ad6254c5 1561 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1562 [TYPE=internal]
1563 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1564 [TYPE=internal]
1565 --with-snapshots=TYPE snapshot support: internal/shared/none
1566 [TYPE=internal]
1567 --with-mirrors=TYPE mirror support: internal/shared/none
1568 [TYPE=internal]
1569 --with-replicators=TYPE replicator support: internal/shared/none
1570 [TYPE=none]
1571 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1572 The following cluster manager combinations are valid:
a946372e
AK
1573 * cman,gulm (RHEL4 or equivalent)
1574 * cman (RHEL5 or equivalent)
1575 * cman,corosync,openais (or selection of them)
1091650a 1576 * singlenode (localhost only)
a946372e
AK
1577 * all (autodetect)
1578 * none (disable build)
71082be4 1579 [TYPE=none]
8c4e8a18
FDN
1580 --with-clvmd-pidfile=PATH
1581 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1582 --with-cmirrord-pidfile=PATH
1583 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1584 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1585 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1586 --with-confdir=DIR configuration files in DIR [/etc]
1587 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1588 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1589 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1590 --with-udev-prefix=UPREFIX
1591 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1592 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1593 --with-dmeventd-pidfile=PATH
1594 dmeventd pidfile [/var/run/dmeventd.pid]
1595 --with-dmeventd-path=PATH
1596 dmeventd path [EPREFIX/sbin/dmeventd]
1597 --with-default-system-dir=DIR
1598 default LVM system directory [/etc/lvm]
1599 --with-default-archive-subdir=SUBDIR
1600 default metadata archive subdir [archive]
1601 --with-default-backup-subdir=SUBDIR
1602 default metadata backup subdir [backup]
1603 --with-default-cache-subdir=SUBDIR
1604 default metadata cache subdir [cache]
1605 --with-default-locking-dir=DIR
1606 default locking directory [/var/lock/lvm]
1607 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1608
1609Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
25fbec5b 1614 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1615 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1616 you have headers in a nonstandard directory <include dir>
ad6254c5 1617 CPP C preprocessor
e2997b73 1618 PKG_CONFIG path to pkg-config utility
a946372e
AK
1619 PKGCONFIGINIT_CFLAGS
1620 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1621 PKGCONFIGINIT_LIBS
1622 linker flags for PKGCONFIGINIT, overriding pkg-config
1623 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1624 CCS_LIBS linker flags for CCS, overriding pkg-config
1625 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1626 GULM_LIBS linker flags for GULM, overriding pkg-config
1627 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1628 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1629 COROSYNC_CFLAGS
1630 C compiler flags for COROSYNC, overriding pkg-config
1631 COROSYNC_LIBS
1632 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1633 QUORUM_CFLAGS
1634 C compiler flags for QUORUM, overriding pkg-config
1635 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1636 SALCK_CFLAGS
1637 C compiler flags for SALCK, overriding pkg-config
1638 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1639 CONFDB_CFLAGS
1640 C compiler flags for CONFDB, overriding pkg-config
1641 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1642 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1643 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1644 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1645 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1646 SACKPT_CFLAGS
1647 C compiler flags for SACKPT, overriding pkg-config
1648 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1649
1650Use these variables to override the choices made by `configure' or to help
1651it to find libraries and programs with nonstandard names/locations.
1652
1653_ACEOF
7a197a62 1654ac_status=$?
ad6254c5
AK
1655fi
1656
1657if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
ad6254c5 1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 continue
ad6254c5
AK
1663 ac_builddir=.
1664
7a197a62
AK
1665case "$ac_dir" in
1666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667*)
ec6a6fbe 1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1669 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674 esac ;;
1675esac
1676ac_abs_top_builddir=$ac_pwd
1677ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678# for backward compatibility:
1679ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1680
1681case $srcdir in
7a197a62 1682 .) # We are building in place.
ad6254c5 1683 ac_srcdir=.
7a197a62
AK
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1687 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1690 *) # Relative name.
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1694esac
7a197a62
AK
1695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1705 else
ec6a6fbe 1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1707 fi || ac_status=$?
1708 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1709 done
1710fi
1711
7a197a62 1712test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1713if $ac_init_version; then
1714 cat <<\_ACEOF
7a197a62 1715configure
ec6a6fbe 1716generated by GNU Autoconf 2.63
ad6254c5 1717
7a197a62 1718Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17192002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1720This configure script is free software; the Free Software Foundation
1721gives unlimited permission to copy, distribute and modify it.
1722_ACEOF
7a197a62 1723 exit
ad6254c5 1724fi
7a197a62 1725cat >config.log <<_ACEOF
ad6254c5
AK
1726This file contains any messages produced by compilers while
1727running configure, to aid debugging if configure makes a mistake.
1728
1729It was created by $as_me, which was
ec6a6fbe 1730generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1731
1732 $ $0 $@
1733
1734_ACEOF
7a197a62 1735exec 5>>config.log
ad6254c5
AK
1736{
1737cat <<_ASUNAME
1738## --------- ##
1739## Platform. ##
1740## --------- ##
1741
1742hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750
1751/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1752/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1753/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1754/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1755/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1756/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1757/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1758
1759_ASUNAME
1760
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
ec6a6fbe 1766 $as_echo "PATH: $as_dir"
ad6254c5 1767done
7a197a62 1768IFS=$as_save_IFS
ad6254c5
AK
1769
1770} >&5
1771
1772cat >&5 <<_ACEOF
1773
1774
1775## ----------- ##
1776## Core tests. ##
1777## ----------- ##
1778
1779_ACEOF
1780
1781
1782# Keep a trace of the command line.
1783# Strip out --no-create and --no-recursion so they do not pile up.
1784# Strip out --silent because we don't want to record it for future runs.
1785# Also quote any args containing shell meta-characters.
1786# Make two passes to allow for proper duplicate-argument suppression.
1787ac_configure_args=
1788ac_configure_args0=
1789ac_configure_args1=
ad6254c5
AK
1790ac_must_keep_next=false
1791for ac_pass in 1 2
1792do
1793 for ac_arg
1794 do
1795 case $ac_arg in
1796 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1798 | -silent | --silent | --silen | --sile | --sil)
1799 continue ;;
7a197a62 1800 *\'*)
ec6a6fbe 1801 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1802 esac
1803 case $ac_pass in
1804 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 2)
1806 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1807 if test $ac_must_keep_next = true; then
8a2fc586 1808 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1809 else
8a2fc586
AK
1810 case $ac_arg in
1811 *=* | --config-cache | -C | -disable-* | --disable-* \
1812 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1813 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1814 | -with-* | --with-* | -without-* | --without-* | --x)
1815 case "$ac_configure_args0 " in
1816 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1817 esac
1818 ;;
1819 -* ) ac_must_keep_next=true ;;
1820 esac
ad6254c5 1821 fi
7a197a62 1822 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1823 ;;
1824 esac
1825 done
1826done
1827$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1828$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829
1830# When interrupted or exit'd, cleanup temporary files, and complete
1831# config.log. We remove comments because anyway the quotes in there
1832# would cause problems or look ugly.
7a197a62
AK
1833# WARNING: Use '\'' to represent an apostrophe within the trap.
1834# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1835trap 'exit_status=$?
1836 # Save into config.log some information that might help in debugging.
1837 {
1838 echo
1839
1840 cat <<\_ASBOX
1841## ---------------- ##
1842## Cache variables. ##
1843## ---------------- ##
1844_ASBOX
1845 echo
1846 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1847(
1848 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in #(
1851 *${as_nl}*)
1852 case $ac_var in #(
ec6a6fbe
AK
1853 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1854$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1855 esac
1856 case $ac_var in #(
1857 _ | IFS | as_nl) ;; #(
ec6a6fbe 1858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1859 *) $as_unset $ac_var ;;
1860 esac ;;
1861 esac
1862 done
ad6254c5 1863 (set) 2>&1 |
7a197a62
AK
1864 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1865 *${as_nl}ac_space=\ *)
ad6254c5 1866 sed -n \
7a197a62
AK
1867 "s/'\''/'\''\\\\'\'''\''/g;
1868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 ;; #(
ad6254c5 1870 *)
7a197a62 1871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1872 ;;
7a197a62
AK
1873 esac |
1874 sort
1875)
ad6254c5
AK
1876 echo
1877
1878 cat <<\_ASBOX
1879## ----------------- ##
1880## Output variables. ##
1881## ----------------- ##
1882_ASBOX
1883 echo
1884 for ac_var in $ac_subst_vars
1885 do
7a197a62
AK
1886 eval ac_val=\$$ac_var
1887 case $ac_val in
ec6a6fbe 1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1889 esac
ec6a6fbe 1890 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1891 done | sort
1892 echo
1893
1894 if test -n "$ac_subst_files"; then
1895 cat <<\_ASBOX
7a197a62
AK
1896## ------------------- ##
1897## File substitutions. ##
1898## ------------------- ##
ad6254c5
AK
1899_ASBOX
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
7a197a62
AK
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
ec6a6fbe 1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1906 esac
ec6a6fbe 1907 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 cat <<\_ASBOX
1914## ----------- ##
1915## confdefs.h. ##
1916## ----------- ##
1917_ASBOX
1918 echo
7a197a62 1919 cat confdefs.h
ad6254c5
AK
1920 echo
1921 fi
1922 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1923 $as_echo "$as_me: caught signal $ac_signal"
1924 $as_echo "$as_me: exit $exit_status"
ad6254c5 1925 } >&5
7a197a62
AK
1926 rm -f core *.core core.conftest.* &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1928 exit $exit_status
7a197a62 1929' 0
ad6254c5
AK
1930for ac_signal in 1 2 13 15; do
1931 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1932done
1933ac_signal=0
1934
1935# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1936rm -f -r conftest* confdefs.h
ad6254c5
AK
1937
1938# Predefined preprocessor variables.
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_NAME "$PACKAGE_NAME"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_VERSION "$PACKAGE_VERSION"
1952_ACEOF
8106cdd5 1953
ad6254c5
AK
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_STRING "$PACKAGE_STRING"
1957_ACEOF
1958
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962_ACEOF
1963
1964
1965# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1966# Prefer an explicitly selected file to automatically selected ones.
1967ac_site_file1=NONE
1968ac_site_file2=NONE
7a197a62 1969if test -n "$CONFIG_SITE"; then
ec6a6fbe 1970 ac_site_file1=$CONFIG_SITE
7a197a62 1971elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1972 ac_site_file1=$prefix/share/config.site
1973 ac_site_file2=$prefix/etc/config.site
7a197a62 1974else
ec6a6fbe
AK
1975 ac_site_file1=$ac_default_prefix/share/config.site
1976 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1977fi
ec6a6fbe 1978for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1979do
ec6a6fbe 1980 test "x$ac_site_file" = xNONE && continue
795ca3e5 1981 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1982 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1983$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1984 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1985 . "$ac_site_file"
1986 fi
1987done
1988
1989if test -r "$cache_file"; then
ad6254c5
AK
1990 # Some versions of bash will fail to source /dev/null (special
1991 # files actually), so we avoid doing that.
1992 if test -f "$cache_file"; then
ec6a6fbe
AK
1993 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1994$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1995 case $cache_file in
7a197a62
AK
1996 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997 *) . "./$cache_file";;
ad6254c5
AK
1998 esac
1999 fi
795ca3e5 2000else
ec6a6fbe
AK
2001 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2002$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2003 >$cache_file
2004fi
2005
2006# Check that the precious variables saved in the cache have kept the same
2007# value.
2008ac_cache_corrupted=false
7a197a62 2009for ac_var in $ac_precious_vars; do
ad6254c5
AK
2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2014 case $ac_old_set,$ac_new_set in
2015 set,)
ec6a6fbe
AK
2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2017$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2018 ac_cache_corrupted=: ;;
2019 ,set)
ec6a6fbe
AK
2020 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2021$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2022 ac_cache_corrupted=: ;;
2023 ,);;
2024 *)
2025 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2026 # differences in whitespace do not lead to failure.
2027 ac_old_val_w=`echo x $ac_old_val`
2028 ac_new_val_w=`echo x $ac_new_val`
2029 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2030 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 ac_cache_corrupted=:
2033 else
2034 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2035$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2036 eval $ac_var=\$ac_old_val
2037 fi
2038 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2039$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2040 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2041$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2042 fi;;
2043 esac
2044 # Pass precious variables to config.status.
2045 if test "$ac_new_set" = set; then
2046 case $ac_new_val in
ec6a6fbe 2047 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2048 *) ac_arg=$ac_var=$ac_new_val ;;
2049 esac
2050 case " $ac_configure_args " in
2051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2052 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2053 esac
2054 fi
2055done
2056if $ac_cache_corrupted; then
ec6a6fbe
AK
2057 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2060$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2061 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2062$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2063 { (exit 1); exit 1; }; }
795ca3e5
AK
2064fi
2065
ad6254c5
AK
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
7a197a62
AK
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2087
795ca3e5
AK
2088
2089
7a197a62 2090ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2091
2092
80992638 2093################################################################################
795ca3e5 2094ac_aux_dir=
7a197a62
AK
2095for ac_dir in autoconf "$srcdir"/autoconf; do
2096 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 break
7a197a62 2100 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 break
7a197a62 2104 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/shtool install -c"
2107 break
795ca3e5
AK
2108 fi
2109done
2110if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2111 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2112$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2113 { (exit 1); exit 1; }; }
795ca3e5 2114fi
7a197a62
AK
2115
2116# These three variables are undocumented and unsupported,
2117# and are intended to be withdrawn in a future Autoconf release.
2118# They can cause serious problems if a builder's source tree is in a directory
2119# whose full name contains unusual characters.
2120ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123
8ce0cbda
AK
2124
2125
ad6254c5 2126################################################################################
8ce0cbda 2127# Make sure we can run config.sub.
7a197a62 2128$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2129 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2130$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2131 { (exit 1); exit 1; }; }
2132
ec6a6fbe
AK
2133{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2134$as_echo_n "checking build system type... " >&6; }
ad6254c5 2135if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2136 $as_echo_n "(cached) " >&6
ad6254c5 2137else
7a197a62
AK
2138 ac_build_alias=$build_alias
2139test "x$ac_build_alias" = x &&
2140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2141test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2142 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2144 { (exit 1); exit 1; }; }
7a197a62 2145ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2146 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2147$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2148 { (exit 1); exit 1; }; }
2149
2150fi
ec6a6fbe
AK
2151{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2153case $ac_cv_build in
2154*-*-*) ;;
ec6a6fbe
AK
2155*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2156$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2157 { (exit 1); exit 1; }; };;
2158esac
ad6254c5 2159build=$ac_cv_build
7a197a62
AK
2160ac_save_IFS=$IFS; IFS='-'
2161set x $ac_cv_build
2162shift
2163build_cpu=$1
2164build_vendor=$2
2165shift; shift
2166# Remember, the first character of IFS is used to create $*,
2167# except with old shells:
2168build_os=$*
2169IFS=$ac_save_IFS
2170case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2171
2172
ec6a6fbe
AK
2173{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2174$as_echo_n "checking host system type... " >&6; }
ad6254c5 2175if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2176 $as_echo_n "(cached) " >&6
ad6254c5 2177else
7a197a62
AK
2178 if test "x$host_alias" = x; then
2179 ac_cv_host=$ac_cv_build
2180else
2181 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2182 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2183$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2184 { (exit 1); exit 1; }; }
7a197a62 2185fi
ad6254c5
AK
2186
2187fi
ec6a6fbe
AK
2188{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2189$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2190case $ac_cv_host in
2191*-*-*) ;;
ec6a6fbe
AK
2192*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2193$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2194 { (exit 1); exit 1; }; };;
2195esac
ad6254c5 2196host=$ac_cv_host
7a197a62
AK
2197ac_save_IFS=$IFS; IFS='-'
2198set x $ac_cv_host
2199shift
2200host_cpu=$1
2201host_vendor=$2
2202shift; shift
2203# Remember, the first character of IFS is used to create $*,
2204# except with old shells:
2205host_os=$*
2206IFS=$ac_save_IFS
2207case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2208
2209
ec6a6fbe
AK
2210{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2211$as_echo_n "checking target system type... " >&6; }
ad6254c5 2212if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2213 $as_echo_n "(cached) " >&6
ad6254c5 2214else
7a197a62
AK
2215 if test "x$target_alias" = x; then
2216 ac_cv_target=$ac_cv_host
2217else
2218 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2219 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2220$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2221 { (exit 1); exit 1; }; }
7a197a62 2222fi
8ce0cbda 2223
ad6254c5 2224fi
ec6a6fbe
AK
2225{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2226$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2227case $ac_cv_target in
2228*-*-*) ;;
ec6a6fbe
AK
2229*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2230$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2231 { (exit 1); exit 1; }; };;
2232esac
ad6254c5 2233target=$ac_cv_target
7a197a62
AK
2234ac_save_IFS=$IFS; IFS='-'
2235set x $ac_cv_target
2236shift
2237target_cpu=$1
2238target_vendor=$2
2239shift; shift
2240# Remember, the first character of IFS is used to create $*,
2241# except with old shells:
2242target_os=$*
2243IFS=$ac_save_IFS
2244case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2245
8ce0cbda 2246
ad6254c5
AK
2247# The aliases save the names the user supplied, while $host etc.
2248# will get canonicalized.
2249test -n "$target_alias" &&
8ce0cbda
AK
2250 test "$program_prefix$program_suffix$program_transform_name" = \
2251 NONENONEs,x,x, &&
2252 program_prefix=${target_alias}-
2253
8ce0cbda
AK
2254case "$host_os" in
2255 linux*)
7f54ef36 2256 CFLAGS="$CFLAGS"
8ce0cbda
AK
2257 COPTIMISE_FLAG="-O2"
2258 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2259 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2260 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2261 LDDEPS="$LDDEPS .export.sym"
2262 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2263 LIB_SUFFIX=so
8ce0cbda
AK
2264 DEVMAPPER=yes
2265 ODIRECT=yes
d0191583 2266 DM_IOCTLS=yes
8ce0cbda
AK
2267 SELINUX=yes
2268 CLUSTER=internal
93bd259b 2269 FSADM=yes
d0191583 2270 ;;
8ce0cbda
AK
2271 darwin*)
2272 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2273 COPTIMISE_FLAG="-O2"
2274 CLDFLAGS="$CLDFLAGS"
2275 CLDWHOLEARCHIVE="-all_load"
2276 CLDNOWHOLEARCHIVE=
d0191583 2277 LIB_SUFFIX=dylib
a653923f 2278 DEVMAPPER=yes
8ce0cbda 2279 ODIRECT=no
d0191583 2280 DM_IOCTLS=no
8ce0cbda
AK
2281 SELINUX=no
2282 CLUSTER=none
d0191583
JM
2283 FSADM=no
2284 ;;
8ce0cbda
AK
2285esac
2286
80992638 2287################################################################################
ec6a6fbe
AK
2288{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2289$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2290if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2291 $as_echo_n "(cached) " >&6
5951ef33
AK
2292else
2293 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2294 for ac_i in 1 2 3 4 5 6 7; do
2295 ac_script="$ac_script$as_nl$ac_script"
2296 done
ec6a6fbe 2297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2298 $as_unset ac_script || ac_script=
ec6a6fbe 2299 if test -z "$SED"; then
5951ef33 2300 ac_path_SED_found=false
ec6a6fbe
AK
2301 # Loop through the user's path and test for each of PROGNAME-LIST
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2303for as_dir in $PATH
2304do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_prog in sed gsed; do
ec6a6fbe
AK
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2310 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2311# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2312 # Check for GNU $ac_path_SED
2313case `"$ac_path_SED" --version 2>&1` in
2314*GNU*)
2315 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2316*)
2317 ac_count=0
ec6a6fbe 2318 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2319 while :
2320 do
2321 cat "conftest.in" "conftest.in" >"conftest.tmp"
2322 mv "conftest.tmp" "conftest.in"
2323 cp "conftest.in" "conftest.nl"
ec6a6fbe 2324 $as_echo '' >> "conftest.nl"
5951ef33
AK
2325 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2327 ac_count=`expr $ac_count + 1`
2328 if test $ac_count -gt ${ac_path_SED_max-0}; then
2329 # Best one so far, save it but keep looking for a better one
2330 ac_cv_path_SED="$ac_path_SED"
2331 ac_path_SED_max=$ac_count
2332 fi
2333 # 10*(2^10) chars as input seems more than enough
2334 test $ac_count -gt 10 && break
2335 done
2336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2337esac
2338
ec6a6fbe
AK
2339 $ac_path_SED_found && break 3
2340 done
5951ef33
AK
2341 done
2342done
5951ef33 2343IFS=$as_save_IFS
ec6a6fbe
AK
2344 if test -z "$ac_cv_path_SED"; then
2345 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2346$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2347 { (exit 1); exit 1; }; }
ec6a6fbe 2348 fi
5951ef33
AK
2349else
2350 ac_cv_path_SED=$SED
2351fi
2352
2353fi
ec6a6fbe
AK
2354{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2355$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2356 SED="$ac_cv_path_SED"
2357 rm -f conftest.sed
2358
ad6254c5 2359for ac_prog in gawk mawk nawk awk
795ca3e5 2360do
ad6254c5 2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2362set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2365if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2366 $as_echo_n "(cached) " >&6
795ca3e5
AK
2367else
2368 if test -n "$AWK"; then
2369 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2370else
ad6254c5
AK
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2378 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2380 break 2
2381 fi
2382done
2383done
7a197a62 2384IFS=$as_save_IFS
ad6254c5 2385
795ca3e5
AK
2386fi
2387fi
ad6254c5 2388AWK=$ac_cv_prog_AWK
795ca3e5 2389if test -n "$AWK"; then
ec6a6fbe
AK
2390 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2391$as_echo "$AWK" >&6; }
795ca3e5 2392else
ec6a6fbe
AK
2393 { $as_echo "$as_me:$LINENO: result: no" >&5
2394$as_echo "no" >&6; }
795ca3e5
AK
2395fi
2396
7a197a62 2397
ad6254c5
AK
2398 test -n "$AWK" && break
2399done
2400
2401ac_ext=c
2402ac_cpp='$CPP $CPPFLAGS'
2403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2408set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2410$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2411if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2412 $as_echo_n "(cached) " >&6
ad6254c5
AK
2413else
2414 if test -n "$CC"; then
2415 ac_cv_prog_CC="$CC" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2424 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2426 break 2
2427 fi
2428done
8106cdd5 2429done
7a197a62 2430IFS=$as_save_IFS
8106cdd5 2431
ad6254c5
AK
2432fi
2433fi
2434CC=$ac_cv_prog_CC
2435if test -n "$CC"; then
ec6a6fbe
AK
2436 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2437$as_echo "$CC" >&6; }
ad6254c5 2438else
ec6a6fbe
AK
2439 { $as_echo "$as_me:$LINENO: result: no" >&5
2440$as_echo "no" >&6; }
ad6254c5
AK
2441fi
2442
7a197a62 2443
ad6254c5
AK
2444fi
2445if test -z "$ac_cv_prog_CC"; then
2446 ac_ct_CC=$CC
2447 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2448set dummy gcc; ac_word=$2
ec6a6fbe
AK
2449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2450$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2451if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2452 $as_echo_n "(cached) " >&6
ad6254c5
AK
2453else
2454 if test -n "$ac_ct_CC"; then
2455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2464 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2466 break 2
2467 fi
2468done
2469done
7a197a62 2470IFS=$as_save_IFS
ad6254c5
AK
2471
2472fi
2473fi
2474ac_ct_CC=$ac_cv_prog_ac_ct_CC
2475if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2476 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2477$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2478else
ec6a6fbe
AK
2479 { $as_echo "$as_me:$LINENO: result: no" >&5
2480$as_echo "no" >&6; }
ad6254c5
AK
2481fi
2482
7a197a62
AK
2483 if test "x$ac_ct_CC" = x; then
2484 CC=""
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487yes:)
ec6a6fbe
AK
2488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2490ac_tool_warned=yes ;;
2491esac
2492 CC=$ac_ct_CC
2493 fi
ad6254c5
AK
2494else
2495 CC="$ac_cv_prog_CC"
2496fi
2497
2498if test -z "$CC"; then
7a197a62
AK
2499 if test -n "$ac_tool_prefix"; then
2500 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2501set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2503$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2504if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2505 $as_echo_n "(cached) " >&6
8106cdd5
AK
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
ad6254c5
AK
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2517 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2519 break 2
2520 fi
2521done
2522done
7a197a62 2523IFS=$as_save_IFS
ad6254c5 2524
8106cdd5
AK
2525fi
2526fi
ad6254c5 2527CC=$ac_cv_prog_CC
8106cdd5 2528if test -n "$CC"; then
ec6a6fbe
AK
2529 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2530$as_echo "$CC" >&6; }
ad6254c5 2531else
ec6a6fbe
AK
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533$as_echo "no" >&6; }
ad6254c5
AK
2534fi
2535
8106cdd5 2536
7a197a62 2537 fi
ad6254c5 2538fi
795ca3e5
AK
2539if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541set dummy cc; ac_word=$2
ec6a6fbe
AK
2542{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2544if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2545 $as_echo_n "(cached) " >&6
795ca3e5
AK
2546else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
795ca3e5 2550 ac_prog_rejected=no
ad6254c5
AK
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2560 continue
2561 fi
2562 ac_cv_prog_CC="cc"
ec6a6fbe 2563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2564 break 2
2565 fi
2566done
2567done
7a197a62 2568IFS=$as_save_IFS
ad6254c5 2569
795ca3e5
AK
2570if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2573 shift
ad6254c5 2574 if test $# != 0; then
795ca3e5
AK
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2578 shift
ad6254c5 2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2580 fi
2581fi
2582fi
2583fi
ad6254c5 2584CC=$ac_cv_prog_CC
795ca3e5 2585if test -n "$CC"; then
ec6a6fbe
AK
2586 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2587$as_echo "$CC" >&6; }
795ca3e5 2588else
ec6a6fbe
AK
2589 { $as_echo "$as_me:$LINENO: result: no" >&5
2590$as_echo "no" >&6; }
795ca3e5
AK
2591fi
2592
7a197a62 2593
ad6254c5
AK
2594fi
2595if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
7a197a62 2597 for ac_prog in cl.exe
ad6254c5
AK
2598 do
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2603if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2604 $as_echo_n "(cached) " >&6
795ca3e5
AK
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
ad6254c5
AK
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2618 break 2
2619 fi
2620done
2621done
7a197a62 2622IFS=$as_save_IFS
ad6254c5 2623
795ca3e5
AK
2624fi
2625fi
ad6254c5 2626CC=$ac_cv_prog_CC
795ca3e5 2627if test -n "$CC"; then
ec6a6fbe
AK
2628 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2629$as_echo "$CC" >&6; }
795ca3e5 2630else
ec6a6fbe
AK
2631 { $as_echo "$as_me:$LINENO: result: no" >&5
2632$as_echo "no" >&6; }
795ca3e5 2633fi
ad6254c5 2634
7a197a62 2635
ad6254c5
AK
2636 test -n "$CC" && break
2637 done
2638fi
2639if test -z "$CC"; then
2640 ac_ct_CC=$CC
7a197a62 2641 for ac_prog in cl.exe
ad6254c5
AK
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2645{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2648 $as_echo_n "(cached) " >&6
ad6254c5
AK
2649else
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2660 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2662 break 2
795ca3e5 2663 fi
ad6254c5
AK
2664done
2665done
7a197a62 2666IFS=$as_save_IFS
ad6254c5
AK
2667
2668fi
2669fi
2670ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2672 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2674else
ec6a6fbe
AK
2675 { $as_echo "$as_me:$LINENO: result: no" >&5
2676$as_echo "no" >&6; }
795ca3e5
AK
2677fi
2678
7a197a62 2679
ad6254c5
AK
2680 test -n "$ac_ct_CC" && break
2681done
795ca3e5 2682
7a197a62
AK
2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
ec6a6fbe
AK
2688{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2690ac_tool_warned=yes ;;
2691esac
2692 CC=$ac_ct_CC
2693 fi
ad6254c5
AK
2694fi
2695
2696fi
2697
2698
ec6a6fbe
AK
2699test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2702See \`config.log' for more details." >&5
ec6a6fbe 2703$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2704See \`config.log' for more details." >&2;}
ec6a6fbe 2705 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2706
2707# Provide some information about the compiler.
ec6a6fbe
AK
2708$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2709set X $ac_compile
2710ac_compiler=$2
7a197a62
AK
2711{ (ac_try="$ac_compiler --version >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
ec6a6fbe
AK
2716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2717$as_echo "$ac_try_echo") >&5
7a197a62 2718 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2719 ac_status=$?
ec6a6fbe 2720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2721 (exit $ac_status); }
7a197a62
AK
2722{ (ac_try="$ac_compiler -v >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
ec6a6fbe
AK
2727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2728$as_echo "$ac_try_echo") >&5
7a197a62 2729 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2730 ac_status=$?
ec6a6fbe 2731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2732 (exit $ac_status); }
7a197a62
AK
2733{ (ac_try="$ac_compiler -V >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
ec6a6fbe
AK
2738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739$as_echo "$ac_try_echo") >&5
7a197a62 2740 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2741 ac_status=$?
ec6a6fbe 2742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2743 (exit $ac_status); }
2744
2745cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
2751
2752int
2753main ()
2754{
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760ac_clean_files_save=$ac_clean_files
ec6a6fbe 2761ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2762# Try to create an executable without -o first, disregard a.out.
2763# It will help us diagnose broken compilers, and finding out an intuition
2764# of exeext.
ec6a6fbe
AK
2765{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2766$as_echo_n "checking for C compiler default output file name... " >&6; }
2767ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2768
2769# The possible output files:
2770ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2771
7a197a62
AK
2772ac_rmfiles=
2773for ac_file in $ac_files
2774do
2775 case $ac_file in
ec6a6fbe 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2777 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2778 esac
2779done
2780rm -f $ac_rmfiles
2781
2782if { (ac_try="$ac_link_default"
2783case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786esac
ec6a6fbe
AK
2787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2788$as_echo "$ac_try_echo") >&5
7a197a62 2789 (eval "$ac_link_default") 2>&5
ad6254c5 2790 ac_status=$?
ec6a6fbe 2791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2792 (exit $ac_status); }; then
7a197a62
AK
2793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2794# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2795# in a Makefile. We should not override ac_cv_exeext if it was cached,
2796# so that the user can short-circuit this test for compilers unknown to
2797# Autoconf.
25fbec5b 2798for ac_file in $ac_files ''
ad6254c5
AK
2799do
2800 test -f "$ac_file" || continue
2801 case $ac_file in
ec6a6fbe 2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2803 ;;
ad6254c5 2804 [ab].out )
8a2fc586
AK
2805 # We found the default executable, but exeext='' is most
2806 # certainly right.
2807 break;;
ad6254c5 2808 *.* )
7a197a62
AK
2809 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2810 then :; else
2811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2812 fi
2813 # We set ac_cv_exeext here because the later test for it is not
2814 # safe: cross compilers may not add the suffix if given an `-o'
2815 # argument, so we may need to know it at that point already.
2816 # Even if this section looks crufty: it has the advantage of
2817 # actually working.
8a2fc586 2818 break;;
ad6254c5 2819 * )
8a2fc586 2820 break;;
ad6254c5
AK
2821 esac
2822done
7a197a62
AK
2823test "$ac_cv_exeext" = no && ac_cv_exeext=
2824
ad6254c5 2825else
25fbec5b
AK
2826 ac_file=''
2827fi
2828
ec6a6fbe
AK
2829{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2830$as_echo "$ac_file" >&6; }
25fbec5b 2831if test -z "$ac_file"; then
ec6a6fbe 2832 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
ec6a6fbe
AK
2835{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2838See \`config.log' for more details." >&5
ec6a6fbe 2839$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2840See \`config.log' for more details." >&2;}
ec6a6fbe 2841 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2842fi
2843
2844ac_exeext=$ac_cv_exeext
ad6254c5 2845
7a197a62 2846# Check that the compiler produces executables we can run. If not, either
ad6254c5 2847# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2848{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2849$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2850# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2851# If not cross compiling, check that we can run a simple program.
2852if test "$cross_compiling" != yes; then
2853 if { ac_try='./$ac_file'
7a197a62
AK
2854 { (case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
ec6a6fbe
AK
2858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2859$as_echo "$ac_try_echo") >&5
7a197a62 2860 (eval "$ac_try") 2>&5
ad6254c5 2861 ac_status=$?
ec6a6fbe 2862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2863 (exit $ac_status); }; }; then
2864 cross_compiling=no
795ca3e5 2865 else
ad6254c5
AK
2866 if test "$cross_compiling" = maybe; then
2867 cross_compiling=yes
2868 else
ec6a6fbe
AK
2869 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2872If you meant to cross compile, use \`--host'.
2873See \`config.log' for more details." >&5
ec6a6fbe 2874$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details." >&2;}
ec6a6fbe 2877 { (exit 1); exit 1; }; }; }
ad6254c5 2878 fi
795ca3e5 2879 fi
80992638 2880fi
ec6a6fbe
AK
2881{ $as_echo "$as_me:$LINENO: result: yes" >&5
2882$as_echo "yes" >&6; }
ad6254c5 2883
ec6a6fbe 2884rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2885ac_clean_files=$ac_clean_files_save
7a197a62 2886# Check that the compiler produces executables we can run. If not, either
ad6254c5 2887# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2888{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2889$as_echo_n "checking whether we are cross compiling... " >&6; }
2890{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2891$as_echo "$cross_compiling" >&6; }
7a197a62 2892
ec6a6fbe
AK
2893{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2894$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2895if { (ac_try="$ac_link"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
ec6a6fbe
AK
2900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901$as_echo "$ac_try_echo") >&5
7a197a62 2902 (eval "$ac_link") 2>&5
ad6254c5 2903 ac_status=$?
ec6a6fbe 2904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2905 (exit $ac_status); }; then
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
2910for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
2912 case $ac_file in
ec6a6fbe 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2915 break;;
ad6254c5
AK
2916 * ) break;;
2917 esac
2918done
80992638 2919else
ec6a6fbe
AK
2920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2923See \`config.log' for more details." >&5
ec6a6fbe 2924$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2925See \`config.log' for more details." >&2;}
ec6a6fbe 2926 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2927fi
2928
2929rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2930{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2932
2933rm -f conftest.$ac_ext
2934EXEEXT=$ac_cv_exeext
2935ac_exeext=$EXEEXT
ec6a6fbe
AK
2936{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2938if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2939 $as_echo_n "(cached) " >&6
795ca3e5 2940else
ad6254c5 2941 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.o conftest.obj
7a197a62
AK
2957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
ec6a6fbe
AK
2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963$as_echo "$ac_try_echo") >&5
7a197a62 2964 (eval "$ac_compile") 2>&5
ad6254c5 2965 ac_status=$?
ec6a6fbe 2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2967 (exit $ac_status); }; then
7a197a62
AK
2968 for ac_file in conftest.o conftest.obj conftest.*; do
2969 test -f "$ac_file" || continue;
ad6254c5 2970 case $ac_file in
ec6a6fbe 2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2973 break;;
2974 esac
2975done
2976else
ec6a6fbe 2977 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
ec6a6fbe
AK
2980{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2983See \`config.log' for more details." >&5
ec6a6fbe 2984$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2985See \`config.log' for more details." >&2;}
ec6a6fbe 2986 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2987fi
2988
2989rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990fi
ec6a6fbe
AK
2991{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2992$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2993OBJEXT=$ac_cv_objext
2994ac_objext=$OBJEXT
ec6a6fbe
AK
2995{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2996$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2997if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2998 $as_echo_n "(cached) " >&6
ad6254c5
AK
2999else
3000 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010#ifndef __GNUC__
3011 choke me
3012#endif
80992638 3013
ad6254c5
AK
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
7a197a62
AK
3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
ec6a6fbe
AK
3024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025$as_echo "$ac_try_echo") >&5
7a197a62 3026 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3027 ac_status=$?
8a2fc586
AK
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
ec6a6fbe 3031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3032 (exit $ac_status); } && {
3033 test -z "$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 } && test -s conftest.$ac_objext; then
ad6254c5 3036 ac_compiler_gnu=yes
80992638 3037else
ec6a6fbe 3038 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
7a197a62 3041 ac_compiler_gnu=no
8106cdd5 3042fi
7a197a62
AK
3043
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3045ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3046
ad6254c5 3047fi
ec6a6fbe
AK
3048{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3049$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3050if test $ac_compiler_gnu = yes; then
3051 GCC=yes
3052else
3053 GCC=
3054fi
ad6254c5
AK
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3057{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3059if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3060 $as_echo_n "(cached) " >&6
795ca3e5 3061else
7a197a62
AK
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072
3073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
7a197a62
AK
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
ec6a6fbe
AK
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
7a197a62 3089 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3090 ac_status=$?
8a2fc586
AK
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
ec6a6fbe 3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
7a197a62
AK
3099 ac_cv_prog_cc_g=yes
3100else
ec6a6fbe 3101 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 CFLAGS=""
3105 cat >conftest.$ac_ext <<_ACEOF
3106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120rm -f conftest.$ac_objext
3121if { (ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
ec6a6fbe
AK
3126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127$as_echo "$ac_try_echo") >&5
7a197a62 3128 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3129 ac_status=$?
7a197a62
AK
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
ec6a6fbe 3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
7a197a62
AK
3138 :
3139else
ec6a6fbe 3140 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3144 CFLAGS="-g"
3145 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h. */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (ac_try="$ac_compile"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
ec6a6fbe
AK
3166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167$as_echo "$ac_try_echo") >&5
7a197a62 3168 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3169 ac_status=$?
7a197a62
AK
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
ec6a6fbe 3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3178 ac_cv_prog_cc_g=yes
3179else
ec6a6fbe 3180 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3181sed 's/^/| /' conftest.$ac_ext >&5
80992638 3182
7a197a62
AK
3183
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3190fi
7a197a62
AK
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3194fi
ec6a6fbe
AK
3195{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3197if test "$ac_test_CFLAGS" = set; then
ad6254c5 3198 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3199elif test $ac_cv_prog_cc_g = yes; then
3200 if test "$GCC" = yes; then
3201 CFLAGS="-g -O2"
3202 else
3203 CFLAGS="-g"
3204 fi
3205else
3206 if test "$GCC" = yes; then
3207 CFLAGS="-O2"
3208 else
3209 CFLAGS=
3210 fi
3211fi
ec6a6fbe
AK
3212{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3214if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3215 $as_echo_n "(cached) " >&6
ad6254c5 3216else
7a197a62 3217 ac_cv_prog_cc_c89=no
ad6254c5
AK
3218ac_save_CC=$CC
3219cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225#include <stdarg.h>
3226#include <stdio.h>
3227#include <sys/types.h>
3228#include <sys/stat.h>
3229/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230struct buf { int x; };
3231FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232static char *e (p, i)
3233 char **p;
3234 int i;
3235{
3236 return p[i];
3237}
3238static char *f (char * (*g) (char **, int), char **p, ...)
3239{
3240 char *s;
3241 va_list v;
3242 va_start (v,p);
3243 s = g (p, va_arg (v,int));
3244 va_end (v);
3245 return s;
3246}
8a2fc586
AK
3247
3248/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249 function prototypes and stuff, but not '\xHH' hex character constants.
3250 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3251 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3254 that's true only with -std. */
8a2fc586
AK
3255int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3256
7a197a62
AK
3257/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258 inside strings and character constants. */
3259#define FOO(x) 'x'
3260int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3261
ad6254c5
AK
3262int test (int i, double x);
3263struct s1 {int (*f) (int a);};
3264struct s2 {int (*f) (double a);};
3265int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266int argc;
3267char **argv;
3268int
3269main ()
3270{
3271return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3272 ;
3273 return 0;
3274}
3275_ACEOF
7a197a62
AK
3276for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3278do
3279 CC="$ac_save_CC $ac_arg"
3280 rm -f conftest.$ac_objext
7a197a62
AK
3281if { (ac_try="$ac_compile"
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
ec6a6fbe
AK
3286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287$as_echo "$ac_try_echo") >&5
7a197a62 3288 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3289 ac_status=$?
8a2fc586
AK
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
ec6a6fbe 3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
7a197a62 3298 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3299else
ec6a6fbe 3300 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
7a197a62 3303
ad6254c5 3304fi
7a197a62
AK
3305
3306rm -f core conftest.err conftest.$ac_objext
3307 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3308done
7a197a62 3309rm -f conftest.$ac_ext
ad6254c5
AK
3310CC=$ac_save_CC
3311
3312fi
7a197a62
AK
3313# AC_CACHE_VAL
3314case "x$ac_cv_prog_cc_c89" in
3315 x)
ec6a6fbe
AK
3316 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3317$as_echo "none needed" >&6; } ;;
7a197a62 3318 xno)
ec6a6fbe
AK
3319 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3320$as_echo "unsupported" >&6; } ;;
ad6254c5 3321 *)
7a197a62 3322 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3323 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3325esac
3326
ad6254c5 3327
ad6254c5
AK
3328ac_ext=c
3329ac_cpp='$CPP $CPPFLAGS'
3330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3333
d0191583
JM
3334
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3341{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3342$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3343# On Suns, sometimes $CPP names a directory.
3344if test -n "$CPP" && test -d "$CPP"; then
3345 CPP=
3346fi
3347if test -z "$CPP"; then
3348 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3349 $as_echo_n "(cached) " >&6
ad6254c5 3350else
d0191583
JM
3351 # Double quotes because CPP needs to be expanded
3352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353 do
3354 ac_preproc_ok=false
3355for ac_c_preproc_warn_flag in '' yes
ad6254c5 3356do
d0191583
JM
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
3374 Syntax error
3375_ACEOF
3376if { (ac_try="$ac_cpp conftest.$ac_ext"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
ad6254c5 3380esac
ec6a6fbe
AK
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
d0191583
JM
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
ec6a6fbe 3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 :
3394else
ec6a6fbe 3395 $as_echo "$as_me: failed program was:" >&5
d0191583 3396sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3397
d0191583
JM
3398 # Broken: fails on valid input.
3399continue
795ca3e5 3400fi
795ca3e5 3401
d0191583 3402rm -f conftest.err conftest.$ac_ext
795ca3e5 3403
d0191583
JM
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412#include <ac_nonexistent.h>
3413_ACEOF
3414if { (ac_try="$ac_cpp conftest.$ac_ext"
3415case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418esac
ec6a6fbe
AK
3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420$as_echo "$ac_try_echo") >&5
d0191583
JM
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
ec6a6fbe 3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3427 (exit $ac_status); } >/dev/null && {
3428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429 test ! -s conftest.err
3430 }; then
3431 # Broken: success on invalid input.
3432continue
3433else
ec6a6fbe 3434 $as_echo "$as_me: failed program was:" >&5
d0191583 3435sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3436
d0191583
JM
3437 # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
795ca3e5 3441
d0191583
JM
3442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then
3448 break
795ca3e5
AK
3449fi
3450
d0191583
JM
3451 done
3452 ac_cv_prog_CPP=$CPP
3453
3454fi
3455 CPP=$ac_cv_prog_CPP
795ca3e5 3456else
d0191583
JM
3457 ac_cv_prog_CPP=$CPP
3458fi
ec6a6fbe
AK
3459{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3460$as_echo "$CPP" >&6; }
d0191583
JM
3461ac_preproc_ok=false
3462for ac_c_preproc_warn_flag in '' yes
3463do
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
ad6254c5 3472_ACEOF
d0191583
JM
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476#ifdef __STDC__
3477# include <limits.h>
3478#else
3479# include <assert.h>
3480#endif
3481 Syntax error
3482_ACEOF
3483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
7a197a62 3487esac
ec6a6fbe
AK
3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489$as_echo "$ac_try_echo") >&5
d0191583
JM
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
ec6a6fbe 3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 }; then
3500 :
795ca3e5 3501else
ec6a6fbe 3502 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 # Broken: fails on valid input.
3506continue
795ca3e5
AK
3507fi
3508
d0191583
JM
3509rm -f conftest.err conftest.$ac_ext
3510
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
3519#include <ac_nonexistent.h>
3520_ACEOF
3521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
ec6a6fbe
AK
3526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3527$as_echo "$ac_try_echo") >&5
d0191583
JM
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
ec6a6fbe 3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3534 (exit $ac_status); } >/dev/null && {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3537 }; then
3538 # Broken: success on invalid input.
3539continue
795ca3e5 3540else
ec6a6fbe 3541 $as_echo "$as_me: failed program was:" >&5
d0191583 3542sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3543
d0191583
JM
3544 # Passes both tests.
3545ac_preproc_ok=:
3546break
795ca3e5 3547fi
d0191583
JM
3548
3549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
3554if $ac_preproc_ok; then
3555 :
8106cdd5 3556else
ec6a6fbe
AK
3557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3560See \`config.log' for more details." >&5
ec6a6fbe 3561$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3562See \`config.log' for more details." >&2;}
ec6a6fbe 3563 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3564fi
3565
d0191583
JM
3566ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
7a197a62 3572
ec6a6fbe
AK
3573{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3574$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3575if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3576 $as_echo_n "(cached) " >&6
ad6254c5 3577else
ec6a6fbe 3578 if test -z "$GREP"; then
d0191583 3579 ac_path_GREP_found=false
ec6a6fbe
AK
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
d0191583 3586 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3590# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3591 # Check for GNU $ac_path_GREP
3592case `"$ac_path_GREP" --version 2>&1` in
3593*GNU*)
3594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3595*)
3596 ac_count=0
ec6a6fbe 3597 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3598 while :
3599 do
3600 cat "conftest.in" "conftest.in" >"conftest.tmp"
3601 mv "conftest.tmp" "conftest.in"
3602 cp "conftest.in" "conftest.nl"
ec6a6fbe 3603 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3606 ac_count=`expr $ac_count + 1`
3607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3608 # Best one so far, save it but keep looking for a better one
3609 ac_cv_path_GREP="$ac_path_GREP"
3610 ac_path_GREP_max=$ac_count
3611 fi
3612 # 10*(2^10) chars as input seems more than enough
3613 test $ac_count -gt 10 && break
3614 done
3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616esac
3617
ec6a6fbe
AK
3618 $ac_path_GREP_found && break 3
3619 done
d0191583 3620 done
ad6254c5 3621done
7a197a62 3622IFS=$as_save_IFS
ec6a6fbe
AK
3623 if test -z "$ac_cv_path_GREP"; then
3624 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3625$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3626 { (exit 1); exit 1; }; }
ec6a6fbe 3627 fi
80992638 3628else
d0191583 3629 ac_cv_path_GREP=$GREP
8106cdd5 3630fi
8106cdd5 3631
80992638 3632fi
ec6a6fbe
AK
3633{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3635 GREP="$ac_cv_path_GREP"
795ca3e5 3636
d0191583 3637
ec6a6fbe
AK
3638{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3639$as_echo_n "checking for egrep... " >&6; }
d0191583 3640if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3641 $as_echo_n "(cached) " >&6
8a2fc586 3642else
d0191583
JM
3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644 then ac_cv_path_EGREP="$GREP -E"
3645 else
ec6a6fbe 3646 if test -z "$EGREP"; then
d0191583 3647 ac_path_EGREP_found=false
ec6a6fbe
AK
3648 # Loop through the user's path and test for each of PROGNAME-LIST
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3650for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3651do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
d0191583 3654 for ac_prog in egrep; do
ec6a6fbe
AK
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3658# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3659 # Check for GNU $ac_path_EGREP
3660case `"$ac_path_EGREP" --version 2>&1` in
3661*GNU*)
3662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3663*)
3664 ac_count=0
ec6a6fbe 3665 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3666 while :
3667 do
3668 cat "conftest.in" "conftest.in" >"conftest.tmp"
3669 mv "conftest.tmp" "conftest.in"
3670 cp "conftest.in" "conftest.nl"
ec6a6fbe 3671 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3674 ac_count=`expr $ac_count + 1`
3675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3676 # Best one so far, save it but keep looking for a better one
3677 ac_cv_path_EGREP="$ac_path_EGREP"
3678 ac_path_EGREP_max=$ac_count
3679 fi
3680 # 10*(2^10) chars as input seems more than enough
3681 test $ac_count -gt 10 && break
3682 done
3683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3684esac
8a2fc586 3685
ec6a6fbe
AK
3686 $ac_path_EGREP_found && break 3
3687 done
d0191583 3688 done
8a2fc586 3689done
7a197a62 3690IFS=$as_save_IFS
ec6a6fbe
AK
3691 if test -z "$ac_cv_path_EGREP"; then
3692 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3693$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3694 { (exit 1); exit 1; }; }
ec6a6fbe 3695 fi
d0191583
JM
3696else
3697 ac_cv_path_EGREP=$EGREP
3698fi
ad6254c5 3699
d0191583
JM
3700 fi
3701fi
ec6a6fbe
AK
3702{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3703$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3704 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3705
3706
d0191583 3707if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3708 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3709$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3710if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3711 $as_echo_n "(cached) " >&6
8106cdd5 3712else
d0191583 3713 ac_pattern="Autoconf.*'x'"
ad6254c5 3714 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3715/* confdefs.h. */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
3719/* end confdefs.h. */
d0191583
JM
3720#include <sgtty.h>
3721Autoconf TIOCGETP
ad6254c5 3722_ACEOF
d0191583
JM
3723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3725 ac_cv_prog_gcc_traditional=yes
8106cdd5 3726else
d0191583 3727 ac_cv_prog_gcc_traditional=no
80992638 3728fi
d0191583 3729rm -f conftest*
ad6254c5 3730
8106cdd5 3731
d0191583
JM
3732 if test $ac_cv_prog_gcc_traditional = no; then
3733 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3734/* confdefs.h. */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h. */
d0191583
JM
3739#include <termio.h>
3740Autoconf TCGETA
ad6254c5 3741_ACEOF
d0191583
JM
3742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3744 ac_cv_prog_gcc_traditional=yes
7a197a62 3745fi
d0191583 3746rm -f conftest*
795ca3e5 3747
d0191583 3748 fi
795ca3e5 3749fi
ec6a6fbe
AK
3750{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3751$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3752 if test $ac_cv_prog_gcc_traditional = yes; then
3753 CC="$CC -traditional"
3754 fi
795ca3e5
AK
3755fi
3756
d0191583
JM
3757# Find a good install program. We prefer a C program (faster),
3758# so one script is as good as another. But avoid the broken or
3759# incompatible versions:
3760# SysV /etc/install, /usr/sbin/install
3761# SunOS /usr/etc/install
3762# IRIX /sbin/install
3763# AIX /bin/install
3764# AmigaOS /C/install, which installs bootblocks on floppy discs
3765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3766# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3768# OS/2's system install, which has a completely different semantic
3769# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3770# Reject install programs that cannot install multiple files.
3771{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3772$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3773if test -z "$INSTALL"; then
3774if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3775 $as_echo_n "(cached) " >&6
ad6254c5 3776else
d0191583
JM
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 # Account for people who put trailing slashes in PATH elements.
3783case $as_dir/ in
3784 ./ | .// | /cC/* | \
3785 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3786 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3787 /usr/ucb/* ) ;;
3788 *)
3789 # OSF1 and SCO ODT 3.0 have their own names for install.
3790 # Don't use installbsd from OSF since it installs stuff as root
3791 # by default.
3792 for ac_prog in ginstall scoinst install; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3795 if test $ac_prog = install &&
3796 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3797 # AIX install. It has an incompatible calling convention.
3798 :
3799 elif test $ac_prog = install &&
3800 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801 # program-specific install script used by HP pwplus--don't use.
3802 :
3803 else
ec6a6fbe
AK
3804 rm -rf conftest.one conftest.two conftest.dir
3805 echo one > conftest.one
3806 echo two > conftest.two
3807 mkdir conftest.dir
3808 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3809 test -s conftest.one && test -s conftest.two &&
3810 test -s conftest.dir/conftest.one &&
3811 test -s conftest.dir/conftest.two
3812 then
3813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3814 break 3
3815 fi
d0191583
JM
3816 fi
3817 fi
3818 done
3819 done
3820 ;;
3821esac
ec6a6fbe 3822
d0191583
JM
3823done
3824IFS=$as_save_IFS
80992638 3825
ec6a6fbe 3826rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3827
3828fi
3829 if test "${ac_cv_path_install+set}" = set; then
3830 INSTALL=$ac_cv_path_install
7a197a62 3831 else
d0191583
JM
3832 # As a last resort, use the slow shell script. Don't cache a
3833 # value for INSTALL within a source directory, because that will
3834 # break other packages using the cache if that directory is
3835 # removed, or if the value is a relative name.
3836 INSTALL=$ac_install_sh
7a197a62 3837 fi
d0191583 3838fi
ec6a6fbe
AK
3839{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3840$as_echo "$INSTALL" >&6; }
ad6254c5 3841
d0191583
JM
3842# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3843# It thinks the first close brace ends the variable substitution.
3844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3845
d0191583 3846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3847
d0191583
JM
3848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3849
ec6a6fbe
AK
3850{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3851$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3852LN_S=$as_ln_s
3853if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3854 { $as_echo "$as_me:$LINENO: result: yes" >&5
3855$as_echo "yes" >&6; }
d0191583 3856else
ec6a6fbe
AK
3857 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3858$as_echo "no, using $LN_S" >&6; }
795ca3e5 3859fi
d0191583 3860
ec6a6fbe
AK
3861{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3862$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3863set x ${MAKE-make}
3864ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3865if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3866 $as_echo_n "(cached) " >&6
7a197a62 3867else
d0191583
JM
3868 cat >conftest.make <<\_ACEOF
3869SHELL = /bin/sh
3870all:
3871 @echo '@@@%%%=$(MAKE)=@@@%%%'
3872_ACEOF
3873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3874case `${MAKE-make} -f conftest.make 2>/dev/null` in
3875 *@@@%%%=?*=@@@%%%*)
3876 eval ac_cv_prog_make_${ac_make}_set=yes;;
3877 *)
3878 eval ac_cv_prog_make_${ac_make}_set=no;;
3879esac
3880rm -f conftest.make
ad6254c5 3881fi
d0191583 3882if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3883 { $as_echo "$as_me:$LINENO: result: yes" >&5
3884$as_echo "yes" >&6; }
d0191583
JM
3885 SET_MAKE=
3886else
ec6a6fbe
AK
3887 { $as_echo "$as_me:$LINENO: result: no" >&5
3888$as_echo "no" >&6; }
d0191583 3889 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3890fi
8106cdd5 3891
ec6a6fbe
AK
3892{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3893$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3894if test -z "$MKDIR_P"; then
3895 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3896 $as_echo_n "(cached) " >&6
5556819a
AK
3897else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_prog in mkdir gmkdir; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3907 'mkdir (GNU coreutils) '* | \
3908 'mkdir (coreutils) '* | \
3909 'mkdir (fileutils) '4.1*)
3910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3911 break 3;;
3912 esac
3913 done
3914 done
3915done
3916IFS=$as_save_IFS
3917
3918fi
3919
3920 if test "${ac_cv_path_mkdir+set}" = set; then
3921 MKDIR_P="$ac_cv_path_mkdir -p"
3922 else
3923 # As a last resort, use the slow shell script. Don't cache a
3924 # value for MKDIR_P within a source directory, because that will
3925 # break other packages using the cache if that directory is
3926 # removed, or if the value is a relative name.
3927 test -d ./--version && rmdir ./--version
3928 MKDIR_P="$ac_install_sh -d"
3929 fi
3930fi
ec6a6fbe
AK
3931{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3932$as_echo "$MKDIR_P" >&6; }
5556819a 3933
d0191583
JM
3934if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3937{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3939if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3940 $as_echo_n "(cached) " >&6
d0191583
JM
3941else
3942 if test -n "$RANLIB"; then
3943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3954 break 2
3955 fi
3956done
3957done
3958IFS=$as_save_IFS
8106cdd5 3959
795ca3e5 3960fi
d0191583
JM
3961fi
3962RANLIB=$ac_cv_prog_RANLIB
3963if test -n "$RANLIB"; then
ec6a6fbe
AK
3964 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3965$as_echo "$RANLIB" >&6; }
d0191583 3966else
ec6a6fbe
AK
3967 { $as_echo "$as_me:$LINENO: result: no" >&5
3968$as_echo "no" >&6; }
d0191583
JM
3969fi
3970
8106cdd5 3971
ad6254c5 3972fi
d0191583
JM
3973if test -z "$ac_cv_prog_RANLIB"; then
3974 ac_ct_RANLIB=$RANLIB
3975 # Extract the first word of "ranlib", so it can be a program name with args.
3976set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3977{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3980 $as_echo_n "(cached) " >&6
ad6254c5 3981else
d0191583
JM
3982 if test -n "$ac_ct_RANLIB"; then
3983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3984else
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
8106cdd5 3987do
d0191583
JM
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3994 break 2
3995 fi
3996done
3997done
3998IFS=$as_save_IFS
3999
4000fi
4001fi
4002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4003if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4004 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4005$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4006else
ec6a6fbe
AK
4007 { $as_echo "$as_me:$LINENO: result: no" >&5
4008$as_echo "no" >&6; }
d0191583 4009fi
ad6254c5 4010
d0191583
JM
4011 if test "x$ac_ct_RANLIB" = x; then
4012 RANLIB=":"
4013 else
4014 case $cross_compiling:$ac_tool_warned in
4015yes:)
ec6a6fbe
AK
4016{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4018ac_tool_warned=yes ;;
4019esac
4020 RANLIB=$ac_ct_RANLIB
4021 fi
4022else
4023 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4024fi
7a197a62 4025
d0191583
JM
4026# Extract the first word of "cflow", so it can be a program name with args.
4027set dummy cflow; ac_word=$2
ec6a6fbe
AK
4028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4030if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4031 $as_echo_n "(cached) " >&6
d0191583
JM
4032else
4033 case $CFLOW_CMD in
4034 [\\/]* | ?:[\\/]*)
4035 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4036 ;;
4037 *)
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4047 break 2
4048 fi
4049done
4050done
4051IFS=$as_save_IFS
ad6254c5 4052
d0191583 4053 ;;
7a197a62 4054esac
d0191583
JM
4055fi
4056CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4057if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4058 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4059$as_echo "$CFLOW_CMD" >&6; }
80992638 4060else
ec6a6fbe
AK
4061 { $as_echo "$as_me:$LINENO: result: no" >&5
4062$as_echo "no" >&6; }
795ca3e5 4063fi
7a197a62 4064
ad6254c5 4065
d0191583
JM
4066# Extract the first word of "cscope", so it can be a program name with args.
4067set dummy cscope; ac_word=$2
ec6a6fbe
AK
4068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4070if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4071 $as_echo_n "(cached) " >&6
d0191583
JM
4072else
4073 case $CSCOPE_CMD in
4074 [\\/]* | ?:[\\/]*)
4075 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4076 ;;
4077 *)
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4087 break 2
4088 fi
795ca3e5 4089done
d0191583
JM
4090done
4091IFS=$as_save_IFS
795ca3e5 4092
d0191583
JM
4093 ;;
4094esac
ad6254c5 4095fi
d0191583
JM
4096CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4097if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4098 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4099$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4100else
ec6a6fbe
AK
4101 { $as_echo "$as_me:$LINENO: result: no" >&5
4102$as_echo "no" >&6; }
795ca3e5 4103fi
ad6254c5 4104
7a197a62 4105
ad6254c5 4106
d0191583
JM
4107################################################################################
4108
4109
4110
4111
4112
4113ac_header_dirent=no
4114for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4115 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4116{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4117$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4119 $as_echo_n "(cached) " >&6
d0191583 4120else
ad6254c5 4121 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h. */
d0191583
JM
4127#include <sys/types.h>
4128#include <$ac_hdr>
4129
4130int
4131main ()
4132{
4133if ((DIR *) 0)
4134return 0;
4135 ;
4136 return 0;
4137}
ad6254c5 4138_ACEOF
d0191583
JM
4139rm -f conftest.$ac_objext
4140if { (ac_try="$ac_compile"
7a197a62
AK
4141case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
ec6a6fbe
AK
4145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146$as_echo "$ac_try_echo") >&5
d0191583 4147 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
ec6a6fbe 4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
25fbec5b 4155 test ! -s conftest.err
d0191583
JM
4156 } && test -s conftest.$ac_objext; then
4157 eval "$as_ac_Header=yes"
ad6254c5 4158else
ec6a6fbe 4159 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4160sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4161
d0191583 4162 eval "$as_ac_Header=no"
795ca3e5 4163fi
7a197a62 4164
d0191583 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4166fi
ec6a6fbe
AK
4167ac_res=`eval 'as_val=${'$as_ac_Header'}
4168 $as_echo "$as_val"'`
4169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4170$as_echo "$ac_res" >&6; }
4171as_val=`eval 'as_val=${'$as_ac_Header'}
4172 $as_echo "$as_val"'`
4173 if test "x$as_val" = x""yes; then
d0191583 4174 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4175#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4176_ACEOF
795ca3e5 4177
d0191583
JM
4178ac_header_dirent=$ac_hdr; break
4179fi
ad6254c5 4180
d0191583
JM
4181done
4182# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4183if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4184 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4185$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4186if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4187 $as_echo_n "(cached) " >&6
ad6254c5 4188else
d0191583
JM
4189 ac_func_search_save_LIBS=$LIBS
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
ad6254c5 4196
d0191583
JM
4197/* Override any GCC internal prototype to avoid an error.
4198 Use char because int might match the return type of a GCC
4199 builtin and then its argument prototype would still apply. */
4200#ifdef __cplusplus
4201extern "C"
4202#endif
4203char opendir ();
4204int
4205main ()
4206{
4207return opendir ();
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212for ac_lib in '' dir; do
4213 if test -z "$ac_lib"; then
4214 ac_res="none required"
4215 else
4216 ac_res=-l$ac_lib
4217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4218 fi
4219 rm -f conftest.$ac_objext conftest$ac_exeext
4220if { (ac_try="$ac_link"
4221case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
ec6a6fbe
AK
4225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226$as_echo "$ac_try_echo") >&5
d0191583
JM
4227 (eval "$ac_link") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
ec6a6fbe 4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
ec6a6fbe
AK
4236 } && test -s conftest$ac_exeext && {
4237 test "$cross_compiling" = yes ||
4238 $as_test_x conftest$ac_exeext
4239 }; then
d0191583
JM
4240 ac_cv_search_opendir=$ac_res
4241else
ec6a6fbe 4242 $as_echo "$as_me: failed program was:" >&5
d0191583 4243sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4244
ad6254c5 4245
795ca3e5 4246fi
ad6254c5 4247
ec6a6fbe 4248rm -rf conftest.dSYM
d0191583
JM
4249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4250 conftest$ac_exeext
4251 if test "${ac_cv_search_opendir+set}" = set; then
4252 break
7a197a62 4253fi
d0191583
JM
4254done
4255if test "${ac_cv_search_opendir+set}" = set; then
4256 :
7a197a62 4257else
d0191583 4258 ac_cv_search_opendir=no
7a197a62 4259fi
d0191583
JM
4260rm conftest.$ac_ext
4261LIBS=$ac_func_search_save_LIBS
7a197a62 4262fi
ec6a6fbe
AK
4263{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4264$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4265ac_res=$ac_cv_search_opendir
4266if test "$ac_res" != no; then
4267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4268
d0191583 4269fi
7a197a62 4270
7a197a62 4271else
ec6a6fbe
AK
4272 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4273$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4274if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4275 $as_echo_n "(cached) " >&6
7a197a62 4276else
d0191583
JM
4277 ac_func_search_save_LIBS=$LIBS
4278cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
7a197a62 4284
d0191583
JM
4285/* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4288#ifdef __cplusplus
4289extern "C"
4290#endif
4291char opendir ();
4292int
4293main ()
4294{
4295return opendir ();
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300for ac_lib in '' x; do
4301 if test -z "$ac_lib"; then
4302 ac_res="none required"
4303 else
4304 ac_res=-l$ac_lib
4305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4306 fi
4307 rm -f conftest.$ac_objext conftest$ac_exeext
4308if { (ac_try="$ac_link"
4309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
ec6a6fbe
AK
4313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4314$as_echo "$ac_try_echo") >&5
d0191583
JM
4315 (eval "$ac_link") 2>conftest.er1
4316 ac_status=$?
4317 grep -v '^ *+' conftest.er1 >conftest.err
4318 rm -f conftest.er1
4319 cat conftest.err >&5
ec6a6fbe 4320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
ec6a6fbe
AK
4324 } && test -s conftest$ac_exeext && {
4325 test "$cross_compiling" = yes ||
4326 $as_test_x conftest$ac_exeext
4327 }; then
d0191583
JM
4328 ac_cv_search_opendir=$ac_res
4329else
ec6a6fbe 4330 $as_echo "$as_me: failed program was:" >&5
d0191583 4331sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4332
4333
4334fi
4335
ec6a6fbe 4336rm -rf conftest.dSYM
d0191583
JM
4337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4338 conftest$ac_exeext
4339 if test "${ac_cv_search_opendir+set}" = set; then
4340 break
7a197a62 4341fi
d0191583
JM
4342done
4343if test "${ac_cv_search_opendir+set}" = set; then
4344 :
7a197a62 4345else
d0191583 4346 ac_cv_search_opendir=no
7a197a62 4347fi
d0191583
JM
4348rm conftest.$ac_ext
4349LIBS=$ac_func_search_save_LIBS
4350fi
ec6a6fbe
AK
4351{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4352$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4353ac_res=$ac_cv_search_opendir
4354if test "$ac_res" != no; then
4355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4356
7a197a62 4357fi
7a197a62 4358
d0191583 4359fi
7a197a62 4360
ec6a6fbe
AK
4361{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4362$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4363if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4364 $as_echo_n "(cached) " >&6
7a197a62
AK
4365else
4366 cat >conftest.$ac_ext <<_ACEOF
4367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
4372#include <stdlib.h>
4373#include <stdarg.h>
4374#include <string.h>
4375#include <float.h>
4376
4377int
4378main ()
4379{
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (ac_try="$ac_compile"
4387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
ec6a6fbe
AK
4391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392$as_echo "$ac_try_echo") >&5
7a197a62
AK
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
ec6a6fbe 4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest.$ac_objext; then
7a197a62
AK
4403 ac_cv_header_stdc=yes
4404else
ec6a6fbe 4405 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4406sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ac_cv_header_stdc=no
4409fi
4410
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412
4413if test $ac_cv_header_stdc = yes; then
4414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4415 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4416/* confdefs.h. */
4417_ACEOF
4418cat confdefs.h >>conftest.$ac_ext
4419cat >>conftest.$ac_ext <<_ACEOF
4420/* end confdefs.h. */
4421#include <string.h>
8106cdd5 4422
ad6254c5
AK
4423_ACEOF
4424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 $EGREP "memchr" >/dev/null 2>&1; then
4426 :
4427else
4428 ac_cv_header_stdc=no
80992638 4429fi
ad6254c5 4430rm -f conftest*
795ca3e5
AK
4431
4432fi
4433
ad6254c5
AK
4434if test $ac_cv_header_stdc = yes; then
4435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4436 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
80992638 4442#include <stdlib.h>
ad6254c5
AK
4443
4444_ACEOF
80992638 4445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4446 $EGREP "free" >/dev/null 2>&1; then
4447 :
795ca3e5 4448else
ad6254c5 4449 ac_cv_header_stdc=no
795ca3e5 4450fi
80992638 4451rm -f conftest*
8106cdd5 4452
795ca3e5
AK
4453fi
4454
ad6254c5
AK
4455if test $ac_cv_header_stdc = yes; then
4456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4457 if test "$cross_compiling" = yes; then
4458 :
795ca3e5 4459else
ad6254c5 4460 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
4466#include <ctype.h>
7a197a62 4467#include <stdlib.h>
ad6254c5
AK
4468#if ((' ' & 0x0FF) == 0x020)
4469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4471#else
4472# define ISLOWER(c) \
8a2fc586
AK
4473 (('a' <= (c) && (c) <= 'i') \
4474 || ('j' <= (c) && (c) <= 'r') \
4475 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4477#endif
ad6254c5
AK
4478
4479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4480int
4481main ()
4482{
4483 int i;
4484 for (i = 0; i < 256; i++)
4485 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4486 || toupper (i) != TOUPPER (i))
7a197a62
AK
4487 return 2;
4488 return 0;
ad6254c5
AK
4489}
4490_ACEOF
4491rm -f conftest$ac_exeext
7a197a62
AK
4492if { (ac_try="$ac_link"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
ec6a6fbe
AK
4497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4498$as_echo "$ac_try_echo") >&5
7a197a62 4499 (eval "$ac_link") 2>&5
ad6254c5 4500 ac_status=$?
ec6a6fbe 4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4503 { (case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506esac
ec6a6fbe
AK
4507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4508$as_echo "$ac_try_echo") >&5
7a197a62 4509 (eval "$ac_try") 2>&5
ad6254c5 4510 ac_status=$?
ec6a6fbe 4511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4512 (exit $ac_status); }; }; then
4513 :
795ca3e5 4514else
ec6a6fbe
AK
4515 $as_echo "$as_me: program exited with status $ac_status" >&5
4516$as_echo "$as_me: failed program was:" >&5
ad6254c5 4517sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4518
ad6254c5
AK
4519( exit $ac_status )
4520ac_cv_header_stdc=no
80992638 4521fi
ec6a6fbe 4522rm -rf conftest.dSYM
7a197a62 4523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4524fi
7a197a62
AK
4525
4526
ad6254c5
AK
4527fi
4528fi
ec6a6fbe
AK
4529{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4530$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4531if test $ac_cv_header_stdc = yes; then
4532
4533cat >>confdefs.h <<\_ACEOF
4534#define STDC_HEADERS 1
4535_ACEOF
795ca3e5
AK
4536
4537fi
4538
d911ec67 4539# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4540
ad6254c5 4541
7a197a62 4542
8106cdd5 4543
795ca3e5 4544
795ca3e5 4545
d911ec67
AK
4546
4547
4548
4549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4550 inttypes.h stdint.h unistd.h
4551do
4552as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4554$as_echo_n "checking for $ac_header... " >&6; }
4555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4556 $as_echo_n "(cached) " >&6
795ca3e5 4557else
ad6254c5 4558 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
d911ec67 4564$ac_includes_default
ad6254c5 4565
d911ec67 4566#include <$ac_header>
ad6254c5
AK
4567_ACEOF
4568rm -f conftest.$ac_objext
7a197a62
AK
4569if { (ac_try="$ac_compile"
4570case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573esac
ec6a6fbe
AK
4574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575$as_echo "$ac_try_echo") >&5
7a197a62 4576 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4577 ac_status=$?
8a2fc586
AK
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
ec6a6fbe 4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest.$ac_objext; then
d911ec67 4586 eval "$as_ac_Header=yes"
795ca3e5 4587else
ec6a6fbe 4588 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
d911ec67 4591 eval "$as_ac_Header=no"
795ca3e5 4592fi
7a197a62
AK
4593
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4595fi
d911ec67
AK
4596ac_res=`eval 'as_val=${'$as_ac_Header'}
4597 $as_echo "$as_val"'`
4598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4599$as_echo "$ac_res" >&6; }
4600as_val=`eval 'as_val=${'$as_ac_Header'}
4601 $as_echo "$as_val"'`
4602 if test "x$as_val" = x""yes; then
4603 cat >>confdefs.h <<_ACEOF
4604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4605_ACEOF
b896caa1 4606
8106cdd5 4607fi
b896caa1 4608
d911ec67 4609done
d0191583
JM
4610
4611
d911ec67
AK
4612{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4613$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4614if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4615 $as_echo_n "(cached) " >&6
d0191583
JM
4616else
4617 cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h. */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h. */
d911ec67
AK
4623#include <sys/types.h>
4624int
4625main ()
4626{
4627return makedev(0, 0);
4628 ;
4629 return 0;
4630}
d0191583 4631_ACEOF
d911ec67
AK
4632rm -f conftest.$ac_objext conftest$ac_exeext
4633if { (ac_try="$ac_link"
d0191583
JM
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
ec6a6fbe
AK
4638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4639$as_echo "$ac_try_echo") >&5
d911ec67 4640 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
ec6a6fbe 4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4646 (exit $ac_status); } && {
4647 test -z "$ac_c_werror_flag" ||
4648 test ! -s conftest.err
d911ec67
AK
4649 } && test -s conftest$ac_exeext && {
4650 test "$cross_compiling" = yes ||
4651 $as_test_x conftest$ac_exeext
4652 }; then
4653 ac_cv_header_sys_types_h_makedev=yes
d0191583 4654else
ec6a6fbe 4655 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
d911ec67 4658 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4659fi
4660
d911ec67
AK
4661rm -rf conftest.dSYM
4662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4663 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4664
4665fi
d911ec67
AK
4666{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4667$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4668
d911ec67
AK
4669if test $ac_cv_header_sys_types_h_makedev = no; then
4670if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4671 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4672$as_echo_n "checking for sys/mkdev.h... " >&6; }
4673if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4674 $as_echo_n "(cached) " >&6
d0191583 4675fi
d911ec67
AK
4676{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4677$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4678else
d0191583 4679 # Is the header compilable?
d911ec67
AK
4680{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4681$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4682cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4683/* confdefs.h. */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h. */
4688$ac_includes_default
d911ec67 4689#include <sys/mkdev.h>
ad6254c5
AK
4690_ACEOF
4691rm -f conftest.$ac_objext
7a197a62
AK
4692if { (ac_try="$ac_compile"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
ec6a6fbe
AK
4697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698$as_echo "$ac_try_echo") >&5
7a197a62 4699 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4700 ac_status=$?
8a2fc586
AK
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
ec6a6fbe 4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
d0191583 4709 ac_header_compiler=yes
ad6254c5 4710else
ec6a6fbe 4711 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4712sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4713
d0191583 4714 ac_header_compiler=no
ad6254c5 4715fi
7a197a62
AK
4716
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4718{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4720
4721# Is the header present?
d911ec67
AK
4722{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4723$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4724cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h. */
d911ec67 4730#include <sys/mkdev.h>
d0191583
JM
4731_ACEOF
4732if { (ac_try="$ac_cpp conftest.$ac_ext"
4733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
ec6a6fbe
AK
4737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738$as_echo "$ac_try_echo") >&5
d0191583
JM
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
ec6a6fbe 4744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4745 (exit $ac_status); } >/dev/null && {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 }; then
4749 ac_header_preproc=yes
4750else
ec6a6fbe 4751 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_preproc=no
4755fi
4756
4757rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4758{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4759$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4760
4761# So? What about this header?
4762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4763 yes:no: )
d911ec67
AK
4764 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4765$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4766 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4767$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4768 ac_header_preproc=yes
4769 ;;
4770 no:yes:* )
d911ec67
AK
4771 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4772$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4774$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4776$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4778$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4780$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4782$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4783
4784 ;;
4785esac
d911ec67
AK
4786{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4787$as_echo_n "checking for sys/mkdev.h... " >&6; }
4788if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4789 $as_echo_n "(cached) " >&6
d0191583 4790else
d911ec67 4791 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4792fi
d911ec67
AK
4793{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4794$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4795
4796fi
d911ec67
AK
4797if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4798
4799cat >>confdefs.h <<\_ACEOF
4800#define MAJOR_IN_MKDEV 1
ad6254c5 4801_ACEOF
a38df97f 4802
80992638
AK
4803fi
4804
80992638 4805
5a52dca9 4806
d911ec67
AK
4807 if test $ac_cv_header_sys_mkdev_h = no; then
4808 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4809 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4810$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4811if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4812 $as_echo_n "(cached) " >&6
ad6254c5 4813fi
d911ec67
AK
4814{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4815$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4816else
4817 # Is the header compilable?
d911ec67
AK
4818{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4819$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4820cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826$ac_includes_default
d911ec67 4827#include <sys/sysmacros.h>
ad6254c5
AK
4828_ACEOF
4829rm -f conftest.$ac_objext
7a197a62
AK
4830if { (ac_try="$ac_compile"
4831case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834esac
ec6a6fbe
AK
4835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836$as_echo "$ac_try_echo") >&5
7a197a62 4837 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4838 ac_status=$?
8a2fc586
AK
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
ec6a6fbe 4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
fc54be10
AK
4847 ac_header_compiler=yes
4848else
ec6a6fbe 4849 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 ac_header_compiler=no
4853fi
4854
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4856{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4857$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4858
4859# Is the header present?
d911ec67
AK
4860{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4861$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4862cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
d911ec67 4868#include <sys/sysmacros.h>
ad6254c5 4869_ACEOF
7a197a62
AK
4870if { (ac_try="$ac_cpp conftest.$ac_ext"
4871case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874esac
ec6a6fbe
AK
4875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876$as_echo "$ac_try_echo") >&5
7a197a62 4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
ec6a6fbe 4882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4883 (exit $ac_status); } >/dev/null && {
4884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 }; then
ad6254c5
AK
4887 ac_header_preproc=yes
4888else
ec6a6fbe 4889 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892 ac_header_preproc=no
4893fi
7a197a62 4894
ad6254c5 4895rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4896{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4897$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4898
4899# So? What about this header?
8a2fc586
AK
4900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4901 yes:no: )
d911ec67
AK
4902 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4903$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4904 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4905$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4906 ac_header_preproc=yes
ad6254c5 4907 ;;
8a2fc586 4908 no:yes:* )
d911ec67
AK
4909 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4910$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4912$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4913 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4914$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4915 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4916$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4917 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4918$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4919 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4920$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4921
ad6254c5
AK
4922 ;;
4923esac
d911ec67
AK
4924{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4925$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4926if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4927 $as_echo_n "(cached) " >&6
ad6254c5 4928else
d911ec67 4929 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4930fi
d911ec67
AK
4931{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4932$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4933
4934fi
d911ec67
AK
4935if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4936
4937cat >>confdefs.h <<\_ACEOF
4938#define MAJOR_IN_SYSMACROS 1
ad6254c5 4939_ACEOF
b896caa1 4940
80992638
AK
4941fi
4942
d8ac0fbc 4943
d911ec67
AK
4944 fi
4945fi
d8ac0fbc 4946
d911ec67
AK
4947{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4948$as_echo_n "checking for ANSI C header files... " >&6; }
4949if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4950 $as_echo_n "(cached) " >&6
ad6254c5 4951else
d911ec67 4952 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
d911ec67
AK
4958#include <stdlib.h>
4959#include <stdarg.h>
4960#include <string.h>
4961#include <float.h>
4962
4963int
4964main ()
4965{
4966
4967 ;
4968 return 0;
4969}
ad6254c5
AK
4970_ACEOF
4971rm -f conftest.$ac_objext
7a197a62
AK
4972if { (ac_try="$ac_compile"
4973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
ec6a6fbe
AK
4977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978$as_echo "$ac_try_echo") >&5
7a197a62 4979 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4980 ac_status=$?
8a2fc586
AK
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
ec6a6fbe 4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
d911ec67 4989 ac_cv_header_stdc=yes
ad6254c5 4990else
ec6a6fbe 4991 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
d911ec67 4994 ac_cv_header_stdc=no
ad6254c5 4995fi
7a197a62
AK
4996
4997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4998
d911ec67
AK
4999if test $ac_cv_header_stdc = yes; then
5000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5001 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
d911ec67
AK
5007#include <string.h>
5008
ad6254c5 5009_ACEOF
d911ec67
AK
5010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5011 $EGREP "memchr" >/dev/null 2>&1; then
5012 :
5013else
5014 ac_cv_header_stdc=no
5015fi
5016rm -f conftest*
5017
5018fi
5019
5020if test $ac_cv_header_stdc = yes; then
5021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5022 cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h. */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h. */
5028#include <stdlib.h>
5029
5030_ACEOF
5031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5032 $EGREP "free" >/dev/null 2>&1; then
5033 :
5034else
5035 ac_cv_header_stdc=no
5036fi
5037rm -f conftest*
5038
5039fi
5040
5041if test $ac_cv_header_stdc = yes; then
5042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5043 if test "$cross_compiling" = yes; then
5044 :
5045else
5046 cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#include <ctype.h>
5053#include <stdlib.h>
5054#if ((' ' & 0x0FF) == 0x020)
5055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5057#else
5058# define ISLOWER(c) \
5059 (('a' <= (c) && (c) <= 'i') \
5060 || ('j' <= (c) && (c) <= 'r') \
5061 || ('s' <= (c) && (c) <= 'z'))
5062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5063#endif
5064
5065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066int
5067main ()
5068{
5069 int i;
5070 for (i = 0; i < 256; i++)
5071 if (XOR (islower (i), ISLOWER (i))
5072 || toupper (i) != TOUPPER (i))
5073 return 2;
5074 return 0;
5075}
5076_ACEOF
5077rm -f conftest$ac_exeext
5078if { (ac_try="$ac_link"
7a197a62
AK
5079case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082esac
ec6a6fbe
AK
5083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084$as_echo "$ac_try_echo") >&5
d911ec67
AK
5085 (eval "$ac_link") 2>&5
5086 ac_status=$?
5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5089 { (case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094$as_echo "$ac_try_echo") >&5
5095 (eval "$ac_try") 2>&5
5096 ac_status=$?
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 :
5100else
5101 $as_echo "$as_me: program exited with status $ac_status" >&5
5102$as_echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105( exit $ac_status )
5106ac_cv_header_stdc=no
5107fi
5108rm -rf conftest.dSYM
5109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5110fi
5111
5112
5113fi
5114fi
5115{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5116$as_echo "$ac_cv_header_stdc" >&6; }
5117if test $ac_cv_header_stdc = yes; then
5118
5119cat >>confdefs.h <<\_ACEOF
5120#define STDC_HEADERS 1
5121_ACEOF
5122
5123fi
5124
5125{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5126$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5127if test "${ac_cv_header_sys_wait_h+set}" = set; then
5128 $as_echo_n "(cached) " >&6
5129else
5130 cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
5136#include <sys/types.h>
5137#include <sys/wait.h>
5138#ifndef WEXITSTATUS
5139# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5140#endif
5141#ifndef WIFEXITED
5142# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5143#endif
5144
5145int
5146main ()
5147{
5148 int s;
5149 wait (&s);
5150 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext
5156if { (ac_try="$ac_compile"
5157case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160esac
5161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5162$as_echo "$ac_try_echo") >&5
5163 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
ec6a6fbe 5168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5169 (exit $ac_status); } && {
5170 test -z "$ac_c_werror_flag" ||
25fbec5b 5171 test ! -s conftest.err
d911ec67
AK
5172 } && test -s conftest.$ac_objext; then
5173 ac_cv_header_sys_wait_h=yes
ad6254c5 5174else
ec6a6fbe 5175 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
d911ec67 5178 ac_cv_header_sys_wait_h=no
ad6254c5 5179fi
7a197a62 5180
d911ec67
AK
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182fi
5183{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5184$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5185if test $ac_cv_header_sys_wait_h = yes; then
5186
5187cat >>confdefs.h <<\_ACEOF
5188#define HAVE_SYS_WAIT_H 1
5189_ACEOF
5190
5191fi
5192
5193{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5194$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5195if test "${ac_cv_header_time+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5197else
5198 cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h. */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h. */
5204#include <sys/types.h>
5205#include <sys/time.h>
5206#include <time.h>
5207
5208int
5209main ()
5210{
5211if ((struct tm *) 0)
5212return 0;
5213 ;
5214 return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext
5218if { (ac_try="$ac_compile"
5219case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222esac
5223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224$as_echo "$ac_try_echo") >&5
5225 (eval "$ac_compile") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest.$ac_objext; then
5235 ac_cv_header_time=yes
5236else
5237 $as_echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 ac_cv_header_time=no
5241fi
5242
5243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244fi
5245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5246$as_echo "$ac_cv_header_time" >&6; }
5247if test $ac_cv_header_time = yes; then
5248
5249cat >>confdefs.h <<\_ACEOF
5250#define TIME_WITH_SYS_TIME 1
5251_ACEOF
5252
5253fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5271 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5272 sys/wait.h time.h
5273do
5274as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5277$as_echo_n "checking for $ac_header... " >&6; }
5278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5279 $as_echo_n "(cached) " >&6
5280fi
5281ac_res=`eval 'as_val=${'$as_ac_Header'}
5282 $as_echo "$as_val"'`
5283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5284$as_echo "$ac_res" >&6; }
5285else
5286 # Is the header compilable?
5287{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5288$as_echo_n "checking $ac_header usability... " >&6; }
5289cat >conftest.$ac_ext <<_ACEOF
5290/* confdefs.h. */
5291_ACEOF
5292cat confdefs.h >>conftest.$ac_ext
5293cat >>conftest.$ac_ext <<_ACEOF
5294/* end confdefs.h. */
5295$ac_includes_default
5296#include <$ac_header>
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5305$as_echo "$ac_try_echo") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5316 ac_header_compiler=yes
5317else
5318 $as_echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 ac_header_compiler=no
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5326$as_echo "$ac_header_compiler" >&6; }
5327
5328# Is the header present?
5329{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5330$as_echo_n "checking $ac_header presence... " >&6; }
5331cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#include <$ac_header>
5338_ACEOF
5339if { (ac_try="$ac_cpp conftest.$ac_ext"
5340case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343esac
5344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5345$as_echo "$ac_try_echo") >&5
5346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null && {
5353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 }; then
5356 ac_header_preproc=yes
5357else
5358 $as_echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_header_preproc=no
5362fi
5363
5364rm -f conftest.err conftest.$ac_ext
5365{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5366$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5367
5368# So? What about this header?
8a2fc586
AK
5369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5370 yes:no: )
ec6a6fbe
AK
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5372$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5374$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5375 ac_header_preproc=yes
ad6254c5 5376 ;;
8a2fc586 5377 no:yes:* )
ec6a6fbe
AK
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5379$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5381$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5383$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5385$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5387$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5389$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5390
ad6254c5
AK
5391 ;;
5392esac
d911ec67
AK
5393{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5394$as_echo_n "checking for $ac_header... " >&6; }
5395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5396 $as_echo_n "(cached) " >&6
5397else
5398 eval "$as_ac_Header=\$ac_header_preproc"
5399fi
5400ac_res=`eval 'as_val=${'$as_ac_Header'}
5401 $as_echo "$as_val"'`
5402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5403$as_echo "$ac_res" >&6; }
5404
5405fi
5406as_val=`eval 'as_val=${'$as_ac_Header'}
5407 $as_echo "$as_val"'`
5408 if test "x$as_val" = x""yes; then
5409 cat >>confdefs.h <<_ACEOF
5410#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411_ACEOF
5412
5413else
5414 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5415$as_echo "$as_me: error: bailing out" >&2;}
5416 { (exit 1); exit 1; }; }
5417fi
5418
5419done
5420
5421
5422case "$host_os" in
5423 linux*)
5424
5425
5426
5427for ac_header in asm/byteorder.h linux/fs.h malloc.h
5428do
5429as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5432$as_echo_n "checking for $ac_header... " >&6; }
5433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5434 $as_echo_n "(cached) " >&6
5435fi
5436ac_res=`eval 'as_val=${'$as_ac_Header'}
5437 $as_echo "$as_val"'`
5438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5439$as_echo "$ac_res" >&6; }
5440else
5441 # Is the header compilable?
5442{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5443$as_echo_n "checking $ac_header usability... " >&6; }
5444cat >conftest.$ac_ext <<_ACEOF
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
5450$ac_includes_default
5451#include <$ac_header>
5452_ACEOF
5453rm -f conftest.$ac_objext
5454if { (ac_try="$ac_compile"
5455case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458esac
5459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5460$as_echo "$ac_try_echo") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_header_compiler=yes
5472else
5473 $as_echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_header_compiler=no
5477fi
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5481$as_echo "$ac_header_compiler" >&6; }
5482
5483# Is the header present?
5484{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5485$as_echo_n "checking $ac_header presence... " >&6; }
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492#include <$ac_header>
5493_ACEOF
5494if { (ac_try="$ac_cpp conftest.$ac_ext"
5495case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498esac
5499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500$as_echo "$ac_try_echo") >&5
5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null && {
5508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 }; then
5511 ac_header_preproc=yes
5512else
5513 $as_echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_header_preproc=no
5517fi
5518
5519rm -f conftest.err conftest.$ac_ext
5520{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5521$as_echo "$ac_header_preproc" >&6; }
5522
5523# So? What about this header?
5524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5525 yes:no: )
5526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5527$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5529$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5530 ac_header_preproc=yes
5531 ;;
5532 no:yes:* )
5533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5534$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5536$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5538$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5540$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5542$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5544$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5545
5546 ;;
5547esac
5548{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5549$as_echo_n "checking for $ac_header... " >&6; }
5550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551 $as_echo_n "(cached) " >&6
5552else
5553 eval "$as_ac_Header=\$ac_header_preproc"
5554fi
5555ac_res=`eval 'as_val=${'$as_ac_Header'}
5556 $as_echo "$as_val"'`
5557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5558$as_echo "$ac_res" >&6; }
5559
5560fi
5561as_val=`eval 'as_val=${'$as_ac_Header'}
5562 $as_echo "$as_val"'`
5563 if test "x$as_val" = x""yes; then
5564 cat >>confdefs.h <<_ACEOF
5565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5566_ACEOF
5567
5568else
5569 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5570$as_echo "$as_me: error: bailing out" >&2;}
5571 { (exit 1); exit 1; }; }
5572fi
5573
5574done
5575 ;;
5576 darwin*)
5577
5578
5579for ac_header in machine/endian.h sys/disk.h
5580do
5581as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5584$as_echo_n "checking for $ac_header... " >&6; }
5585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5586 $as_echo_n "(cached) " >&6
5587fi
5588ac_res=`eval 'as_val=${'$as_ac_Header'}
5589 $as_echo "$as_val"'`
5590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5591$as_echo "$ac_res" >&6; }
5592else
5593 # Is the header compilable?
5594{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595$as_echo_n "checking $ac_header usability... " >&6; }
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602$ac_includes_default
5603#include <$ac_header>
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (ac_try="$ac_compile"
5607case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612$as_echo "$ac_try_echo") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_header_compiler=yes
5624else
5625 $as_echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_header_compiler=no
5629fi
5630
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5633$as_echo "$ac_header_compiler" >&6; }
5634
5635# Is the header present?
5636{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5637$as_echo_n "checking $ac_header presence... " >&6; }
5638cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */
5644#include <$ac_header>
5645_ACEOF
5646if { (ac_try="$ac_cpp conftest.$ac_ext"
5647case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650esac
5651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652$as_echo "$ac_try_echo") >&5
5653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null && {
5660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5661 test ! -s conftest.err
5662 }; then
5663 ac_header_preproc=yes
5664else
5665 $as_echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 ac_header_preproc=no
5669fi
5670
5671rm -f conftest.err conftest.$ac_ext
5672{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5673$as_echo "$ac_header_preproc" >&6; }
5674
5675# So? What about this header?
5676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5677 yes:no: )
5678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5679$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5681$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5682 ac_header_preproc=yes
5683 ;;
5684 no:yes:* )
5685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5688$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5690$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5692$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5694$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5696$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5697
5698 ;;
5699esac
5700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5701$as_echo_n "checking for $ac_header... " >&6; }
5702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5703 $as_echo_n "(cached) " >&6
5704else
5705 eval "$as_ac_Header=\$ac_header_preproc"
5706fi
5707ac_res=`eval 'as_val=${'$as_ac_Header'}
5708 $as_echo "$as_val"'`
5709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5710$as_echo "$ac_res" >&6; }
5711
5712fi
5713as_val=`eval 'as_val=${'$as_ac_Header'}
5714 $as_echo "$as_val"'`
5715 if test "x$as_val" = x""yes; then
5716 cat >>confdefs.h <<_ACEOF
5717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718_ACEOF
5719
5720else
5721 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5722$as_echo "$as_me: error: bailing out" >&2;}
5723 { (exit 1); exit 1; }; }
5724fi
5725
5726done
5727 ;;
5728esac
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5747 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5748 sys/types.h unistd.h
5749do
5750as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5753$as_echo_n "checking for $ac_header... " >&6; }
5754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5755 $as_echo_n "(cached) " >&6
5756fi
5757ac_res=`eval 'as_val=${'$as_ac_Header'}
5758 $as_echo "$as_val"'`
5759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5760$as_echo "$ac_res" >&6; }
5761else
5762 # Is the header compilable?
5763{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5764$as_echo_n "checking $ac_header usability... " >&6; }
5765cat >conftest.$ac_ext <<_ACEOF
5766/* confdefs.h. */
5767_ACEOF
5768cat confdefs.h >>conftest.$ac_ext
5769cat >>conftest.$ac_ext <<_ACEOF
5770/* end confdefs.h. */
5771$ac_includes_default
5772#include <$ac_header>
5773_ACEOF
5774rm -f conftest.$ac_objext
5775if { (ac_try="$ac_compile"
5776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5781$as_echo "$ac_try_echo") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 ac_header_compiler=yes
5793else
5794 $as_echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 ac_header_compiler=no
5798fi
5799
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5802$as_echo "$ac_header_compiler" >&6; }
5803
5804# Is the header present?
5805{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5806$as_echo_n "checking $ac_header presence... " >&6; }
5807cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h. */
5813#include <$ac_header>
5814_ACEOF
5815if { (ac_try="$ac_cpp conftest.$ac_ext"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5821$as_echo "$ac_try_echo") >&5
5822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null && {
5829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 }; then
5832 ac_header_preproc=yes
5833else
5834 $as_echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ac_header_preproc=no
5838fi
5839
5840rm -f conftest.err conftest.$ac_ext
5841{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5842$as_echo "$ac_header_preproc" >&6; }
5843
5844# So? What about this header?
5845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5846 yes:no: )
5847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5848$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5850$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5851 ac_header_preproc=yes
5852 ;;
5853 no:yes:* )
5854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5855$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5857$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5859$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5861$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5863$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5865$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5866
5867 ;;
5868esac
5869{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5870$as_echo_n "checking for $ac_header... " >&6; }
5871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5872 $as_echo_n "(cached) " >&6
5873else
5874 eval "$as_ac_Header=\$ac_header_preproc"
5875fi
5876ac_res=`eval 'as_val=${'$as_ac_Header'}
5877 $as_echo "$as_val"'`
5878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5879$as_echo "$ac_res" >&6; }
5880
5881fi
5882as_val=`eval 'as_val=${'$as_ac_Header'}
5883 $as_echo "$as_val"'`
5884 if test "x$as_val" = x""yes; then
5885 cat >>confdefs.h <<_ACEOF
5886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887_ACEOF
5888
5889else
5890 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5891$as_echo "$as_me: error: bailing out" >&2;}
5892 { (exit 1); exit 1; }; }
5893fi
5894
5895done
5896
5897
5898
5899for ac_header in termios.h sys/statvfs.h
5900do
5901as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5904$as_echo_n "checking for $ac_header... " >&6; }
5905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5906 $as_echo_n "(cached) " >&6
5907fi
5908ac_res=`eval 'as_val=${'$as_ac_Header'}
5909 $as_echo "$as_val"'`
5910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5911$as_echo "$ac_res" >&6; }
5912else
5913 # Is the header compilable?
5914{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5915$as_echo_n "checking $ac_header usability... " >&6; }
5916cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922$ac_includes_default
5923#include <$ac_header>
5924_ACEOF
5925rm -f conftest.$ac_objext
5926if { (ac_try="$ac_compile"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932$as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
5943 ac_header_compiler=yes
5944else
5945 $as_echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_compiler=no
5949fi
5950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5953$as_echo "$ac_header_compiler" >&6; }
5954
5955# Is the header present?
5956{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5957$as_echo_n "checking $ac_header presence... " >&6; }
5958cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964#include <$ac_header>
5965_ACEOF
5966if { (ac_try="$ac_cpp conftest.$ac_ext"
5967case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972$as_echo "$ac_try_echo") >&5
5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null && {
5980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 }; then
5983 ac_header_preproc=yes
5984else
5985 $as_echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 ac_header_preproc=no
5989fi
5990
5991rm -f conftest.err conftest.$ac_ext
5992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5993$as_echo "$ac_header_preproc" >&6; }
5994
5995# So? What about this header?
5996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5997 yes:no: )
5998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5999$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6001$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6002 ac_header_preproc=yes
6003 ;;
6004 no:yes:* )
6005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6006$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6008$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6010$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6012$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6014$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6016$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6017
6018 ;;
6019esac
6020{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6021$as_echo_n "checking for $ac_header... " >&6; }
6022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023 $as_echo_n "(cached) " >&6
6024else
6025 eval "$as_ac_Header=\$ac_header_preproc"
6026fi
6027ac_res=`eval 'as_val=${'$as_ac_Header'}
6028 $as_echo "$as_val"'`
6029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6030$as_echo "$ac_res" >&6; }
6031
6032fi
6033as_val=`eval 'as_val=${'$as_ac_Header'}
6034 $as_echo "$as_val"'`
6035 if test "x$as_val" = x""yes; then
6036 cat >>confdefs.h <<_ACEOF
6037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038_ACEOF
6039
6040fi
6041
6042done
6043
6044
6045################################################################################
6046{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6047$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6048if test "${ac_cv_c_const+set}" = set; then
6049 $as_echo_n "(cached) " >&6
6050else
6051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057
6058int
6059main ()
6060{
6061/* FIXME: Include the comments suggested by Paul. */
6062#ifndef __cplusplus
6063 /* Ultrix mips cc rejects this. */
6064 typedef int charset[2];
6065 const charset cs;
6066 /* SunOS 4.1.1 cc rejects this. */
6067 char const *const *pcpcc;
6068 char **ppc;
6069 /* NEC SVR4.0.2 mips cc rejects this. */
6070 struct point {int x, y;};
6071 static struct point const zero = {0,0};
6072 /* AIX XL C 1.02.0.0 rejects this.
6073 It does not let you subtract one const X* pointer from another in
6074 an arm of an if-expression whose if-part is not a constant
6075 expression */
6076 const char *g = "string";
6077 pcpcc = &g + (g ? g-g : 0);
6078 /* HPUX 7.0 cc rejects these. */
6079 ++pcpcc;
6080 ppc = (char**) pcpcc;
6081 pcpcc = (char const *const *) ppc;
6082 { /* SCO 3.2v4 cc rejects this. */
6083 char *t;
6084 char const *s = 0 ? (char *) 0 : (char const *) 0;
6085
6086 *t++ = 0;
6087 if (s) return 0;
6088 }
6089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6090 int x[] = {25, 17};
6091 const int *foo = &x[0];
6092 ++foo;
6093 }
6094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6095 typedef const int *iptr;
6096 iptr p = 0;
6097 ++p;
6098 }
6099 { /* AIX XL C 1.02.0.0 rejects this saying
6100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6101 struct s { int j; const int *ap[3]; };
6102 struct s *b; b->j = 5;
6103 }
6104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6105 const int foo = 10;
6106 if (!foo) return 0;
6107 }
6108 return !cs[0] && !zero.x;
6109#endif
6110
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122$as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_cv_c_const=yes
6134else
6135 $as_echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_cv_c_const=no
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142fi
6143{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6144$as_echo "$ac_cv_c_const" >&6; }
6145if test $ac_cv_c_const = no; then
6146
6147cat >>confdefs.h <<\_ACEOF
6148#define const /**/
6149_ACEOF
6150
6151fi
6152
6153{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6154$as_echo_n "checking for inline... " >&6; }
6155if test "${ac_cv_c_inline+set}" = set; then
6156 $as_echo_n "(cached) " >&6
6157else
6158 ac_cv_c_inline=no
6159for ac_kw in inline __inline__ __inline; do
6160 cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166#ifndef __cplusplus
6167typedef int foo_t;
6168static $ac_kw foo_t static_foo () {return 0; }
6169$ac_kw foo_t foo () {return 0; }
6170#endif
6171
6172_ACEOF
6173rm -f conftest.$ac_objext
6174if { (ac_try="$ac_compile"
6175case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178esac
6179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180$as_echo "$ac_try_echo") >&5
6181 (eval "$ac_compile") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
6191 ac_cv_c_inline=$ac_kw
6192else
6193 $as_echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197fi
6198
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 test "$ac_cv_c_inline" != no && break
6201done
6202
6203fi
6204{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6205$as_echo "$ac_cv_c_inline" >&6; }
6206
6207
6208case $ac_cv_c_inline in
6209 inline | yes) ;;
6210 *)
6211 case $ac_cv_c_inline in
6212 no) ac_val=;;
6213 *) ac_val=$ac_cv_c_inline;;
6214 esac
6215 cat >>confdefs.h <<_ACEOF
6216#ifndef __cplusplus
6217#define inline $ac_val
6218#endif
6219_ACEOF
6220 ;;
6221esac
6222
6223{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6224$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6225if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6226 $as_echo_n "(cached) " >&6
6227else
6228 cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234$ac_includes_default
6235int
6236main ()
6237{
6238static struct stat ac_aggr;
6239if (ac_aggr.st_rdev)
6240return 0;
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext
6246if { (ac_try="$ac_compile"
6247case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250esac
6251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252$as_echo "$ac_try_echo") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 ac_cv_member_struct_stat_st_rdev=yes
6264else
6265 $as_echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
6274$ac_includes_default
6275int
6276main ()
6277{
6278static struct stat ac_aggr;
6279if (sizeof ac_aggr.st_rdev)
6280return 0;
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292$as_echo "$ac_try_echo") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 ac_cv_member_struct_stat_st_rdev=yes
6304else
6305 $as_echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_cv_member_struct_stat_st_rdev=no
6309fi
6310
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315fi
6316{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6317$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6318if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6319
6320cat >>confdefs.h <<_ACEOF
6321#define HAVE_STRUCT_STAT_ST_RDEV 1
6322_ACEOF
6323
6324
6325fi
6326
6327{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6328$as_echo_n "checking for off_t... " >&6; }
6329if test "${ac_cv_type_off_t+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331else
6332 ac_cv_type_off_t=no
6333cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339$ac_includes_default
6340int
6341main ()
6342{
6343if (sizeof (off_t))
6344 return 0;
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext
6350if { (ac_try="$ac_compile"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6356$as_echo "$ac_try_echo") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h. */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h. */
6373$ac_includes_default
6374int
6375main ()
6376{
6377if (sizeof ((off_t)))
6378 return 0;
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext
6384if { (ac_try="$ac_compile"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390$as_echo "$ac_try_echo") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 :
6402else
6403 $as_echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_cv_type_off_t=yes
6407fi
6408
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410else
6411 $as_echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414
6415fi
6416
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6420$as_echo "$ac_cv_type_off_t" >&6; }
6421if test "x$ac_cv_type_off_t" = x""yes; then
6422 :
6423else
6424
6425cat >>confdefs.h <<_ACEOF
6426#define off_t long int
6427_ACEOF
6428
6429fi
6430
6431{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6432$as_echo_n "checking for pid_t... " >&6; }
6433if test "${ac_cv_type_pid_t+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435else
6436 ac_cv_type_pid_t=no
6437cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h. */
6443$ac_includes_default
6444int
6445main ()
6446{
6447if (sizeof (pid_t))
6448 return 0;
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453rm -f conftest.$ac_objext
6454if { (ac_try="$ac_compile"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6460$as_echo "$ac_try_echo") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6471 cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477$ac_includes_default
6478int
6479main ()
6480{
6481if (sizeof ((pid_t)))
6482 return 0;
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487rm -f conftest.$ac_objext
6488if { (ac_try="$ac_compile"
6489case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492esac
6493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494$as_echo "$ac_try_echo") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 :
6506else
6507 $as_echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 ac_cv_type_pid_t=yes
6511fi
6512
6513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514else
6515 $as_echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518
6519fi
6520
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522fi
6523{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6524$as_echo "$ac_cv_type_pid_t" >&6; }
6525if test "x$ac_cv_type_pid_t" = x""yes; then
6526 :
6527else
6528
6529cat >>confdefs.h <<_ACEOF
6530#define pid_t int
6531_ACEOF
6532
6533fi
6534
6535{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6536$as_echo_n "checking return type of signal handlers... " >&6; }
6537if test "${ac_cv_type_signal+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539else
6540 cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546#include <sys/types.h>
6547#include <signal.h>
6548
6549int
6550main ()
6551{
6552return *(signal (0, 0)) (0) == 1;
6553 ;
6554 return 0;
6555}
6556_ACEOF
6557rm -f conftest.$ac_objext
6558if { (ac_try="$ac_compile"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6564$as_echo "$ac_try_echo") >&5
6565 (eval "$ac_compile") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
6575 ac_cv_type_signal=int
6576else
6577 $as_echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ac_cv_type_signal=void
6581fi
6582
6583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584fi
6585{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6586$as_echo "$ac_cv_type_signal" >&6; }
6587
6588cat >>confdefs.h <<_ACEOF
6589#define RETSIGTYPE $ac_cv_type_signal
6590_ACEOF
6591
6592
6593{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6594$as_echo_n "checking for size_t... " >&6; }
6595if test "${ac_cv_type_size_t+set}" = set; then
6596 $as_echo_n "(cached) " >&6
6597else
6598 ac_cv_type_size_t=no
6599cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605$ac_includes_default
6606int
6607main ()
6608{
6609if (sizeof (size_t))
6610 return 0;
6611 ;
6612 return 0;
6613}
6614_ACEOF
6615rm -f conftest.$ac_objext
6616if { (ac_try="$ac_compile"
6617case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620esac
6621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6622$as_echo "$ac_try_echo") >&5
6623 (eval "$ac_compile") 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_c_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest.$ac_objext; then
6633 cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h. */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h. */
6639$ac_includes_default
6640int
6641main ()
6642{
6643if (sizeof ((size_t)))
6644 return 0;
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649rm -f conftest.$ac_objext
6650if { (ac_try="$ac_compile"
6651case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656$as_echo "$ac_try_echo") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.$ac_objext; then
6667 :
ad6254c5 6668else
d911ec67
AK
6669 $as_echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6671
d911ec67 6672 ac_cv_type_size_t=yes
ad6254c5 6673fi
4922197a 6674
d911ec67 6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6676else
d911ec67
AK
6677 $as_echo "$as_me: failed program was:" >&5
6678sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6679
6680
d911ec67 6681fi
d0191583 6682
d911ec67
AK
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6686$as_echo "$ac_cv_type_size_t" >&6; }
6687if test "x$ac_cv_type_size_t" = x""yes; then
6688 :
6689else
d0191583 6690
d911ec67
AK
6691cat >>confdefs.h <<_ACEOF
6692#define size_t unsigned int
6693_ACEOF
d0191583 6694
d911ec67 6695fi
d0191583 6696
d911ec67
AK
6697{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6698$as_echo_n "checking for mode_t... " >&6; }
6699if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6700 $as_echo_n "(cached) " >&6
795ca3e5 6701else
d911ec67 6702 ac_cv_type_mode_t=no
ad6254c5 6703cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
6709$ac_includes_default
d911ec67
AK
6710int
6711main ()
6712{
6713if (sizeof (mode_t))
6714 return 0;
6715 ;
6716 return 0;
6717}
ad6254c5
AK
6718_ACEOF
6719rm -f conftest.$ac_objext
7a197a62
AK
6720if { (ac_try="$ac_compile"
6721case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724esac
ec6a6fbe
AK
6725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726$as_echo "$ac_try_echo") >&5
7a197a62 6727 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6728 ac_status=$?
8a2fc586
AK
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
ec6a6fbe 6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest.$ac_objext; then
d911ec67 6737 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
d911ec67
AK
6743$ac_includes_default
6744int
6745main ()
6746{
6747if (sizeof ((mode_t)))
6748 return 0;
6749 ;
6750 return 0;
6751}
ad6254c5 6752_ACEOF
d911ec67
AK
6753rm -f conftest.$ac_objext
6754if { (ac_try="$ac_compile"
7a197a62
AK
6755case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758esac
ec6a6fbe
AK
6759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760$as_echo "$ac_try_echo") >&5
d911ec67 6761 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
ec6a6fbe 6766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
25fbec5b 6769 test ! -s conftest.err
d911ec67
AK
6770 } && test -s conftest.$ac_objext; then
6771 :
ad6254c5 6772else
ec6a6fbe 6773 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
d911ec67 6776 ac_cv_type_mode_t=yes
ad6254c5 6777fi
7a197a62 6778
d911ec67
AK
6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780else
6781 $as_echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6783
7a197a62 6784
80992638
AK
6785fi
6786
d911ec67 6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6788fi
d911ec67
AK
6789{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6790$as_echo "$ac_cv_type_mode_t" >&6; }
6791if test "x$ac_cv_type_mode_t" = x""yes; then
6792 :
795ca3e5 6793else
80992638 6794
d911ec67
AK
6795cat >>confdefs.h <<_ACEOF
6796#define mode_t int
6797_ACEOF
ad6254c5 6798
d911ec67 6799fi
795ca3e5 6800
d0191583 6801
d911ec67
AK
6802 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6803$as_echo_n "checking for int8_t... " >&6; }
6804if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6805 $as_echo_n "(cached) " >&6
ad6254c5 6806else
d911ec67
AK
6807 ac_cv_c_int8_t=no
6808 for ac_type in 'int8_t' 'int' 'long int' \
6809 'long long int' 'short int' 'signed char'; do
6810 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
6816$ac_includes_default
d911ec67
AK
6817int
6818main ()
6819{
6820static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6821test_array [0] = 0
6822
6823 ;
6824 return 0;
6825}
ad6254c5
AK
6826_ACEOF
6827rm -f conftest.$ac_objext
7a197a62
AK
6828if { (ac_try="$ac_compile"
6829case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832esac
ec6a6fbe
AK
6833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834$as_echo "$ac_try_echo") >&5
7a197a62 6835 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6836 ac_status=$?
8a2fc586
AK
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
ec6a6fbe 6840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
d911ec67 6845 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
d911ec67
AK
6851$ac_includes_default
6852int
6853main ()
6854{
6855static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6856 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6857test_array [0] = 0
6858
6859 ;
6860 return 0;
6861}
ad6254c5 6862_ACEOF
d911ec67
AK
6863rm -f conftest.$ac_objext
6864if { (ac_try="$ac_compile"
7a197a62
AK
6865case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868esac
ec6a6fbe
AK
6869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6870$as_echo "$ac_try_echo") >&5
d911ec67 6871 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
ec6a6fbe 6876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6877 (exit $ac_status); } && {
6878 test -z "$ac_c_werror_flag" ||
25fbec5b 6879 test ! -s conftest.err
d911ec67
AK
6880 } && test -s conftest.$ac_objext; then
6881 :
ad6254c5 6882else
ec6a6fbe 6883 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
d911ec67
AK
6886 case $ac_type in
6887 int8_t) ac_cv_c_int8_t=yes ;;
6888 *) ac_cv_c_int8_t=$ac_type ;;
6889esac
ad6254c5 6890
d911ec67 6891fi
7a197a62 6892
d911ec67 6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6894else
d911ec67
AK
6895 $as_echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
b896caa1 6898
ad6254c5 6899fi
ad6254c5 6900
d911ec67
AK
6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 test "$ac_cv_c_int8_t" != no && break
6903 done
80992638 6904fi
d911ec67
AK
6905{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6906$as_echo "$ac_cv_c_int8_t" >&6; }
6907 case $ac_cv_c_int8_t in #(
6908 no|yes) ;; #(
6909 *)
80992638 6910
d911ec67
AK
6911cat >>confdefs.h <<_ACEOF
6912#define int8_t $ac_cv_c_int8_t
6913_ACEOF
6914;;
6915 esac
d0191583 6916
d3c8211f 6917
d911ec67
AK
6918 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6919$as_echo_n "checking for int16_t... " >&6; }
6920if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6921 $as_echo_n "(cached) " >&6
d3c8211f 6922else
d911ec67
AK
6923 ac_cv_c_int16_t=no
6924 for ac_type in 'int16_t' 'int' 'long int' \
6925 'long long int' 'short int' 'signed char'; do
6926 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
d911ec67 6932$ac_includes_default
ad6254c5
AK
6933int
6934main ()
6935{
d911ec67
AK
6936static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6937test_array [0] = 0
ad6254c5
AK
6938
6939 ;
6940 return 0;
6941}
6942_ACEOF
6943rm -f conftest.$ac_objext
7a197a62
AK
6944if { (ac_try="$ac_compile"
6945case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948esac
ec6a6fbe
AK
6949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950$as_echo "$ac_try_echo") >&5
7a197a62 6951 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6952 ac_status=$?
8a2fc586
AK
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
ec6a6fbe 6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
ad6254c5 6961 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6962/* confdefs.h. */
6963_ACEOF
6964cat confdefs.h >>conftest.$ac_ext
6965cat >>conftest.$ac_ext <<_ACEOF
6966/* end confdefs.h. */
d911ec67
AK
6967$ac_includes_default
6968int
6969main ()
6970{
6971static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6972 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6973test_array [0] = 0
80992638 6974
d911ec67
AK
6975 ;
6976 return 0;
6977}
ad6254c5
AK
6978_ACEOF
6979rm -f conftest.$ac_objext
7a197a62
AK
6980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
ec6a6fbe
AK
6985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986$as_echo "$ac_try_echo") >&5
7a197a62 6987 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6988 ac_status=$?
8a2fc586
AK
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
ec6a6fbe 6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6993 (exit $ac_status); } && {
6994 test -z "$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 } && test -s conftest.$ac_objext; then
d911ec67 6997 :
ad6254c5 6998else
ec6a6fbe 6999 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7000sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7001
d911ec67
AK
7002 case $ac_type in
7003 int16_t) ac_cv_c_int16_t=yes ;;
7004 *) ac_cv_c_int16_t=$ac_type ;;
7005esac
7a197a62 7006
8ce0cbda 7007fi
7a197a62
AK
7008
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7010else
7011 $as_echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7013
8a2fc586 7014
d911ec67 7015fi
8a2fc586 7016
d911ec67
AK
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 test "$ac_cv_c_int16_t" != no && break
7019 done
7020fi
7021{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7022$as_echo "$ac_cv_c_int16_t" >&6; }
7023 case $ac_cv_c_int16_t in #(
7024 no|yes) ;; #(
8a2fc586 7025 *)
d911ec67
AK
7026
7027cat >>confdefs.h <<_ACEOF
7028#define int16_t $ac_cv_c_int16_t
c1c065a3 7029_ACEOF
d911ec67
AK
7030;;
7031 esac
d0191583 7032
d911ec67
AK
7033
7034 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7035$as_echo_n "checking for int32_t... " >&6; }
7036if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7037 $as_echo_n "(cached) " >&6
d0191583 7038else
d911ec67
AK
7039 ac_cv_c_int32_t=no
7040 for ac_type in 'int32_t' 'int' 'long int' \
7041 'long long int' 'short int' 'signed char'; do
7042 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
7048$ac_includes_default
7049int
7050main ()
7051{
d911ec67
AK
7052static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7053test_array [0] = 0
7054
d0191583
JM
7055 ;
7056 return 0;
7057}
7058_ACEOF
7059rm -f conftest.$ac_objext
7060if { (ac_try="$ac_compile"
7061case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
ec6a6fbe
AK
7065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066$as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
d911ec67 7077 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7078/* confdefs.h. */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h. */
7083$ac_includes_default
7084int
7085main ()
7086{
d911ec67
AK
7087static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7088 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7089test_array [0] = 0
7090
ec6a6fbe
AK
7091 ;
7092 return 0;
7093}
7094_ACEOF
7095rm -f conftest.$ac_objext
7096if { (ac_try="$ac_compile"
7097case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100esac
7101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7102$as_echo "$ac_try_echo") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
d911ec67 7113 :
ec6a6fbe
AK
7114else
7115 $as_echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
d911ec67
AK
7118 case $ac_type in
7119 int32_t) ac_cv_c_int32_t=yes ;;
7120 *) ac_cv_c_int32_t=$ac_type ;;
7121esac
7122
ec6a6fbe
AK
7123fi
7124
7125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7126else
7127 $as_echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130
ec6a6fbe
AK
7131fi
7132
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7134 test "$ac_cv_c_int32_t" != no && break
7135 done
ec6a6fbe 7136fi
d911ec67
AK
7137{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7138$as_echo "$ac_cv_c_int32_t" >&6; }
7139 case $ac_cv_c_int32_t in #(
7140 no|yes) ;; #(
7141 *)
ec6a6fbe
AK
7142
7143cat >>confdefs.h <<_ACEOF
d911ec67 7144#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7145_ACEOF
d911ec67
AK
7146;;
7147 esac
ec6a6fbe
AK
7148
7149
d911ec67
AK
7150 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7151$as_echo_n "checking for int64_t... " >&6; }
7152if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7153 $as_echo_n "(cached) " >&6
7154else
d911ec67
AK
7155 ac_cv_c_int64_t=no
7156 for ac_type in 'int64_t' 'int' 'long int' \
7157 'long long int' 'short int' 'signed char'; do
7158 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
7164$ac_includes_default
7165int
7166main ()
7167{
d911ec67
AK
7168static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7169test_array [0] = 0
7170
ec6a6fbe
AK
7171 ;
7172 return 0;
7173}
7174_ACEOF
7175rm -f conftest.$ac_objext
7176if { (ac_try="$ac_compile"
7177case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180esac
7181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7182$as_echo "$ac_try_echo") >&5
7183 (eval "$ac_compile") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest.$ac_objext; then
7193 cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
7199$ac_includes_default
7200int
7201main ()
7202{
d911ec67
AK
7203static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7204 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7205test_array [0] = 0
7206
ec6a6fbe
AK
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext
7212if { (ac_try="$ac_compile"
7213case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216esac
7217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7218$as_echo "$ac_try_echo") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 :
7230else
7231 $as_echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
d911ec67
AK
7234 case $ac_type in
7235 int64_t) ac_cv_c_int64_t=yes ;;
7236 *) ac_cv_c_int64_t=$ac_type ;;
7237esac
7238
ec6a6fbe
AK
7239fi
7240
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242else
7243 $as_echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
7246
7247fi
7248
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7250 test "$ac_cv_c_int64_t" != no && break
7251 done
ec6a6fbe 7252fi
d911ec67
AK
7253{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7254$as_echo "$ac_cv_c_int64_t" >&6; }
7255 case $ac_cv_c_int64_t in #(
7256 no|yes) ;; #(
7257 *)
ec6a6fbe
AK
7258
7259cat >>confdefs.h <<_ACEOF
d911ec67 7260#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7261_ACEOF
d911ec67
AK
7262;;
7263 esac
ec6a6fbe 7264
d911ec67
AK
7265{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7266$as_echo_n "checking for ssize_t... " >&6; }
7267if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7268 $as_echo_n "(cached) " >&6
7269else
d911ec67 7270 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7271cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h. */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h. */
7277$ac_includes_default
7278int
7279main ()
7280{
d911ec67 7281if (sizeof (ssize_t))
ec6a6fbe
AK
7282 return 0;
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287rm -f conftest.$ac_objext
7288if { (ac_try="$ac_compile"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294$as_echo "$ac_try_echo") >&5
d0191583
JM
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
ec6a6fbe 7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
ec6a6fbe 7305 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311$ac_includes_default
7312int
7313main ()
7314{
d911ec67 7315if (sizeof ((ssize_t)))
ec6a6fbe 7316 return 0;
d0191583
JM
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321rm -f conftest.$ac_objext
7322if { (ac_try="$ac_compile"
7323case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326esac
ec6a6fbe
AK
7327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328$as_echo "$ac_try_echo") >&5
d0191583
JM
7329 (eval "$ac_compile") 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
ec6a6fbe 7334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
ec6a6fbe 7339 :
d0191583 7340else
ec6a6fbe 7341 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
d911ec67 7344 ac_cv_type_ssize_t=yes
d0191583
JM
7345fi
7346
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7348else
7349 $as_echo "$as_me: failed program was:" >&5
7350sed 's/^/| /' conftest.$ac_ext >&5
7351
7352
d0191583
JM
7353fi
7354
7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356fi
d911ec67
AK
7357{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7358$as_echo "$ac_cv_type_ssize_t" >&6; }
7359if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7360 :
7361else
d0191583
JM
7362
7363cat >>confdefs.h <<_ACEOF
d911ec67 7364#define ssize_t int
d0191583
JM
7365_ACEOF
7366
d0191583 7367fi
8ce0cbda 7368
d911ec67
AK
7369{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7370$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7371if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7372 $as_echo_n "(cached) " >&6
ad6254c5 7373else
b145d876
ZK
7374 cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h. */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h. */
ec6a6fbe 7380#include <sys/types.h>
ec6a6fbe 7381
ad6254c5 7382_ACEOF
d911ec67
AK
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "uid_t" >/dev/null 2>&1; then
7385 ac_cv_type_uid_t=yes
b145d876 7386else
d911ec67 7387 ac_cv_type_uid_t=no
ad6254c5 7388fi
d911ec67 7389rm -f conftest*
b145d876 7390
b145d876 7391fi
d911ec67
AK
7392{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7393$as_echo "$ac_cv_type_uid_t" >&6; }
7394if test $ac_cv_type_uid_t = no; then
80992638 7395
d911ec67
AK
7396cat >>confdefs.h <<\_ACEOF
7397#define uid_t int
ad6254c5 7398_ACEOF
199e490e 7399
b896caa1 7400
d911ec67
AK
7401cat >>confdefs.h <<\_ACEOF
7402#define gid_t int
7403_ACEOF
7404
7405fi
7406
7407
7408 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7409$as_echo_n "checking for uint8_t... " >&6; }
7410if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7411 $as_echo_n "(cached) " >&6
ad6254c5 7412else
d911ec67
AK
7413 ac_cv_c_uint8_t=no
7414 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7415 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7416 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7417/* confdefs.h. */
7418_ACEOF
7419cat confdefs.h >>conftest.$ac_ext
7420cat >>conftest.$ac_ext <<_ACEOF
7421/* end confdefs.h. */
7422$ac_includes_default
7423int
7424main ()
7425{
d911ec67
AK
7426static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7427test_array [0] = 0
7428
ad6254c5
AK
7429 ;
7430 return 0;
7431}
7432_ACEOF
7433rm -f conftest.$ac_objext
7a197a62
AK
7434if { (ac_try="$ac_compile"
7435case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438esac
ec6a6fbe
AK
7439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7440$as_echo "$ac_try_echo") >&5
7a197a62 7441 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7442 ac_status=$?
8a2fc586
AK
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
ec6a6fbe 7446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
d911ec67
AK
7451 case $ac_type in
7452 uint8_t) ac_cv_c_uint8_t=yes ;;
7453 *) ac_cv_c_uint8_t=$ac_type ;;
7454esac
7455
7456else
7457 $as_echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460
7461fi
7462
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 test "$ac_cv_c_uint8_t" != no && break
7465 done
7466fi
7467{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7468$as_echo "$ac_cv_c_uint8_t" >&6; }
7469 case $ac_cv_c_uint8_t in #(
7470 no|yes) ;; #(
7471 *)
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define _UINT8_T 1
7475_ACEOF
7476
7477
7478cat >>confdefs.h <<_ACEOF
7479#define uint8_t $ac_cv_c_uint8_t
7480_ACEOF
7481;;
7482 esac
7483
7484
7485 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7486$as_echo_n "checking for uint16_t... " >&6; }
7487if test "${ac_cv_c_uint16_t+set}" = set; then
7488 $as_echo_n "(cached) " >&6
7489else
7490 ac_cv_c_uint16_t=no
7491 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7492 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7493 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7494/* confdefs.h. */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h. */
ec6a6fbe 7499$ac_includes_default
d0191583
JM
7500int
7501main ()
7502{
d911ec67
AK
7503static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7504test_array [0] = 0
7505
d0191583
JM
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510rm -f conftest.$ac_objext
7511if { (ac_try="$ac_compile"
7512case "(($ac_try" in
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7515esac
ec6a6fbe
AK
7516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7517$as_echo "$ac_try_echo") >&5
d0191583
JM
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
ec6a6fbe 7523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
d911ec67
AK
7528 case $ac_type in
7529 uint16_t) ac_cv_c_uint16_t=yes ;;
7530 *) ac_cv_c_uint16_t=$ac_type ;;
7531esac
ec6a6fbe 7532
ec6a6fbe
AK
7533else
7534 $as_echo "$as_me: failed program was:" >&5
7535sed 's/^/| /' conftest.$ac_ext >&5
7536
7537
d0191583
JM
7538fi
7539
7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7541 test "$ac_cv_c_uint16_t" != no && break
7542 done
d0191583 7543fi
d911ec67
AK
7544{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7545$as_echo "$ac_cv_c_uint16_t" >&6; }
7546 case $ac_cv_c_uint16_t in #(
7547 no|yes) ;; #(
7548 *)
7549
d0191583
JM
7550
7551cat >>confdefs.h <<_ACEOF
d911ec67 7552#define uint16_t $ac_cv_c_uint16_t
d0191583 7553_ACEOF
d911ec67
AK
7554;;
7555 esac
d0191583
JM
7556
7557
d911ec67
AK
7558 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7559$as_echo_n "checking for uint32_t... " >&6; }
7560if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7561 $as_echo_n "(cached) " >&6
8106cdd5 7562else
d911ec67
AK
7563 ac_cv_c_uint32_t=no
7564 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7565 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7566 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7567/* confdefs.h. */
7568_ACEOF
7569cat confdefs.h >>conftest.$ac_ext
7570cat >>conftest.$ac_ext <<_ACEOF
7571/* end confdefs.h. */
7572$ac_includes_default
7573int
7574main ()
7575{
d911ec67
AK
7576static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7577test_array [0] = 0
7578
ad6254c5
AK
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext
7a197a62
AK
7584if { (ac_try="$ac_compile"
7585case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588esac
ec6a6fbe
AK
7589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7590$as_echo "$ac_try_echo") >&5
7a197a62 7591 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7592 ac_status=$?
8a2fc586
AK
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
ec6a6fbe 7596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
d911ec67
AK
7601 case $ac_type in
7602 uint32_t) ac_cv_c_uint32_t=yes ;;
7603 *) ac_cv_c_uint32_t=$ac_type ;;
7604esac
7605
7606else
7607 $as_echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610
7611fi
7612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 test "$ac_cv_c_uint32_t" != no && break
7615 done
7616fi
7617{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7618$as_echo "$ac_cv_c_uint32_t" >&6; }
7619 case $ac_cv_c_uint32_t in #(
7620 no|yes) ;; #(
7621 *)
7622
7623cat >>confdefs.h <<\_ACEOF
7624#define _UINT32_T 1
7625_ACEOF
7626
7627
7628cat >>confdefs.h <<_ACEOF
7629#define uint32_t $ac_cv_c_uint32_t
7630_ACEOF
7631;;
7632 esac
7633
7634
7635 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7636$as_echo_n "checking for uint64_t... " >&6; }
7637if test "${ac_cv_c_uint64_t+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7639else
7640 ac_cv_c_uint64_t=no
7641 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7642 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7643 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7644/* confdefs.h. */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h. */
7649$ac_includes_default
7650int
7651main ()
7652{
d911ec67
AK
7653static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7654test_array [0] = 0
7655
ad6254c5
AK
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext
7a197a62
AK
7661if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 7669 ac_status=$?
8a2fc586
AK
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
ec6a6fbe 7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
d911ec67
AK
7678 case $ac_type in
7679 uint64_t) ac_cv_c_uint64_t=yes ;;
7680 *) ac_cv_c_uint64_t=$ac_type ;;
7681esac
ec6a6fbe 7682
fddafd51 7683else
ec6a6fbe 7684 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
ec6a6fbe 7687
80992638 7688fi
7a197a62
AK
7689
7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7691 test "$ac_cv_c_uint64_t" != no && break
7692 done
ad6254c5 7693fi
d911ec67
AK
7694{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7695$as_echo "$ac_cv_c_uint64_t" >&6; }
7696 case $ac_cv_c_uint64_t in #(
7697 no|yes) ;; #(
7698 *)
80992638 7699
d911ec67
AK
7700cat >>confdefs.h <<\_ACEOF
7701#define _UINT64_T 1
ad6254c5
AK
7702_ACEOF
7703
d911ec67
AK
7704
7705cat >>confdefs.h <<_ACEOF
7706#define uint64_t $ac_cv_c_uint64_t
7707_ACEOF
7708;;
7709 esac
ad6254c5 7710
ec6a6fbe
AK
7711{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7712$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7713if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7714 $as_echo_n "(cached) " >&6
ad6254c5
AK
7715else
7716 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
7722$ac_includes_default
7723int
7724main ()
7725{
7726static struct stat ac_aggr;
7727if (ac_aggr.st_rdev)
7728return 0;
7729 ;
7730 return 0;
7731}
7732_ACEOF
7733rm -f conftest.$ac_objext
7a197a62
AK
7734if { (ac_try="$ac_compile"
7735case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
ec6a6fbe
AK
7739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7740$as_echo "$ac_try_echo") >&5
7a197a62 7741 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7742 ac_status=$?
8a2fc586
AK
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
ec6a6fbe 7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7751 ac_cv_member_struct_stat_st_rdev=yes
7752else
ec6a6fbe 7753 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
7a197a62 7756 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h. */
7762$ac_includes_default
7763int
7764main ()
7765{
7766static struct stat ac_aggr;
7767if (sizeof ac_aggr.st_rdev)
7768return 0;
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext
7a197a62
AK
7774if { (ac_try="$ac_compile"
7775case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778esac
ec6a6fbe
AK
7779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780$as_echo "$ac_try_echo") >&5
7a197a62 7781 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7782 ac_status=$?
8a2fc586
AK
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
ec6a6fbe 7786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7791 ac_cv_member_struct_stat_st_rdev=yes
7792else
ec6a6fbe 7793 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7a197a62 7796 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7797fi
7a197a62
AK
7798
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7800fi
7a197a62
AK
7801
7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7803fi
ec6a6fbe
AK
7804{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7805$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7806if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7807
7808cat >>confdefs.h <<_ACEOF
7809#define HAVE_STRUCT_STAT_ST_RDEV 1
7810_ACEOF
7811
7812
ad6254c5
AK
7813fi
7814
ec6a6fbe
AK
7815{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7816$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7817if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7818 $as_echo_n "(cached) " >&6
ad6254c5
AK
7819else
7820 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
7826#include <sys/types.h>
7827#include <time.h>
7828
7829int
7830main ()
7831{
25fbec5b
AK
7832struct tm tm;
7833 int *p = &tm.tm_sec;
ec6a6fbe 7834 return !p;
ad6254c5
AK
7835 ;
7836 return 0;
7837}
7838_ACEOF
7839rm -f conftest.$ac_objext
7a197a62
AK
7840if { (ac_try="$ac_compile"
7841case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
ec6a6fbe
AK
7845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846$as_echo "$ac_try_echo") >&5
7a197a62 7847 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7848 ac_status=$?
8a2fc586
AK
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
ec6a6fbe 7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
d911ec67
AK
7856 } && test -s conftest.$ac_objext; then
7857 ac_cv_struct_tm=time.h
7858else
7859 $as_echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862 ac_cv_struct_tm=sys/time.h
7863fi
7864
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866fi
7867{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7868$as_echo "$ac_cv_struct_tm" >&6; }
7869if test $ac_cv_struct_tm = sys/time.h; then
7870
7871cat >>confdefs.h <<\_ACEOF
7872#define TM_IN_SYS_TIME 1
7873_ACEOF
7874
7875fi
7876
7877
7878################################################################################
7879{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7880$as_echo_n "checking for library containing floor... " >&6; }
7881if test "${ac_cv_search_floor+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7883else
7884 ac_func_search_save_LIBS=$LIBS
7885cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h. */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h. */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char floor ();
7899int
7900main ()
7901{
7902return floor ();
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907for ac_lib in '' m; do
7908 if test -z "$ac_lib"; then
7909 ac_res="none required"
7910 else
7911 ac_res=-l$ac_lib
7912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7913 fi
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915if { (ac_try="$ac_link"
7916case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921$as_echo "$ac_try_echo") >&5
7922 (eval "$ac_link") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest$ac_exeext && {
7932 test "$cross_compiling" = yes ||
7933 $as_test_x conftest$ac_exeext
7934 }; then
7935 ac_cv_search_floor=$ac_res
ad6254c5 7936else
ec6a6fbe 7937 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7a197a62 7940
ad6254c5 7941fi
ad6254c5 7942
d911ec67
AK
7943rm -rf conftest.dSYM
7944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7945 conftest$ac_exeext
7946 if test "${ac_cv_search_floor+set}" = set; then
7947 break
7948fi
7949done
7950if test "${ac_cv_search_floor+set}" = set; then
7951 :
7952else
7953 ac_cv_search_floor=no
7954fi
7955rm conftest.$ac_ext
7956LIBS=$ac_func_search_save_LIBS
7957fi
7958{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7959$as_echo "$ac_cv_search_floor" >&6; }
7960ac_res=$ac_cv_search_floor
7961if test "$ac_res" != no; then
7962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7963
d911ec67
AK
7964else
7965 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7966$as_echo "$as_me: error: bailing out" >&2;}
7967 { (exit 1); exit 1; }; }
ad6254c5 7968fi
809fae91 7969
795ca3e5 7970
ad6254c5
AK
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
d0191583
JM
7985
7986
7987
d911ec67
AK
7988
7989
7990
7991
7992
7993
7994
7995for ac_func in floor ftruncate gethostname getpagesize \
7996 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
7997 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
7998 strstr strtol strtoul uname
ad6254c5 7999do
ec6a6fbe
AK
8000as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8001{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8002$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8003if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8004 $as_echo_n "(cached) " >&6
795ca3e5 8005else
ad6254c5 8006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8a2fc586
AK
8012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8014#define $ac_func innocuous_$ac_func
8015
ad6254c5
AK
8016/* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char $ac_func (); below.
8018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8019 <limits.h> exists even on freestanding compilers. */
8a2fc586 8020
ad6254c5
AK
8021#ifdef __STDC__
8022# include <limits.h>
8023#else
8024# include <assert.h>
8025#endif
8a2fc586
AK
8026
8027#undef $ac_func
8028
7a197a62
AK
8029/* Override any GCC internal prototype to avoid an error.
8030 Use char because int might match the return type of a GCC
8031 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8032#ifdef __cplusplus
8033extern "C"
ad6254c5 8034#endif
ad6254c5
AK
8035char $ac_func ();
8036/* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
7a197a62 8039#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8040choke me
ad6254c5
AK
8041#endif
8042
8043int
8044main ()
8045{
7a197a62 8046return $ac_func ();
ad6254c5
AK
8047 ;
8048 return 0;
8049}
8050_ACEOF
8051rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8052if { (ac_try="$ac_link"
8053case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056esac
ec6a6fbe
AK
8057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8058$as_echo "$ac_try_echo") >&5
7a197a62 8059 (eval "$ac_link") 2>conftest.er1
ad6254c5 8060 ac_status=$?
8a2fc586
AK
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
ec6a6fbe 8064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
ec6a6fbe
AK
8068 } && test -s conftest$ac_exeext && {
8069 test "$cross_compiling" = yes ||
8070 $as_test_x conftest$ac_exeext
8071 }; then
fc54be10
AK
8072 eval "$as_ac_var=yes"
8073else
ec6a6fbe 8074 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 eval "$as_ac_var=no"
8078fi
8079
ec6a6fbe 8080rm -rf conftest.dSYM
25fbec5b 8081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8082 conftest$ac_exeext conftest.$ac_ext
8083fi
ec6a6fbe
AK
8084ac_res=`eval 'as_val=${'$as_ac_var'}
8085 $as_echo "$as_val"'`
8086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8087$as_echo "$ac_res" >&6; }
8088as_val=`eval 'as_val=${'$as_ac_var'}
8089 $as_echo "$as_val"'`
8090 if test "x$as_val" = x""yes; then
ad6254c5 8091 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8092#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8093_ACEOF
8094
8095else
ec6a6fbe
AK
8096 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8097$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8098 { (exit 1); exit 1; }; }
8099fi
8100done
795ca3e5 8101
a0f9708e
AK
8102
8103for ac_func in siginterrupt
8104do
8105as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8106{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8107$as_echo_n "checking for $ac_func... " >&6; }
8108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8109 $as_echo_n "(cached) " >&6
8110else
8111 cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h. */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h. */
8117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8119#define $ac_func innocuous_$ac_func
8120
8121/* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func (); below.
8123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8124 <limits.h> exists even on freestanding compilers. */
8125
8126#ifdef __STDC__
8127# include <limits.h>
8128#else
8129# include <assert.h>
8130#endif
8131
8132#undef $ac_func
8133
8134/* Override any GCC internal prototype to avoid an error.
8135 Use char because int might match the return type of a GCC
8136 builtin and then its argument prototype would still apply. */
8137#ifdef __cplusplus
8138extern "C"
8139#endif
8140char $ac_func ();
8141/* The GNU C library defines this for functions which it implements
8142 to always fail with ENOSYS. Some functions are actually named
8143 something starting with __ and the normal name is an alias. */
8144#if defined __stub_$ac_func || defined __stub___$ac_func
8145choke me
8146#endif
8147
8148int
8149main ()
8150{
8151return $ac_func ();
8152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext conftest$ac_exeext
8157if { (ac_try="$ac_link"
8158case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161esac
8162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8163$as_echo "$ac_try_echo") >&5
8164 (eval "$ac_link") 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest$ac_exeext && {
8174 test "$cross_compiling" = yes ||
8175 $as_test_x conftest$ac_exeext
8176 }; then
8177 eval "$as_ac_var=yes"
8178else
8179 $as_echo "$as_me: failed program was:" >&5
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 eval "$as_ac_var=no"
8183fi
8184
8185rm -rf conftest.dSYM
8186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8187 conftest$ac_exeext conftest.$ac_ext
8188fi
8189ac_res=`eval 'as_val=${'$as_ac_var'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192$as_echo "$ac_res" >&6; }
8193as_val=`eval 'as_val=${'$as_ac_var'}
8194 $as_echo "$as_val"'`
8195 if test "x$as_val" = x""yes; then
8196 cat >>confdefs.h <<_ACEOF
8197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8198_ACEOF
8199
8200fi
8201done
8202
ad6254c5
AK
8203# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8204# for constant arguments. Useless!
ec6a6fbe
AK
8205{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8206$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8207if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8208 $as_echo_n "(cached) " >&6
ad6254c5
AK
8209else
8210 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
8216#include <alloca.h>
8217int
8218main ()
8219{
8220char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8221 if (p) return 0;
ad6254c5
AK
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8227if { (ac_try="$ac_link"
8228case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
ec6a6fbe
AK
8232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8233$as_echo "$ac_try_echo") >&5
7a197a62 8234 (eval "$ac_link") 2>conftest.er1
ad6254c5 8235 ac_status=$?
8a2fc586
AK
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
ec6a6fbe 8239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
ec6a6fbe
AK
8243 } && test -s conftest$ac_exeext && {
8244 test "$cross_compiling" = yes ||
8245 $as_test_x conftest$ac_exeext
8246 }; then
ad6254c5
AK
8247 ac_cv_working_alloca_h=yes
8248else
ec6a6fbe 8249 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8250sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8251
7a197a62 8252 ac_cv_working_alloca_h=no
ad6254c5 8253fi
7a197a62 8254
ec6a6fbe 8255rm -rf conftest.dSYM
25fbec5b 8256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8257 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8258fi
ec6a6fbe
AK
8259{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8260$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8261if test $ac_cv_working_alloca_h = yes; then
8262
8263cat >>confdefs.h <<\_ACEOF
8264#define HAVE_ALLOCA_H 1
8265_ACEOF
8266
8267fi
8268
ec6a6fbe
AK
8269{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8270$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8271if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8272 $as_echo_n "(cached) " >&6
ad6254c5
AK
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280#ifdef __GNUC__
8281# define alloca __builtin_alloca
8282#else
8283# ifdef _MSC_VER
8284# include <malloc.h>
8285# define alloca _alloca
8286# else
25fbec5b 8287# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8288# include <alloca.h>
8289# else
8290# ifdef _AIX
8291 #pragma alloca
8292# else
8293# ifndef alloca /* predefined by HP cc +Olibcalls */
8294char *alloca ();
8295# endif
8296# endif
8297# endif
8298# endif
8299#endif
8300
8301int
8302main ()
8303{
8304char *p = (char *) alloca (1);
7a197a62 8305 if (p) return 0;
ad6254c5
AK
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8311if { (ac_try="$ac_link"
8312case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
ec6a6fbe
AK
8316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317$as_echo "$ac_try_echo") >&5
7a197a62 8318 (eval "$ac_link") 2>conftest.er1
ad6254c5 8319 ac_status=$?
8a2fc586
AK
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
ec6a6fbe 8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
ec6a6fbe
AK
8327 } && test -s conftest$ac_exeext && {
8328 test "$cross_compiling" = yes ||
8329 $as_test_x conftest$ac_exeext
8330 }; then
ad6254c5
AK
8331 ac_cv_func_alloca_works=yes
8332else
ec6a6fbe 8333 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8334sed 's/^/| /' conftest.$ac_ext >&5
8335
7a197a62 8336 ac_cv_func_alloca_works=no
ad6254c5 8337fi
7a197a62 8338
ec6a6fbe 8339rm -rf conftest.dSYM
25fbec5b 8340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8341 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8342fi
ec6a6fbe
AK
8343{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8344$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8345
8346if test $ac_cv_func_alloca_works = yes; then
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_ALLOCA 1
8350_ACEOF
8351
8352else
8353 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8354# that cause trouble. Some versions do not even contain alloca or
8355# contain a buggy version. If you still want to use their alloca,
8356# use ar to extract alloca.o from them instead of compiling alloca.c.
8357
7a197a62 8358ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8359
8360cat >>confdefs.h <<\_ACEOF
8361#define C_ALLOCA 1
8362_ACEOF
8363
8364
ec6a6fbe
AK
8365{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8366$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8367if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8368 $as_echo_n "(cached) " >&6
ad6254c5
AK
8369else
8370 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
7a197a62 8376#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8377webecray
8378#else
8379wenotbecray
8380#endif
8381
8382_ACEOF
795ca3e5 8383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8384 $EGREP "webecray" >/dev/null 2>&1; then
8385 ac_cv_os_cray=yes
8386else
8387 ac_cv_os_cray=no
795ca3e5
AK
8388fi
8389rm -f conftest*
8390
795ca3e5 8391fi
ec6a6fbe
AK
8392{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8393$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8394if test $ac_cv_os_cray = yes; then
8395 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8397{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8398$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8400 $as_echo_n "(cached) " >&6
ad6254c5
AK
8401else
8402 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
8a2fc586
AK
8408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8410#define $ac_func innocuous_$ac_func
8411
ad6254c5
AK
8412/* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char $ac_func (); below.
8414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 <limits.h> exists even on freestanding compilers. */
8a2fc586 8416
ad6254c5
AK
8417#ifdef __STDC__
8418# include <limits.h>
8419#else
8420# include <assert.h>
8421#endif
8a2fc586
AK
8422
8423#undef $ac_func
8424
7a197a62
AK
8425/* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8428#ifdef __cplusplus
8429extern "C"
ad6254c5 8430#endif
ad6254c5
AK
8431char $ac_func ();
8432/* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
7a197a62 8435#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8436choke me
ad6254c5
AK
8437#endif
8438
8439int
8440main ()
8441{
7a197a62 8442return $ac_func ();
ad6254c5
AK
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8448if { (ac_try="$ac_link"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
ec6a6fbe
AK
8453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454$as_echo "$ac_try_echo") >&5
7a197a62 8455 (eval "$ac_link") 2>conftest.er1
ad6254c5 8456 ac_status=$?
8a2fc586
AK
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
ec6a6fbe 8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
ec6a6fbe
AK
8464 } && test -s conftest$ac_exeext && {
8465 test "$cross_compiling" = yes ||
8466 $as_test_x conftest$ac_exeext
8467 }; then
ad6254c5
AK
8468 eval "$as_ac_var=yes"
8469else
ec6a6fbe 8470 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
7a197a62 8473 eval "$as_ac_var=no"
ad6254c5 8474fi
7a197a62 8475
ec6a6fbe 8476rm -rf conftest.dSYM
25fbec5b 8477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8478 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8479fi
ec6a6fbe
AK
8480ac_res=`eval 'as_val=${'$as_ac_var'}
8481 $as_echo "$as_val"'`
8482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8483$as_echo "$ac_res" >&6; }
8484as_val=`eval 'as_val=${'$as_ac_var'}
8485 $as_echo "$as_val"'`
8486 if test "x$as_val" = x""yes; then
80992638 8487
ad6254c5
AK
8488cat >>confdefs.h <<_ACEOF
8489#define CRAY_STACKSEG_END $ac_func
8490_ACEOF
8491
8492 break
8493fi
8494
8495 done
8496fi
8497
ec6a6fbe
AK
8498{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8499$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8500if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8501 $as_echo_n "(cached) " >&6
ad6254c5
AK
8502else
8503 if test "$cross_compiling" = yes; then
8504 ac_cv_c_stack_direction=0
8505else
8506 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
7a197a62 8512$ac_includes_default
ad6254c5
AK
8513int
8514find_stack_direction ()
8515{
8516 static char *addr = 0;
8517 auto char dummy;
8518 if (addr == 0)
8519 {
8520 addr = &dummy;
8521 return find_stack_direction ();
8522 }
8523 else
8524 return (&dummy > addr) ? 1 : -1;
8525}
8526
8527int
8528main ()
8529{
7a197a62 8530 return find_stack_direction () < 0;
ad6254c5
AK
8531}
8532_ACEOF
8533rm -f conftest$ac_exeext
7a197a62
AK
8534if { (ac_try="$ac_link"
8535case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538esac
ec6a6fbe
AK
8539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540$as_echo "$ac_try_echo") >&5
7a197a62 8541 (eval "$ac_link") 2>&5
ad6254c5 8542 ac_status=$?
ec6a6fbe 8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
ec6a6fbe
AK
8549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550$as_echo "$ac_try_echo") >&5
7a197a62 8551 (eval "$ac_try") 2>&5
ad6254c5 8552 ac_status=$?
ec6a6fbe 8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8554 (exit $ac_status); }; }; then
8555 ac_cv_c_stack_direction=1
8556else
ec6a6fbe
AK
8557 $as_echo "$as_me: program exited with status $ac_status" >&5
8558$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8559sed 's/^/| /' conftest.$ac_ext >&5
8560
8561( exit $ac_status )
8562ac_cv_c_stack_direction=-1
8563fi
ec6a6fbe 8564rm -rf conftest.dSYM
7a197a62 8565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8566fi
7a197a62
AK
8567
8568
ad6254c5 8569fi
ec6a6fbe
AK
8570{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8571$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8572
d911ec67
AK
8573cat >>confdefs.h <<_ACEOF
8574#define STACK_DIRECTION $ac_cv_c_stack_direction
8575_ACEOF
8576
8577
8578fi
8579
8580{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8581$as_echo_n "checking whether closedir returns void... " >&6; }
8582if test "${ac_cv_func_closedir_void+set}" = set; then
8583 $as_echo_n "(cached) " >&6
8584else
8585 if test "$cross_compiling" = yes; then
8586 ac_cv_func_closedir_void=yes
8587else
8588 cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594$ac_includes_default
8595#include <$ac_header_dirent>
8596#ifndef __cplusplus
8597int closedir ();
8598#endif
8599
8600int
8601main ()
8602{
8603return closedir (opendir (".")) != 0;
8604 ;
8605 return 0;
8606}
8607_ACEOF
8608rm -f conftest$ac_exeext
8609if { (ac_try="$ac_link"
8610case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613esac
8614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8615$as_echo "$ac_try_echo") >&5
8616 (eval "$ac_link") 2>&5
8617 ac_status=$?
8618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8625$as_echo "$ac_try_echo") >&5
8626 (eval "$ac_try") 2>&5
8627 ac_status=$?
8628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_func_closedir_void=no
8631else
8632 $as_echo "$as_me: program exited with status $ac_status" >&5
8633$as_echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636( exit $ac_status )
8637ac_cv_func_closedir_void=yes
8638fi
8639rm -rf conftest.dSYM
8640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8641fi
8642
8643
8644fi
8645{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8646$as_echo "$ac_cv_func_closedir_void" >&6; }
8647if test $ac_cv_func_closedir_void = yes; then
8648
8649cat >>confdefs.h <<\_ACEOF
8650#define CLOSEDIR_VOID 1
8651_ACEOF
8652
8653fi
8654
8655
8656for ac_header in unistd.h
8657do
8658as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8660 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8661$as_echo_n "checking for $ac_header... " >&6; }
8662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663 $as_echo_n "(cached) " >&6
8664fi
8665ac_res=`eval 'as_val=${'$as_ac_Header'}
8666 $as_echo "$as_val"'`
8667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8668$as_echo "$ac_res" >&6; }
8669else
8670 # Is the header compilable?
8671{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8672$as_echo_n "checking $ac_header usability... " >&6; }
8673cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h. */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
8678/* end confdefs.h. */
8679$ac_includes_default
8680#include <$ac_header>
8681_ACEOF
8682rm -f conftest.$ac_objext
8683if { (ac_try="$ac_compile"
8684case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687esac
8688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8689$as_echo "$ac_try_echo") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_header_compiler=yes
8701else
8702 $as_echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_compiler=no
8706fi
8707
8708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710$as_echo "$ac_header_compiler" >&6; }
8711
8712# Is the header present?
8713{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714$as_echo_n "checking $ac_header presence... " >&6; }
8715cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
8721#include <$ac_header>
8722_ACEOF
8723if { (ac_try="$ac_cpp conftest.$ac_ext"
8724case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729$as_echo "$ac_try_echo") >&5
8730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null && {
8737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 }; then
8740 ac_header_preproc=yes
8741else
8742 $as_echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_header_preproc=no
8746fi
8747
8748rm -f conftest.err conftest.$ac_ext
8749{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750$as_echo "$ac_header_preproc" >&6; }
8751
8752# So? What about this header?
8753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 yes:no: )
8755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759 ac_header_preproc=yes
8760 ;;
8761 no:yes:* )
8762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8769$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774
8775 ;;
8776esac
8777{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8778$as_echo_n "checking for $ac_header... " >&6; }
8779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8780 $as_echo_n "(cached) " >&6
8781else
8782 eval "$as_ac_Header=\$ac_header_preproc"
8783fi
8784ac_res=`eval 'as_val=${'$as_ac_Header'}
8785 $as_echo "$as_val"'`
8786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8787$as_echo "$ac_res" >&6; }
8788
8789fi
8790as_val=`eval 'as_val=${'$as_ac_Header'}
8791 $as_echo "$as_val"'`
8792 if test "x$as_val" = x""yes; then
8793 cat >>confdefs.h <<_ACEOF
8794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8795_ACEOF
8796
ad6254c5
AK
8797fi
8798
d911ec67
AK
8799done
8800
8801{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8802$as_echo_n "checking for working chown... " >&6; }
8803if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8804 $as_echo_n "(cached) " >&6
ad6254c5
AK
8805else
8806 if test "$cross_compiling" = yes; then
d911ec67 8807 ac_cv_func_chown_works=no
ad6254c5
AK
8808else
8809 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8810/* confdefs.h. */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h. */
8815$ac_includes_default
d911ec67 8816#include <fcntl.h>
ad6254c5
AK
8817
8818int
8819main ()
8820{
d911ec67
AK
8821 char *f = "conftest.chown";
8822 struct stat before, after;
8823
8824 if (creat (f, 0600) < 0)
8825 return 1;
8826 if (stat (f, &before) < 0)
8827 return 1;
8828 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8829 return 1;
8830 if (stat (f, &after) < 0)
8831 return 1;
8832 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8833
ad6254c5
AK
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest$ac_exeext
7a197a62
AK
8839if { (ac_try="$ac_link"
8840case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
ec6a6fbe
AK
8844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845$as_echo "$ac_try_echo") >&5
7a197a62 8846 (eval "$ac_link") 2>&5
ad6254c5 8847 ac_status=$?
ec6a6fbe 8848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
ec6a6fbe
AK
8854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8855$as_echo "$ac_try_echo") >&5
7a197a62 8856 (eval "$ac_try") 2>&5
ad6254c5 8857 ac_status=$?
ec6a6fbe 8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8859 (exit $ac_status); }; }; then
d911ec67 8860 ac_cv_func_chown_works=yes
ad6254c5 8861else
ec6a6fbe
AK
8862 $as_echo "$as_me: program exited with status $ac_status" >&5
8863$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
8866( exit $ac_status )
d911ec67 8867ac_cv_func_chown_works=no
ad6254c5 8868fi
ec6a6fbe 8869rm -rf conftest.dSYM
7a197a62 8870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8871fi
7a197a62
AK
8872
8873
d911ec67
AK
8874rm -f conftest.chown
8875
ad6254c5 8876fi
d911ec67
AK
8877{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8878$as_echo "$ac_cv_func_chown_works" >&6; }
8879if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8880
8881cat >>confdefs.h <<\_ACEOF
d911ec67 8882#define HAVE_CHOWN 1
ad6254c5
AK
8883_ACEOF
8884
8885fi
8886
8887
7a197a62 8888for ac_header in vfork.h
ad6254c5 8889do
ec6a6fbe 8890as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8893$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8895 $as_echo_n "(cached) " >&6
ad6254c5 8896fi
ec6a6fbe
AK
8897ac_res=`eval 'as_val=${'$as_ac_Header'}
8898 $as_echo "$as_val"'`
8899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8900$as_echo "$ac_res" >&6; }
ad6254c5
AK
8901else
8902 # Is the header compilable?
ec6a6fbe
AK
8903{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8904$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8905cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912#include <$ac_header>
8913_ACEOF
8914rm -f conftest.$ac_objext
7a197a62
AK
8915if { (ac_try="$ac_compile"
8916case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919esac
ec6a6fbe
AK
8920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921$as_echo "$ac_try_echo") >&5
7a197a62 8922 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8923 ac_status=$?
8a2fc586
AK
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
ec6a6fbe 8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8932 ac_header_compiler=yes
8933else
ec6a6fbe 8934 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8935sed 's/^/| /' conftest.$ac_ext >&5
8936
7a197a62 8937 ac_header_compiler=no
ad6254c5 8938fi
7a197a62
AK
8939
8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8941{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8943
8944# Is the header present?
ec6a6fbe
AK
8945{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8946$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8947cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
8953#include <$ac_header>
8954_ACEOF
7a197a62
AK
8955if { (ac_try="$ac_cpp conftest.$ac_ext"
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
7a197a62 8962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
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
25fbec5b
AK
8968 (exit $ac_status); } >/dev/null && {
8969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 }; then
ad6254c5
AK
8972 ac_header_preproc=yes
8973else
ec6a6fbe 8974 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8975sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_header_preproc=no
8978fi
7a197a62 8979
ad6254c5 8980rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8981{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8982$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8983
8984# So? What about this header?
8a2fc586
AK
8985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8986 yes:no: )
ec6a6fbe
AK
8987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8988$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8990$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8991 ac_header_preproc=yes
ad6254c5 8992 ;;
8a2fc586 8993 no:yes:* )
ec6a6fbe
AK
8994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8995$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8997$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8999$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9001$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9003$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9005$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9006
ad6254c5
AK
9007 ;;
9008esac
ec6a6fbe
AK
9009{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9010$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9012 $as_echo_n "(cached) " >&6
ad6254c5 9013else
8a2fc586 9014 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9015fi
ec6a6fbe
AK
9016ac_res=`eval 'as_val=${'$as_ac_Header'}
9017 $as_echo "$as_val"'`
9018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9019$as_echo "$ac_res" >&6; }
ad6254c5 9020
795ca3e5 9021fi
ec6a6fbe
AK
9022as_val=`eval 'as_val=${'$as_ac_Header'}
9023 $as_echo "$as_val"'`
9024 if test "x$as_val" = x""yes; then
ad6254c5 9025 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9027_ACEOF
9028
9029fi
9030
9031done
795ca3e5 9032
ad6254c5
AK
9033
9034
9035for ac_func in fork vfork
9036do
ec6a6fbe
AK
9037as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9038{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9039$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9041 $as_echo_n "(cached) " >&6
795ca3e5 9042else
ad6254c5 9043 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9044/* confdefs.h. */
9045_ACEOF
9046cat confdefs.h >>conftest.$ac_ext
9047cat >>conftest.$ac_ext <<_ACEOF
9048/* end confdefs.h. */
8a2fc586
AK
9049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9051#define $ac_func innocuous_$ac_func
9052
ad6254c5
AK
9053/* System header to define __stub macros and hopefully few prototypes,
9054 which can conflict with char $ac_func (); below.
9055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9056 <limits.h> exists even on freestanding compilers. */
8a2fc586 9057
ad6254c5
AK
9058#ifdef __STDC__
9059# include <limits.h>
9060#else
9061# include <assert.h>
795ca3e5 9062#endif
8a2fc586
AK
9063
9064#undef $ac_func
9065
7a197a62
AK
9066/* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
795ca3e5 9069#ifdef __cplusplus
ad6254c5 9070extern "C"
ad6254c5 9071#endif
ad6254c5
AK
9072char $ac_func ();
9073/* The GNU C library defines this for functions which it implements
9074 to always fail with ENOSYS. Some functions are actually named
9075 something starting with __ and the normal name is an alias. */
7a197a62 9076#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9077choke me
795ca3e5
AK
9078#endif
9079
ad6254c5
AK
9080int
9081main ()
9082{
7a197a62 9083return $ac_func ();
ad6254c5
AK
9084 ;
9085 return 0;
9086}
9087_ACEOF
9088rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9089if { (ac_try="$ac_link"
9090case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093esac
ec6a6fbe
AK
9094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095$as_echo "$ac_try_echo") >&5
7a197a62 9096 (eval "$ac_link") 2>conftest.er1
ad6254c5 9097 ac_status=$?
8a2fc586
AK
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
ec6a6fbe 9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9102 (exit $ac_status); } && {
9103 test -z "$ac_c_werror_flag" ||
9104 test ! -s conftest.err
ec6a6fbe
AK
9105 } && test -s conftest$ac_exeext && {
9106 test "$cross_compiling" = yes ||
9107 $as_test_x conftest$ac_exeext
9108 }; then
ad6254c5 9109 eval "$as_ac_var=yes"
795ca3e5 9110else
ec6a6fbe 9111 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
7a197a62 9114 eval "$as_ac_var=no"
795ca3e5 9115fi
7a197a62 9116
ec6a6fbe 9117rm -rf conftest.dSYM
25fbec5b 9118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9119 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9120fi
ec6a6fbe
AK
9121ac_res=`eval 'as_val=${'$as_ac_var'}
9122 $as_echo "$as_val"'`
9123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9124$as_echo "$ac_res" >&6; }
9125as_val=`eval 'as_val=${'$as_ac_var'}
9126 $as_echo "$as_val"'`
9127 if test "x$as_val" = x""yes; then
ad6254c5 9128 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9129#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9130_ACEOF
9131
9132fi
9133done
9134
9135if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9136 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9137$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9138if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9139 $as_echo_n "(cached) " >&6
ad6254c5
AK
9140else
9141 if test "$cross_compiling" = yes; then
9142 ac_cv_func_fork_works=cross
9143else
9144 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150$ac_includes_default
9151int
9152main ()
9153{
9154
9155 /* By Ruediger Kuhlmann. */
9156 return fork () < 0;
9157
9158 ;
9159 return 0;
9160}
ad6254c5
AK
9161_ACEOF
9162rm -f conftest$ac_exeext
7a197a62
AK
9163if { (ac_try="$ac_link"
9164case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167esac
ec6a6fbe
AK
9168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9169$as_echo "$ac_try_echo") >&5
7a197a62 9170 (eval "$ac_link") 2>&5
ad6254c5 9171 ac_status=$?
ec6a6fbe 9172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9174 { (case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177esac
ec6a6fbe
AK
9178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9179$as_echo "$ac_try_echo") >&5
7a197a62 9180 (eval "$ac_try") 2>&5
ad6254c5 9181 ac_status=$?
ec6a6fbe 9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9183 (exit $ac_status); }; }; then
9184 ac_cv_func_fork_works=yes
9185else
ec6a6fbe
AK
9186 $as_echo "$as_me: program exited with status $ac_status" >&5
9187$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190( exit $ac_status )
9191ac_cv_func_fork_works=no
9192fi
ec6a6fbe 9193rm -rf conftest.dSYM
7a197a62 9194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9195fi
7a197a62
AK
9196
9197
ad6254c5 9198fi
ec6a6fbe
AK
9199{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9200$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9201
9202else
9203 ac_cv_func_fork_works=$ac_cv_func_fork
9204fi
9205if test "x$ac_cv_func_fork_works" = xcross; then
9206 case $host in
9207 *-*-amigaos* | *-*-msdosdjgpp*)
9208 # Override, as these systems have only a dummy fork() stub
9209 ac_cv_func_fork_works=no
9210 ;;
9211 *)
9212 ac_cv_func_fork_works=yes
9213 ;;
9214 esac
ec6a6fbe
AK
9215 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9216$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9217fi
9218ac_cv_func_vfork_works=$ac_cv_func_vfork
9219if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9220 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9221$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9222if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9223 $as_echo_n "(cached) " >&6
ad6254c5
AK
9224else
9225 if test "$cross_compiling" = yes; then
9226 ac_cv_func_vfork_works=cross
9227else
9228 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9229/* confdefs.h. */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
9233/* end confdefs.h. */
9234/* Thanks to Paul Eggert for this test. */
7a197a62 9235$ac_includes_default
ad6254c5 9236#include <sys/wait.h>
25fbec5b 9237#ifdef HAVE_VFORK_H
ad6254c5
AK
9238# include <vfork.h>
9239#endif
9240/* On some sparc systems, changes by the child to local and incoming
9241 argument registers are propagated back to the parent. The compiler
9242 is told about this with #include <vfork.h>, but some compilers
9243 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9244 static variable whose address is put into a register that is
9245 clobbered by the vfork. */
9246static void
9247#ifdef __cplusplus
9248sparc_address_test (int arg)
9249# else
9250sparc_address_test (arg) int arg;
9251#endif
9252{
9253 static pid_t child;
9254 if (!child) {
9255 child = vfork ();
9256 if (child < 0) {
9257 perror ("vfork");
9258 _exit(2);
9259 }
9260 if (!child) {
9261 arg = getpid();
9262 write(-1, "", 0);
9263 _exit (arg);
9264 }
9265 }
9266}
9267
9268int
9269main ()
9270{
9271 pid_t parent = getpid ();
9272 pid_t child;
9273
9274 sparc_address_test (0);
9275
9276 child = vfork ();
9277
9278 if (child == 0) {
9279 /* Here is another test for sparc vfork register problems. This
9280 test uses lots of local variables, at least as many local
9281 variables as main has allocated so far including compiler
9282 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9283 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9284 reuse the register of parent for one of the local variables,
9285 since it will think that parent can't possibly be used any more
9286 in this routine. Assigning to the local variable will thus
9287 munge parent in the parent process. */
9288 pid_t
9289 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9290 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9291 /* Convince the compiler that p..p7 are live; otherwise, it might
9292 use the same hardware register for all 8 local variables. */
9293 if (p != p1 || p != p2 || p != p3 || p != p4
9294 || p != p5 || p != p6 || p != p7)
9295 _exit(1);
9296
9297 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9298 from child file descriptors. If the child closes a descriptor
9299 before it execs or exits, this munges the parent's descriptor
9300 as well. Test for this by closing stdout in the child. */
9301 _exit(close(fileno(stdout)) != 0);
9302 } else {
9303 int status;
9304 struct stat st;
9305
9306 while (wait(&status) != child)
9307 ;
7a197a62 9308 return (
ad6254c5
AK
9309 /* Was there some problem with vforking? */
9310 child < 0
9311
9312 /* Did the child fail? (This shouldn't happen.) */
9313 || status
9314
9315 /* Did the vfork/compiler bug occur? */
9316 || parent != getpid()
9317
9318 /* Did the file descriptor bug occur? */
9319 || fstat(fileno(stdout), &st) != 0
9320 );
9321 }
9322}
9323_ACEOF
9324rm -f conftest$ac_exeext
7a197a62
AK
9325if { (ac_try="$ac_link"
9326case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
ec6a6fbe
AK
9330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9331$as_echo "$ac_try_echo") >&5
7a197a62 9332 (eval "$ac_link") 2>&5
ad6254c5 9333 ac_status=$?
ec6a6fbe 9334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9336 { (case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
ec6a6fbe
AK
9340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9341$as_echo "$ac_try_echo") >&5
7a197a62 9342 (eval "$ac_try") 2>&5
ad6254c5 9343 ac_status=$?
ec6a6fbe 9344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9345 (exit $ac_status); }; }; then
9346 ac_cv_func_vfork_works=yes
9347else
ec6a6fbe
AK
9348 $as_echo "$as_me: program exited with status $ac_status" >&5
9349$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9350sed 's/^/| /' conftest.$ac_ext >&5
9351
9352( exit $ac_status )
9353ac_cv_func_vfork_works=no
9354fi
ec6a6fbe 9355rm -rf conftest.dSYM
7a197a62 9356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9357fi
7a197a62
AK
9358
9359
ad6254c5 9360fi
ec6a6fbe
AK
9361{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9362$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9363
9364fi;
9365if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9366 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9367 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9368$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9369fi
9370
9371if test "x$ac_cv_func_vfork_works" = xyes; then
9372
9373cat >>confdefs.h <<\_ACEOF
9374#define HAVE_WORKING_VFORK 1
9375_ACEOF
9376
9377else
9378
9379cat >>confdefs.h <<\_ACEOF
9380#define vfork fork
9381_ACEOF
9382
9383fi
9384if test "x$ac_cv_func_fork_works" = xyes; then
9385
9386cat >>confdefs.h <<\_ACEOF
9387#define HAVE_WORKING_FORK 1
9388_ACEOF
9389
9390fi
9391
ec6a6fbe
AK
9392{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9393$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9394if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9395 $as_echo_n "(cached) " >&6
ad6254c5
AK
9396else
9397 rm -f conftest.sym conftest.file
9398echo >conftest.file
9399if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9400 if test "$cross_compiling" = yes; then
9401 ac_cv_func_lstat_dereferences_slashed_symlink=no
9402else
9403 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
9409$ac_includes_default
9410int
9411main ()
9412{
9413struct stat sbuf;
9414 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9415 That is better in the sense that it means we will not
9416 have to compile and use the lstat wrapper. */
7a197a62 9417 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest$ac_exeext
7a197a62
AK
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
ec6a6fbe
AK
9428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429$as_echo "$ac_try_echo") >&5
7a197a62 9430 (eval "$ac_link") 2>&5
ad6254c5 9431 ac_status=$?
ec6a6fbe 9432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9434 { (case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437esac
ec6a6fbe
AK
9438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9439$as_echo "$ac_try_echo") >&5
7a197a62 9440 (eval "$ac_try") 2>&5
ad6254c5 9441 ac_status=$?
ec6a6fbe 9442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9443 (exit $ac_status); }; }; then
9444 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9445else
ec6a6fbe
AK
9446 $as_echo "$as_me: program exited with status $ac_status" >&5
9447$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9448sed 's/^/| /' conftest.$ac_ext >&5
9449
9450( exit $ac_status )
9451ac_cv_func_lstat_dereferences_slashed_symlink=no
9452fi
ec6a6fbe 9453rm -rf conftest.dSYM
7a197a62 9454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9455fi
7a197a62
AK
9456
9457
ad6254c5
AK
9458else
9459 # If the `ln -s' command failed, then we probably don't even
9460 # have an lstat function.
9461 ac_cv_func_lstat_dereferences_slashed_symlink=no
9462fi
9463rm -f conftest.sym conftest.file
9464
9465fi
ec6a6fbe
AK
9466{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9467$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9468
9469test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9470
9471cat >>confdefs.h <<_ACEOF
9472#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9473_ACEOF
9474
9475
9476if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9477 case " $LIBOBJS " in
8a2fc586 9478 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9479 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9480 ;;
8a2fc586
AK
9481esac
9482
ad6254c5
AK
9483fi
9484
ec6a6fbe
AK
9485{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9486$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9487if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9488 $as_echo_n "(cached) " >&6
ad6254c5
AK
9489else
9490 if test "$cross_compiling" = yes; then
9491 ac_cv_func_lstat_empty_string_bug=yes
9492else
9493 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h. */
9499$ac_includes_default
9500int
9501main ()
9502{
9503struct stat sbuf;
7a197a62 9504 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9505 ;
9506 return 0;
9507}
9508_ACEOF
9509rm -f conftest$ac_exeext
7a197a62
AK
9510if { (ac_try="$ac_link"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
ec6a6fbe
AK
9515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9516$as_echo "$ac_try_echo") >&5
7a197a62 9517 (eval "$ac_link") 2>&5
ad6254c5 9518 ac_status=$?
ec6a6fbe 9519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9521 { (case "(($ac_try" in
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9524esac
ec6a6fbe
AK
9525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9526$as_echo "$ac_try_echo") >&5
7a197a62 9527 (eval "$ac_try") 2>&5
ad6254c5 9528 ac_status=$?
ec6a6fbe 9529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9530 (exit $ac_status); }; }; then
7a197a62 9531 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9532else
ec6a6fbe
AK
9533 $as_echo "$as_me: program exited with status $ac_status" >&5
9534$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9535sed 's/^/| /' conftest.$ac_ext >&5
9536
9537( exit $ac_status )
7a197a62 9538ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9539fi
ec6a6fbe 9540rm -rf conftest.dSYM
7a197a62 9541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9542fi
7a197a62
AK
9543
9544
ad6254c5 9545fi
ec6a6fbe
AK
9546{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9547$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9548if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9549 case " $LIBOBJS " in
8a2fc586 9550 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9551 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9552 ;;
8a2fc586
AK
9553esac
9554
ad6254c5
AK
9555
9556cat >>confdefs.h <<_ACEOF
9557#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9558_ACEOF
9559
9560fi
9561
9562
9563for ac_header in stdlib.h
9564do
ec6a6fbe 9565as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9568$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9570 $as_echo_n "(cached) " >&6
ad6254c5 9571fi
ec6a6fbe
AK
9572ac_res=`eval 'as_val=${'$as_ac_Header'}
9573 $as_echo "$as_val"'`
9574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9575$as_echo "$ac_res" >&6; }
ad6254c5
AK
9576else
9577 # Is the header compilable?
ec6a6fbe
AK
9578{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9579$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9580cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586$ac_includes_default
9587#include <$ac_header>
9588_ACEOF
9589rm -f conftest.$ac_objext
7a197a62
AK
9590if { (ac_try="$ac_compile"
9591case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
ec6a6fbe
AK
9595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9596$as_echo "$ac_try_echo") >&5
7a197a62 9597 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9598 ac_status=$?
8a2fc586
AK
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
ec6a6fbe 9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9603 (exit $ac_status); } && {
9604 test -z "$ac_c_werror_flag" ||
9605 test ! -s conftest.err
9606 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9607 ac_header_compiler=yes
9608else
ec6a6fbe 9609 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
7a197a62 9612 ac_header_compiler=no
ad6254c5 9613fi
7a197a62
AK
9614
9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9616{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9617$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9618
9619# Is the header present?
ec6a6fbe
AK
9620{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9621$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9622cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628#include <$ac_header>
9629_ACEOF
7a197a62
AK
9630if { (ac_try="$ac_cpp conftest.$ac_ext"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
ec6a6fbe
AK
9635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636$as_echo "$ac_try_echo") >&5
7a197a62 9637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
ec6a6fbe 9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9643 (exit $ac_status); } >/dev/null && {
9644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 }; then
ad6254c5
AK
9647 ac_header_preproc=yes
9648else
ec6a6fbe 9649 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9650sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 ac_header_preproc=no
9653fi
7a197a62 9654
ad6254c5 9655rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9656{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9657$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9658
9659# So? What about this header?
8a2fc586
AK
9660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9661 yes:no: )
ec6a6fbe
AK
9662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9663$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9665$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9666 ac_header_preproc=yes
ad6254c5 9667 ;;
8a2fc586 9668 no:yes:* )
ec6a6fbe
AK
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9670$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9672$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9674$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9676$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9678$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9680$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9681
ad6254c5
AK
9682 ;;
9683esac
ec6a6fbe
AK
9684{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9685$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9687 $as_echo_n "(cached) " >&6
ad6254c5 9688else
8a2fc586 9689 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9690fi
ec6a6fbe
AK
9691ac_res=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694$as_echo "$ac_res" >&6; }
ad6254c5
AK
9695
9696fi
ec6a6fbe
AK
9697as_val=`eval 'as_val=${'$as_ac_Header'}
9698 $as_echo "$as_val"'`
9699 if test "x$as_val" = x""yes; then
ad6254c5 9700 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9702_ACEOF
9703
9704fi
9705
9706done
9707
ec6a6fbe
AK
9708{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9709$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9710if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9711 $as_echo_n "(cached) " >&6
ad6254c5
AK
9712else
9713 if test "$cross_compiling" = yes; then
9714 ac_cv_func_malloc_0_nonnull=no
9715else
9716 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
25fbec5b 9722#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9723# include <stdlib.h>
9724#else
9725char *malloc ();
9726#endif
9727
9728int
9729main ()
9730{
7a197a62 9731return ! malloc (0);
ad6254c5
AK
9732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest$ac_exeext
7a197a62
AK
9737if { (ac_try="$ac_link"
9738case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
ec6a6fbe
AK
9742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743$as_echo "$ac_try_echo") >&5
7a197a62 9744 (eval "$ac_link") 2>&5
ad6254c5 9745 ac_status=$?
ec6a6fbe 9746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
ec6a6fbe
AK
9752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753$as_echo "$ac_try_echo") >&5
7a197a62 9754 (eval "$ac_try") 2>&5
ad6254c5 9755 ac_status=$?
ec6a6fbe 9756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9757 (exit $ac_status); }; }; then
9758 ac_cv_func_malloc_0_nonnull=yes
9759else
ec6a6fbe
AK
9760 $as_echo "$as_me: program exited with status $ac_status" >&5
9761$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
9764( exit $ac_status )
9765ac_cv_func_malloc_0_nonnull=no
9766fi
ec6a6fbe 9767rm -rf conftest.dSYM
7a197a62 9768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9769fi
7a197a62
AK
9770
9771
ad6254c5 9772fi
ec6a6fbe
AK
9773{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9774$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9775if test $ac_cv_func_malloc_0_nonnull = yes; then
9776
9777cat >>confdefs.h <<\_ACEOF
9778#define HAVE_MALLOC 1
9779_ACEOF
9780
9781else
9782 cat >>confdefs.h <<\_ACEOF
9783#define HAVE_MALLOC 0
9784_ACEOF
9785
7a197a62 9786 case " $LIBOBJS " in
8a2fc586 9787 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9788 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9789 ;;
8a2fc586
AK
9790esac
9791
ad6254c5
AK
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define malloc rpl_malloc
9795_ACEOF
9796
9797fi
9798
9799
9800
ec6a6fbe
AK
9801{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9802$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9803if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9804 $as_echo_n "(cached) " >&6
ad6254c5
AK
9805else
9806 if test "$cross_compiling" = yes; then
9807 ac_cv_func_memcmp_working=no
9808else
9809 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9810/* confdefs.h. */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
8a2fc586 9815$ac_includes_default
ad6254c5
AK
9816int
9817main ()
9818{
9819
9820 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9821 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9822 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9823 return 1;
ad6254c5
AK
9824
9825 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9826 or more and with at least one buffer not starting on a 4-byte boundary.
9827 William Lewis provided this test program. */
9828 {
9829 char foo[21];
9830 char bar[21];
9831 int i;
9832 for (i = 0; i < 4; i++)
9833 {
8a2fc586
AK
9834 char *a = foo + i;
9835 char *b = bar + i;
9836 strcpy (a, "--------01111111");
9837 strcpy (b, "--------10000000");
9838 if (memcmp (a, b, 16) >= 0)
7a197a62 9839 return 1;
ad6254c5 9840 }
7a197a62 9841 return 0;
ad6254c5
AK
9842 }
9843
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest$ac_exeext
7a197a62
AK
9849if { (ac_try="$ac_link"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
ec6a6fbe
AK
9854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855$as_echo "$ac_try_echo") >&5
7a197a62 9856 (eval "$ac_link") 2>&5
ad6254c5 9857 ac_status=$?
ec6a6fbe 9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863esac
ec6a6fbe
AK
9864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865$as_echo "$ac_try_echo") >&5
7a197a62 9866 (eval "$ac_try") 2>&5
ad6254c5 9867 ac_status=$?
ec6a6fbe 9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9869 (exit $ac_status); }; }; then
9870 ac_cv_func_memcmp_working=yes
9871else
ec6a6fbe
AK
9872 $as_echo "$as_me: program exited with status $ac_status" >&5
9873$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9874sed 's/^/| /' conftest.$ac_ext >&5
9875
9876( exit $ac_status )
9877ac_cv_func_memcmp_working=no
9878fi
ec6a6fbe 9879rm -rf conftest.dSYM
7a197a62 9880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9881fi
7a197a62
AK
9882
9883
ad6254c5 9884fi
ec6a6fbe
AK
9885{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9886$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9887test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9888 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9889 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9890 ;;
8a2fc586
AK
9891esac
9892
ad6254c5
AK
9893
9894
9895
9896for ac_header in stdlib.h unistd.h
9897do
ec6a6fbe 9898as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9901$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9903 $as_echo_n "(cached) " >&6
ad6254c5 9904fi
ec6a6fbe
AK
9905ac_res=`eval 'as_val=${'$as_ac_Header'}
9906 $as_echo "$as_val"'`
9907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9908$as_echo "$ac_res" >&6; }
ad6254c5
AK
9909else
9910 # Is the header compilable?
ec6a6fbe
AK
9911{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9912$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9913cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9914/* confdefs.h. */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
9918/* end confdefs.h. */
9919$ac_includes_default
9920#include <$ac_header>
9921_ACEOF
9922rm -f conftest.$ac_objext
7a197a62
AK
9923if { (ac_try="$ac_compile"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
ec6a6fbe
AK
9928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929$as_echo "$ac_try_echo") >&5
7a197a62 9930 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9931 ac_status=$?
8a2fc586
AK
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
ec6a6fbe 9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9940 ac_header_compiler=yes
9941else
ec6a6fbe 9942 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
7a197a62 9945 ac_header_compiler=no
ad6254c5 9946fi
7a197a62
AK
9947
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9949{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9950$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9951
9952# Is the header present?
ec6a6fbe
AK
9953{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9954$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9955cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9956/* confdefs.h. */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h. */
9961#include <$ac_header>
9962_ACEOF
7a197a62
AK
9963if { (ac_try="$ac_cpp conftest.$ac_ext"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
ec6a6fbe
AK
9968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969$as_echo "$ac_try_echo") >&5
7a197a62 9970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
ec6a6fbe 9975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9976 (exit $ac_status); } >/dev/null && {
9977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 }; then
ad6254c5
AK
9980 ac_header_preproc=yes
9981else
ec6a6fbe 9982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_preproc=no
9986fi
7a197a62 9987
ad6254c5 9988rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9989{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9990$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9991
9992# So? What about this header?
8a2fc586
AK
9993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9994 yes:no: )
ec6a6fbe
AK
9995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9996$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9998$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9999 ac_header_preproc=yes
ad6254c5 10000 ;;
8a2fc586 10001 no:yes:* )
ec6a6fbe
AK
10002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10003$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10005$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10007$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10009$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10011$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10013$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10014
ad6254c5
AK
10015 ;;
10016esac
ec6a6fbe
AK
10017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10018$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10020 $as_echo_n "(cached) " >&6
ad6254c5 10021else
8a2fc586 10022 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10023fi
ec6a6fbe
AK
10024ac_res=`eval 'as_val=${'$as_ac_Header'}
10025 $as_echo "$as_val"'`
10026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10027$as_echo "$ac_res" >&6; }
ad6254c5
AK
10028
10029fi
ec6a6fbe
AK
10030as_val=`eval 'as_val=${'$as_ac_Header'}
10031 $as_echo "$as_val"'`
10032 if test "x$as_val" = x""yes; then
ad6254c5 10033 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10035_ACEOF
10036
10037fi
10038
10039done
10040
10041
10042for ac_func in getpagesize
10043do
ec6a6fbe
AK
10044as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10045{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10046$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10047if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10048 $as_echo_n "(cached) " >&6
ad6254c5
AK
10049else
10050 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10051/* confdefs.h. */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h. */
8a2fc586
AK
10056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10058#define $ac_func innocuous_$ac_func
10059
ad6254c5
AK
10060/* System header to define __stub macros and hopefully few prototypes,
10061 which can conflict with char $ac_func (); below.
10062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10063 <limits.h> exists even on freestanding compilers. */
8a2fc586 10064
ad6254c5
AK
10065#ifdef __STDC__
10066# include <limits.h>
10067#else
10068# include <assert.h>
10069#endif
8a2fc586
AK
10070
10071#undef $ac_func
10072
7a197a62
AK
10073/* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10076#ifdef __cplusplus
10077extern "C"
ad6254c5 10078#endif
ad6254c5
AK
10079char $ac_func ();
10080/* The GNU C library defines this for functions which it implements
10081 to always fail with ENOSYS. Some functions are actually named
10082 something starting with __ and the normal name is an alias. */
7a197a62 10083#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10084choke me
ad6254c5
AK
10085#endif
10086
10087int
10088main ()
10089{
7a197a62 10090return $ac_func ();
ad6254c5
AK
10091 ;
10092 return 0;
10093}
10094_ACEOF
10095rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10096if { (ac_try="$ac_link"
10097case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100esac
ec6a6fbe
AK
10101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102$as_echo "$ac_try_echo") >&5
7a197a62 10103 (eval "$ac_link") 2>conftest.er1
ad6254c5 10104 ac_status=$?
8a2fc586
AK
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
ec6a6fbe 10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
ec6a6fbe
AK
10112 } && test -s conftest$ac_exeext && {
10113 test "$cross_compiling" = yes ||
10114 $as_test_x conftest$ac_exeext
10115 }; then
ad6254c5
AK
10116 eval "$as_ac_var=yes"
10117else
ec6a6fbe 10118 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
7a197a62 10121 eval "$as_ac_var=no"
ad6254c5 10122fi
7a197a62 10123
ec6a6fbe 10124rm -rf conftest.dSYM
25fbec5b 10125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10126 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10127fi
ec6a6fbe
AK
10128ac_res=`eval 'as_val=${'$as_ac_var'}
10129 $as_echo "$as_val"'`
10130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10131$as_echo "$ac_res" >&6; }
10132as_val=`eval 'as_val=${'$as_ac_var'}
10133 $as_echo "$as_val"'`
10134 if test "x$as_val" = x""yes; then
ad6254c5 10135 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10137_ACEOF
10138
10139fi
10140done
10141
ec6a6fbe
AK
10142{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10143$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10144if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10145 $as_echo_n "(cached) " >&6
ad6254c5
AK
10146else
10147 if test "$cross_compiling" = yes; then
10148 ac_cv_func_mmap_fixed_mapped=no
10149else
10150 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156$ac_includes_default
10157/* malloc might have been renamed as rpl_malloc. */
10158#undef malloc
10159
10160/* Thanks to Mike Haertel and Jim Avera for this test.
10161 Here is a matrix of mmap possibilities:
10162 mmap private not fixed
10163 mmap private fixed at somewhere currently unmapped
10164 mmap private fixed at somewhere already mapped
10165 mmap shared not fixed
10166 mmap shared fixed at somewhere currently unmapped
10167 mmap shared fixed at somewhere already mapped
10168 For private mappings, we should verify that changes cannot be read()
10169 back from the file, nor mmap's back from the file at a different
10170 address. (There have been systems where private was not correctly
10171 implemented like the infamous i386 svr4.0, and systems where the
10172 VM page cache was not coherent with the file system buffer cache
10173 like early versions of FreeBSD and possibly contemporary NetBSD.)
10174 For shared mappings, we should conversely verify that changes get
10175 propagated back to all the places they're supposed to be.
10176
10177 Grep wants private fixed already mapped.
10178 The main things grep needs to know about mmap are:
10179 * does it exist and is it safe to write into the mmap'd area
10180 * how to use it (BSD variants) */
10181
10182#include <fcntl.h>
10183#include <sys/mman.h>
10184
25fbec5b 10185#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10186char *malloc ();
10187#endif
10188
10189/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10190#ifndef HAVE_GETPAGESIZE
ad6254c5 10191/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10192# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10193# define HAVE_SYS_PARAM_H 1
10194# endif
10195
10196# ifdef _SC_PAGESIZE
10197# define getpagesize() sysconf(_SC_PAGESIZE)
10198# else /* no _SC_PAGESIZE */
25fbec5b 10199# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10200# include <sys/param.h>
10201# ifdef EXEC_PAGESIZE
10202# define getpagesize() EXEC_PAGESIZE
10203# else /* no EXEC_PAGESIZE */
10204# ifdef NBPG
10205# define getpagesize() NBPG * CLSIZE
10206# ifndef CLSIZE
10207# define CLSIZE 1
10208# endif /* no CLSIZE */
10209# else /* no NBPG */
10210# ifdef NBPC
10211# define getpagesize() NBPC
10212# else /* no NBPC */
10213# ifdef PAGESIZE
10214# define getpagesize() PAGESIZE
10215# endif /* PAGESIZE */
10216# endif /* no NBPC */
10217# endif /* no NBPG */
10218# endif /* no EXEC_PAGESIZE */
10219# else /* no HAVE_SYS_PARAM_H */
10220# define getpagesize() 8192 /* punt totally */
10221# endif /* no HAVE_SYS_PARAM_H */
10222# endif /* no _SC_PAGESIZE */
10223
10224#endif /* no HAVE_GETPAGESIZE */
10225
10226int
10227main ()
10228{
10229 char *data, *data2, *data3;
10230 int i, pagesize;
10231 int fd;
10232
10233 pagesize = getpagesize ();
10234
10235 /* First, make a file with some known garbage in it. */
10236 data = (char *) malloc (pagesize);
10237 if (!data)
7a197a62 10238 return 1;
ad6254c5
AK
10239 for (i = 0; i < pagesize; ++i)
10240 *(data + i) = rand ();
10241 umask (0);
10242 fd = creat ("conftest.mmap", 0600);
10243 if (fd < 0)
7a197a62 10244 return 1;
ad6254c5 10245 if (write (fd, data, pagesize) != pagesize)
7a197a62 10246 return 1;
ad6254c5
AK
10247 close (fd);
10248
10249 /* Next, try to mmap the file at a fixed address which already has
10250 something else allocated at it. If we can, also make sure that
10251 we see the same garbage. */
10252 fd = open ("conftest.mmap", O_RDWR);
10253 if (fd < 0)
7a197a62 10254 return 1;
ad6254c5
AK
10255 data2 = (char *) malloc (2 * pagesize);
10256 if (!data2)
7a197a62
AK
10257 return 1;
10258 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10259 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10260 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10261 return 1;
ad6254c5
AK
10262 for (i = 0; i < pagesize; ++i)
10263 if (*(data + i) != *(data2 + i))
7a197a62 10264 return 1;
ad6254c5 10265
d911ec67
AK
10266 /* Finally, make sure that changes to the mapped area do not
10267 percolate back to the file as seen by read(). (This is a bug on
10268 some variants of i386 svr4.0.) */
10269 for (i = 0; i < pagesize; ++i)
10270 *(data2 + i) = *(data2 + i) + 1;
10271 data3 = (char *) malloc (pagesize);
10272 if (!data3)
10273 return 1;
10274 if (read (fd, data3, pagesize) != pagesize)
10275 return 1;
10276 for (i = 0; i < pagesize; ++i)
10277 if (*(data + i) != *(data3 + i))
10278 return 1;
10279 close (fd);
10280 return 0;
10281}
10282_ACEOF
10283rm -f conftest$ac_exeext
10284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290$as_echo "$ac_try_echo") >&5
10291 (eval "$ac_link") 2>&5
10292 ac_status=$?
10293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298esac
10299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10300$as_echo "$ac_try_echo") >&5
10301 (eval "$ac_try") 2>&5
10302 ac_status=$?
10303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_mmap_fixed_mapped=yes
10306else
10307 $as_echo "$as_me: program exited with status $ac_status" >&5
10308$as_echo "$as_me: failed program was:" >&5
10309sed 's/^/| /' conftest.$ac_ext >&5
10310
10311( exit $ac_status )
10312ac_cv_func_mmap_fixed_mapped=no
10313fi
10314rm -rf conftest.dSYM
10315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10316fi
10317
10318
10319fi
10320{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10321$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10322if test $ac_cv_func_mmap_fixed_mapped = yes; then
10323
10324cat >>confdefs.h <<\_ACEOF
10325#define HAVE_MMAP 1
10326_ACEOF
10327
10328fi
10329rm -f conftest.mmap
10330
10331
10332for ac_header in stdlib.h
10333do
10334as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10337$as_echo_n "checking for $ac_header... " >&6; }
10338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 $as_echo_n "(cached) " >&6
10340fi
10341ac_res=`eval 'as_val=${'$as_ac_Header'}
10342 $as_echo "$as_val"'`
10343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10344$as_echo "$ac_res" >&6; }
10345else
10346 # Is the header compilable?
10347{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10348$as_echo_n "checking $ac_header usability... " >&6; }
10349cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h. */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h. */
10355$ac_includes_default
10356#include <$ac_header>
10357_ACEOF
10358rm -f conftest.$ac_objext
10359if { (ac_try="$ac_compile"
10360case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365$as_echo "$ac_try_echo") >&5
10366 (eval "$ac_compile") 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_c_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest.$ac_objext; then
10376 ac_header_compiler=yes
10377else
10378 $as_echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 ac_header_compiler=no
10382fi
10383
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10386$as_echo "$ac_header_compiler" >&6; }
10387
10388# Is the header present?
10389{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10390$as_echo_n "checking $ac_header presence... " >&6; }
10391cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h. */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h. */
10397#include <$ac_header>
10398_ACEOF
10399if { (ac_try="$ac_cpp conftest.$ac_ext"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10405$as_echo "$ac_try_echo") >&5
10406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } >/dev/null && {
10413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10414 test ! -s conftest.err
10415 }; then
10416 ac_header_preproc=yes
10417else
10418 $as_echo "$as_me: failed program was:" >&5
10419sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_header_preproc=no
10422fi
10423
10424rm -f conftest.err conftest.$ac_ext
10425{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10426$as_echo "$ac_header_preproc" >&6; }
10427
10428# So? What about this header?
10429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10430 yes:no: )
10431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10432$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10434$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10435 ac_header_preproc=yes
10436 ;;
10437 no:yes:* )
10438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10439$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10441$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10443$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10445$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10447$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10449$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450
10451 ;;
10452esac
10453{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10454$as_echo_n "checking for $ac_header... " >&6; }
10455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10456 $as_echo_n "(cached) " >&6
10457else
10458 eval "$as_ac_Header=\$ac_header_preproc"
10459fi
10460ac_res=`eval 'as_val=${'$as_ac_Header'}
10461 $as_echo "$as_val"'`
10462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10463$as_echo "$ac_res" >&6; }
10464
10465fi
10466as_val=`eval 'as_val=${'$as_ac_Header'}
10467 $as_echo "$as_val"'`
10468 if test "x$as_val" = x""yes; then
10469 cat >>confdefs.h <<_ACEOF
10470#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10471_ACEOF
10472
10473fi
10474
10475done
10476
10477{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10478$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10479if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10481else
10482 if test "$cross_compiling" = yes; then
10483 ac_cv_func_realloc_0_nonnull=no
10484else
10485 cat >conftest.$ac_ext <<_ACEOF
10486/* confdefs.h. */
10487_ACEOF
10488cat confdefs.h >>conftest.$ac_ext
10489cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */
10491#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10492# include <stdlib.h>
10493#else
10494char *realloc ();
10495#endif
10496
10497int
10498main ()
10499{
10500return ! realloc (0, 0);
10501 ;
7a197a62 10502 return 0;
ad6254c5
AK
10503}
10504_ACEOF
10505rm -f conftest$ac_exeext
7a197a62
AK
10506if { (ac_try="$ac_link"
10507case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510esac
ec6a6fbe
AK
10511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10512$as_echo "$ac_try_echo") >&5
7a197a62 10513 (eval "$ac_link") 2>&5
ad6254c5 10514 ac_status=$?
ec6a6fbe 10515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10517 { (case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520esac
ec6a6fbe
AK
10521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10522$as_echo "$ac_try_echo") >&5
7a197a62 10523 (eval "$ac_try") 2>&5
ad6254c5 10524 ac_status=$?
ec6a6fbe 10525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10526 (exit $ac_status); }; }; then
d911ec67 10527 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10528else
ec6a6fbe
AK
10529 $as_echo "$as_me: program exited with status $ac_status" >&5
10530$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533( exit $ac_status )
d911ec67 10534ac_cv_func_realloc_0_nonnull=no
ad6254c5 10535fi
ec6a6fbe 10536rm -rf conftest.dSYM
7a197a62 10537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10538fi
7a197a62
AK
10539
10540
ad6254c5 10541fi
d911ec67
AK
10542{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10543$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10544if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10545
10546cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10547#define HAVE_REALLOC 1
10548_ACEOF
10549
10550else
10551 cat >>confdefs.h <<\_ACEOF
10552#define HAVE_REALLOC 0
10553_ACEOF
10554
10555 case " $LIBOBJS " in
10556 *" realloc.$ac_objext "* ) ;;
10557 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10558 ;;
10559esac
10560
10561
10562cat >>confdefs.h <<\_ACEOF
10563#define realloc rpl_realloc
ad6254c5
AK
10564_ACEOF
10565
10566fi
d911ec67
AK
10567
10568
ad6254c5 10569
ec6a6fbe
AK
10570{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10571$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10572if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10573 $as_echo_n "(cached) " >&6
ad6254c5
AK
10574else
10575 if test "$cross_compiling" = yes; then
10576 ac_cv_func_stat_empty_string_bug=yes
10577else
10578 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584$ac_includes_default
10585int
10586main ()
10587{
10588struct stat sbuf;
7a197a62 10589 return stat ("", &sbuf) == 0;
ad6254c5
AK
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594rm -f conftest$ac_exeext
7a197a62
AK
10595if { (ac_try="$ac_link"
10596case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599esac
ec6a6fbe
AK
10600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601$as_echo "$ac_try_echo") >&5
7a197a62 10602 (eval "$ac_link") 2>&5
ad6254c5 10603 ac_status=$?
ec6a6fbe 10604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
ec6a6fbe
AK
10610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611$as_echo "$ac_try_echo") >&5
7a197a62 10612 (eval "$ac_try") 2>&5
ad6254c5 10613 ac_status=$?
ec6a6fbe 10614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10615 (exit $ac_status); }; }; then
7a197a62 10616 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10617else
ec6a6fbe
AK
10618 $as_echo "$as_me: program exited with status $ac_status" >&5
10619$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622( exit $ac_status )
7a197a62 10623ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10624fi
ec6a6fbe 10625rm -rf conftest.dSYM
7a197a62 10626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10627fi
7a197a62
AK
10628
10629
ad6254c5 10630fi
ec6a6fbe
AK
10631{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10632$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10633if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10634 case " $LIBOBJS " in
8a2fc586 10635 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10636 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10637 ;;
8a2fc586
AK
10638esac
10639
ad6254c5
AK
10640
10641cat >>confdefs.h <<_ACEOF
10642#define HAVE_STAT_EMPTY_STRING_BUG 1
10643_ACEOF
10644
10645fi
10646
ec6a6fbe
AK
10647{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10648$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10649if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10650 $as_echo_n "(cached) " >&6
ad6254c5
AK
10651else
10652 if test "$cross_compiling" = yes; then
10653 ac_cv_func_strtod=no
10654else
10655 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10656/* confdefs.h. */
10657_ACEOF
10658cat confdefs.h >>conftest.$ac_ext
10659cat >>conftest.$ac_ext <<_ACEOF
10660/* end confdefs.h. */
10661
7a197a62
AK
10662$ac_includes_default
10663#ifndef strtod
ad6254c5 10664double strtod ();
7a197a62 10665#endif
ad6254c5
AK
10666int
10667main()
10668{
10669 {
10670 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10671 char *string = " +69";
10672 char *term;
10673 double value;
10674 value = strtod (string, &term);
10675 if (value != 69 || term != (string + 4))
7a197a62 10676 return 1;
ad6254c5
AK
10677 }
10678
10679 {
10680 /* Under Solaris 2.4, strtod returns the wrong value for the
10681 terminating character under some conditions. */
10682 char *string = "NaN";
10683 char *term;
10684 strtod (string, &term);
10685 if (term != string && *(term - 1) == 0)
7a197a62 10686 return 1;
ad6254c5 10687 }
7a197a62 10688 return 0;
ad6254c5
AK
10689}
10690
10691_ACEOF
10692rm -f conftest$ac_exeext
7a197a62
AK
10693if { (ac_try="$ac_link"
10694case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
ec6a6fbe
AK
10698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10699$as_echo "$ac_try_echo") >&5
7a197a62 10700 (eval "$ac_link") 2>&5
ad6254c5 10701 ac_status=$?
ec6a6fbe 10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
ec6a6fbe
AK
10708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10709$as_echo "$ac_try_echo") >&5
7a197a62 10710 (eval "$ac_try") 2>&5
ad6254c5 10711 ac_status=$?
ec6a6fbe 10712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10713 (exit $ac_status); }; }; then
10714 ac_cv_func_strtod=yes
10715else
ec6a6fbe
AK
10716 $as_echo "$as_me: program exited with status $ac_status" >&5
10717$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720( exit $ac_status )
10721ac_cv_func_strtod=no
10722fi
ec6a6fbe 10723rm -rf conftest.dSYM
7a197a62 10724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10725fi
7a197a62
AK
10726
10727
ad6254c5 10728fi
ec6a6fbe
AK
10729{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10730$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10731if test $ac_cv_func_strtod = no; then
7a197a62 10732 case " $LIBOBJS " in
8a2fc586 10733 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10734 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10735 ;;
8a2fc586
AK
10736esac
10737
ec6a6fbe
AK
10738{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10739$as_echo_n "checking for pow... " >&6; }
ad6254c5 10740if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10741 $as_echo_n "(cached) " >&6
ad6254c5
AK
10742else
10743 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10744/* confdefs.h. */
10745_ACEOF
10746cat confdefs.h >>conftest.$ac_ext
10747cat >>conftest.$ac_ext <<_ACEOF
10748/* end confdefs.h. */
8a2fc586
AK
10749/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751#define pow innocuous_pow
10752
ad6254c5
AK
10753/* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char pow (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
8a2fc586 10757
ad6254c5
AK
10758#ifdef __STDC__
10759# include <limits.h>
10760#else
10761# include <assert.h>
10762#endif
8a2fc586
AK
10763
10764#undef pow
10765
7a197a62
AK
10766/* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10769#ifdef __cplusplus
10770extern "C"
ad6254c5 10771#endif
ad6254c5
AK
10772char pow ();
10773/* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
7a197a62 10776#if defined __stub_pow || defined __stub___pow
ad6254c5 10777choke me
ad6254c5
AK
10778#endif
10779
10780int
10781main ()
10782{
7a197a62 10783return pow ();
ad6254c5
AK
10784 ;
10785 return 0;
10786}
10787_ACEOF
10788rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10789if { (ac_try="$ac_link"
10790case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793esac
ec6a6fbe
AK
10794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10795$as_echo "$ac_try_echo") >&5
7a197a62 10796 (eval "$ac_link") 2>conftest.er1
ad6254c5 10797 ac_status=$?
8a2fc586
AK
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
ec6a6fbe 10801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10802 (exit $ac_status); } && {
10803 test -z "$ac_c_werror_flag" ||
10804 test ! -s conftest.err
ec6a6fbe
AK
10805 } && test -s conftest$ac_exeext && {
10806 test "$cross_compiling" = yes ||
10807 $as_test_x conftest$ac_exeext
10808 }; then
ad6254c5
AK
10809 ac_cv_func_pow=yes
10810else
ec6a6fbe 10811 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10812sed 's/^/| /' conftest.$ac_ext >&5
10813
7a197a62 10814 ac_cv_func_pow=no
ad6254c5 10815fi
7a197a62 10816
ec6a6fbe 10817rm -rf conftest.dSYM
25fbec5b 10818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10819 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10820fi
ec6a6fbe
AK
10821{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10822$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10823
10824if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10825 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10826$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10827if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10828 $as_echo_n "(cached) " >&6
ad6254c5
AK
10829else
10830 ac_check_lib_save_LIBS=$LIBS
10831LIBS="-lm $LIBS"
10832cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838
7a197a62
AK
10839/* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10842#ifdef __cplusplus
10843extern "C"
10844#endif
ad6254c5
AK
10845char pow ();
10846int
10847main ()
10848{
7a197a62 10849return pow ();
ad6254c5
AK
10850 ;
10851 return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10855if { (ac_try="$ac_link"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
ec6a6fbe
AK
10860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10861$as_echo "$ac_try_echo") >&5
7a197a62 10862 (eval "$ac_link") 2>conftest.er1
ad6254c5 10863 ac_status=$?
8a2fc586
AK
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
ec6a6fbe 10867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10868 (exit $ac_status); } && {
10869 test -z "$ac_c_werror_flag" ||
10870 test ! -s conftest.err
ec6a6fbe
AK
10871 } && test -s conftest$ac_exeext && {
10872 test "$cross_compiling" = yes ||
10873 $as_test_x conftest$ac_exeext
10874 }; then
ad6254c5
AK
10875 ac_cv_lib_m_pow=yes
10876else
ec6a6fbe 10877 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
7a197a62 10880 ac_cv_lib_m_pow=no
ad6254c5 10881fi
7a197a62 10882
ec6a6fbe 10883rm -rf conftest.dSYM
25fbec5b 10884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10885 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10886LIBS=$ac_check_lib_save_LIBS
d0191583 10887fi
ec6a6fbe
AK
10888{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10889$as_echo "$ac_cv_lib_m_pow" >&6; }
10890if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10891 POW_LIB=-lm
10892else
ec6a6fbe
AK
10893 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10894$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10895fi
72b2cb61 10896
d0191583 10897fi
72b2cb61 10898
ad6254c5
AK
10899fi
10900
ad6254c5 10901
d0191583
JM
10902for ac_func in vprintf
10903do
ec6a6fbe
AK
10904as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10905{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10906$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10908 $as_echo_n "(cached) " >&6
ad6254c5 10909else
d0191583
JM
10910 cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h. */
10916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10918#define $ac_func innocuous_$ac_func
7a197a62 10919
d0191583
JM
10920/* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char $ac_func (); below.
10922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923 <limits.h> exists even on freestanding compilers. */
ad6254c5 10924
d0191583
JM
10925#ifdef __STDC__
10926# include <limits.h>
10927#else
10928# include <assert.h>
10929#endif
ad6254c5 10930
d0191583 10931#undef $ac_func
72b2cb61 10932
d0191583
JM
10933/* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char $ac_func ();
10940/* The GNU C library defines this for functions which it implements
10941 to always fail with ENOSYS. Some functions are actually named
10942 something starting with __ and the normal name is an alias. */
10943#if defined __stub_$ac_func || defined __stub___$ac_func
10944choke me
10945#endif
10946
10947int
10948main ()
10949{
10950return $ac_func ();
10951 ;
10952 return 0;
10953}
72b2cb61 10954_ACEOF
d0191583
JM
10955rm -f conftest.$ac_objext conftest$ac_exeext
10956if { (ac_try="$ac_link"
10957case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960esac
ec6a6fbe
AK
10961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10962$as_echo "$ac_try_echo") >&5
d0191583
JM
10963 (eval "$ac_link") 2>conftest.er1
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
ec6a6fbe 10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10969 (exit $ac_status); } && {
10970 test -z "$ac_c_werror_flag" ||
10971 test ! -s conftest.err
ec6a6fbe
AK
10972 } && test -s conftest$ac_exeext && {
10973 test "$cross_compiling" = yes ||
10974 $as_test_x conftest$ac_exeext
10975 }; then
d0191583
JM
10976 eval "$as_ac_var=yes"
10977else
ec6a6fbe 10978 $as_echo "$as_me: failed program was:" >&5
d0191583 10979sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10980
d0191583 10981 eval "$as_ac_var=no"
ad6254c5
AK
10982fi
10983
ec6a6fbe 10984rm -rf conftest.dSYM
d0191583
JM
10985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986 conftest$ac_exeext conftest.$ac_ext
7a197a62 10987fi
ec6a6fbe
AK
10988ac_res=`eval 'as_val=${'$as_ac_var'}
10989 $as_echo "$as_val"'`
10990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10991$as_echo "$ac_res" >&6; }
10992as_val=`eval 'as_val=${'$as_ac_var'}
10993 $as_echo "$as_val"'`
10994 if test "x$as_val" = x""yes; then
d0191583 10995 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 10997_ACEOF
7a197a62 10998
ec6a6fbe
AK
10999{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11000$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11001if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11002 $as_echo_n "(cached) " >&6
ad6254c5 11003else
d0191583
JM
11004 cat >conftest.$ac_ext <<_ACEOF
11005/* confdefs.h. */
11006_ACEOF
11007cat confdefs.h >>conftest.$ac_ext
11008cat >>conftest.$ac_ext <<_ACEOF
11009/* end confdefs.h. */
11010/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11012#define _doprnt innocuous__doprnt
7a197a62 11013
d0191583
JM
11014/* System header to define __stub macros and hopefully few prototypes,
11015 which can conflict with char _doprnt (); below.
11016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 <limits.h> exists even on freestanding compilers. */
ad6254c5 11018
d0191583
JM
11019#ifdef __STDC__
11020# include <limits.h>
11021#else
11022# include <assert.h>
11023#endif
72b2cb61 11024
d0191583
JM
11025#undef _doprnt
11026
11027/* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030#ifdef __cplusplus
11031extern "C"
11032#endif
11033char _doprnt ();
11034/* The GNU C library defines this for functions which it implements
11035 to always fail with ENOSYS. Some functions are actually named
11036 something starting with __ and the normal name is an alias. */
11037#if defined __stub__doprnt || defined __stub____doprnt
11038choke me
11039#endif
11040
11041int
11042main ()
11043{
11044return _doprnt ();
11045 ;
11046 return 0;
11047}
72b2cb61 11048_ACEOF
d0191583
JM
11049rm -f conftest.$ac_objext conftest$ac_exeext
11050if { (ac_try="$ac_link"
11051case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
ec6a6fbe
AK
11055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056$as_echo "$ac_try_echo") >&5
d0191583
JM
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
ec6a6fbe 11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
ec6a6fbe
AK
11066 } && test -s conftest$ac_exeext && {
11067 test "$cross_compiling" = yes ||
11068 $as_test_x conftest$ac_exeext
11069 }; then
d0191583
JM
11070 ac_cv_func__doprnt=yes
11071else
ec6a6fbe 11072 $as_echo "$as_me: failed program was:" >&5
d0191583 11073sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11074
d0191583 11075 ac_cv_func__doprnt=no
ad6254c5
AK
11076fi
11077
ec6a6fbe 11078rm -rf conftest.dSYM
d0191583
JM
11079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11080 conftest$ac_exeext conftest.$ac_ext
7a197a62 11081fi
ec6a6fbe
AK
11082{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11083$as_echo "$ac_cv_func__doprnt" >&6; }
11084if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11085
d0191583
JM
11086cat >>confdefs.h <<\_ACEOF
11087#define HAVE_DOPRNT 1
11088_ACEOF
ad6254c5 11089
7a197a62
AK
11090fi
11091
d0191583
JM
11092fi
11093done
8b1a3214 11094
ad6254c5 11095
7a197a62 11096
9c961554 11097################################################################################
ec6a6fbe
AK
11098{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11099$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11100# Check whether --enable-static_link was given.
11101if test "${enable_static_link+set}" = set; then
11102 enableval=$enable_static_link; STATIC_LINK=$enableval
11103else
11104 STATIC_LINK=no
11105fi
11106
ec6a6fbe
AK
11107{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11108$as_echo "$STATIC_LINK" >&6; }
9c961554 11109
d0191583 11110################################################################################
ad6254c5 11111
ad6254c5
AK
11112
11113################################################################################
ec6a6fbe
AK
11114{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11115$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11116
11117# Check whether --with-user was given.
11118if test "${with_user+set}" = set; then
71082be4 11119 withval=$with_user; OWNER=$withval
7a197a62
AK
11120fi
11121
ec6a6fbe
AK
11122{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11123$as_echo "$OWNER" >&6; }
ad6254c5 11124
d0191583 11125if test x$OWNER != x; then
23b059e7 11126 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11127fi
11128
11129################################################################################
ec6a6fbe
AK
11130{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11131$as_echo_n "checking group owner... " >&6; }
ad6254c5 11132
d0191583
JM
11133# Check whether --with-group was given.
11134if test "${with_group+set}" = set; then
71082be4 11135 withval=$with_group; GROUP=$withval
7a197a62
AK
11136fi
11137
ec6a6fbe
AK
11138{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11139$as_echo "$GROUP" >&6; }
d0191583
JM
11140
11141if test x$GROUP != x; then
23b059e7 11142 INSTALL="$INSTALL -g $GROUP"
d0191583 11143fi
ad6254c5 11144
24bbc4d7 11145################################################################################
ec6a6fbe
AK
11146{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11147$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11148
11149
11150# Check whether --with-device-uid was given.
11151if test "${with_device_uid+set}" = set; then
71082be4 11152 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11153else
71082be4 11154 DM_DEVICE_UID=0
24bbc4d7
AK
11155fi
11156
ec6a6fbe
AK
11157{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11158$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11159
11160################################################################################
ec6a6fbe
AK
11161{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11162$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11163
11164
11165# Check whether --with-device-gid was given.
11166if test "${with_device_gid+set}" = set; then
71082be4 11167 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11168else
71082be4 11169 DM_DEVICE_GID=0
24bbc4d7
AK
11170fi
11171
ec6a6fbe
AK
11172{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11173$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11174
93bd259b 11175################################################################################
ec6a6fbe
AK
11176{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11177$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11178
11179
11180# Check whether --with-device-mode was given.
11181if test "${with_device_mode+set}" = set; then
71082be4 11182 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11183else
71082be4 11184 DM_DEVICE_MODE=0600
93bd259b
AK
11185fi
11186
ec6a6fbe
AK
11187{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11188$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11189
ad6254c5 11190################################################################################
ec6a6fbe
AK
11191{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11192$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11193# Check whether --enable-lvm1_fallback was given.
11194if test "${enable_lvm1_fallback+set}" = set; then
11195 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11196else
11197 LVM1_FALLBACK=no
7a197a62
AK
11198fi
11199
ec6a6fbe
AK
11200{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11201$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11202
d0191583 11203if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11204
11205cat >>confdefs.h <<\_ACEOF
d0191583 11206#define LVM1_FALLBACK 1
72b2cb61
AK
11207_ACEOF
11208
ad6254c5
AK
11209fi
11210
11211################################################################################
ec6a6fbe
AK
11212{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11213$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11214
11215# Check whether --with-lvm1 was given.
11216if test "${with_lvm1+set}" = set; then
71082be4 11217 withval=$with_lvm1; LVM1=$withval
d0191583 11218else
71082be4 11219 LVM1=internal
7a197a62
AK
11220fi
11221
ec6a6fbe
AK
11222{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11223$as_echo "$LVM1" >&6; }
ad6254c5 11224
d0191583 11225if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11226 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11227" >&5
ec6a6fbe 11228$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11229" >&2;}
11230 { (exit 1); exit 1; }; }
11231fi;
11232
11233if test x$LVM1 = xinternal; then
72b2cb61
AK
11234
11235cat >>confdefs.h <<\_ACEOF
d0191583 11236#define LVM1_INTERNAL 1
72b2cb61
AK
11237_ACEOF
11238
ad6254c5
AK
11239fi
11240
11241################################################################################
ec6a6fbe
AK
11242{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11243$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11244
11245# Check whether --with-pool was given.
11246if test "${with_pool+set}" = set; then
71082be4 11247 withval=$with_pool; POOL=$withval
ad6254c5 11248else
71082be4 11249 POOL=internal
7a197a62
AK
11250fi
11251
ec6a6fbe
AK
11252{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11253$as_echo "$POOL" >&6; }
ad6254c5 11254
d0191583 11255if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11256 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11257" >&5
ec6a6fbe 11258$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11259" >&2;}
11260 { (exit 1); exit 1; }; }
11261fi;
7a197a62 11262
d0191583
JM
11263if test x$POOL = xinternal; then
11264
11265cat >>confdefs.h <<\_ACEOF
11266#define POOL_INTERNAL 1
11267_ACEOF
11268
11269fi
ad6254c5 11270
06f62ad1 11271################################################################################
ec6a6fbe
AK
11272{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11273$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11274
11275# Check whether --with-cluster was given.
11276if test "${with_cluster+set}" = set; then
71082be4 11277 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11278fi
11279
ec6a6fbe
AK
11280{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11281$as_echo "$CLUSTER" >&6; }
06f62ad1 11282
d0191583 11283if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11284 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11285" >&5
ec6a6fbe 11286$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11287" >&2;}
11288 { (exit 1); exit 1; }; }
d0191583 11289fi;
06f62ad1 11290
d0191583 11291if test x$CLUSTER = xinternal; then
72b2cb61
AK
11292
11293cat >>confdefs.h <<\_ACEOF
d0191583 11294#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11295_ACEOF
11296
15d91f5a 11297fi
ad6254c5
AK
11298
11299################################################################################
ec6a6fbe
AK
11300{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11301$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11302
d0191583
JM
11303# Check whether --with-snapshots was given.
11304if test "${with_snapshots+set}" = set; then
71082be4 11305 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11306else
71082be4 11307 SNAPSHOTS=internal
ad6254c5
AK
11308fi
11309
ec6a6fbe
AK
11310{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11311$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11312
d0191583 11313if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11314 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11315" >&5
ec6a6fbe 11316$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11317" >&2;}
11318 { (exit 1); exit 1; }; }
11319fi;
11320
11321if test x$SNAPSHOTS = xinternal; then
11322
11323cat >>confdefs.h <<\_ACEOF
11324#define SNAPSHOT_INTERNAL 1
11325_ACEOF
ad6254c5 11326
ad6254c5 11327fi
7a197a62 11328
d0191583 11329################################################################################
ec6a6fbe
AK
11330{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11331$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11332
11333# Check whether --with-mirrors was given.
11334if test "${with_mirrors+set}" = set; then
71082be4 11335 withval=$with_mirrors; MIRRORS=$withval
d0191583 11336else
71082be4 11337 MIRRORS=internal
ad6254c5 11338fi
ad6254c5 11339
ec6a6fbe
AK
11340{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11341$as_echo "$MIRRORS" >&6; }
ad6254c5 11342
d0191583 11343if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11344 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11345" >&5
ec6a6fbe 11346$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11347" >&2;}
11348 { (exit 1); exit 1; }; }
11349fi;
ad6254c5 11350
d0191583 11351if test x$MIRRORS = xinternal; then
ad6254c5 11352
d0191583
JM
11353cat >>confdefs.h <<\_ACEOF
11354#define MIRRORED_INTERNAL 1
ad6254c5 11355_ACEOF
8a2fc586 11356
d0191583 11357fi
8a2fc586 11358
8fea97b7
ZK
11359################################################################################
11360{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11361$as_echo_n "checking whether to include replicators... " >&6; }
11362
11363# Check whether --with-replicators was given.
11364if test "${with_replicators+set}" = set; then
11365 withval=$with_replicators; REPLICATORS=$withval
11366else
71082be4 11367 REPLICATORS=none
8fea97b7
ZK
11368fi
11369
11370{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11371$as_echo "$REPLICATORS" >&6; }
11372
11373case "$REPLICATORS" in
11374 none|shared) ;;
11375 internal)
11376cat >>confdefs.h <<\_ACEOF
11377#define REPLICATOR_INTERNAL 1
11378_ACEOF
11379 ;;
11380 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11381$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11382 { (exit 1); exit 1; }; } ;;
11383esac
11384
d0191583 11385################################################################################
ec6a6fbe
AK
11386{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11387$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11388# Check whether --enable-readline was given.
11389if test "${enable_readline+set}" = set; then
11390 enableval=$enable_readline; READLINE=$enableval
11391else
06e459df 11392 READLINE=maybe
d0191583 11393fi
8a2fc586 11394
ec6a6fbe
AK
11395{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11396$as_echo "$READLINE" >&6; }
8a2fc586 11397
d0191583 11398################################################################################
ec6a6fbe
AK
11399{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11400$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11401# Check whether --enable-realtime was given.
11402if test "${enable_realtime+set}" = set; then
11403 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11404fi
ad6254c5 11405
ec6a6fbe
AK
11406{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11407$as_echo "$REALTIME" >&6; }
d0191583
JM
11408
11409################################################################################
90c80887 11410pkg_config_init() {
e2997b73
AK
11411
11412
11413if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11414 if test -n "$ac_tool_prefix"; then
11415 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11416set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
11419if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11420 $as_echo_n "(cached) " >&6
11421else
11422 case $PKG_CONFIG in
11423 [\\/]* | ?:[\\/]*)
11424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11425 ;;
11426 *)
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438done
11439done
11440IFS=$as_save_IFS
11441
11442 ;;
11443esac
11444fi
11445PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11446if test -n "$PKG_CONFIG"; then
11447 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11448$as_echo "$PKG_CONFIG" >&6; }
11449else
11450 { $as_echo "$as_me:$LINENO: result: no" >&5
11451$as_echo "no" >&6; }
11452fi
11453
11454
11455fi
11456if test -z "$ac_cv_path_PKG_CONFIG"; then
11457 ac_pt_PKG_CONFIG=$PKG_CONFIG
11458 # Extract the first word of "pkg-config", so it can be a program name with args.
11459set dummy pkg-config; ac_word=$2
11460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11461$as_echo_n "checking for $ac_word... " >&6; }
11462if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11463 $as_echo_n "(cached) " >&6
11464else
11465 case $ac_pt_PKG_CONFIG in
11466 [\\/]* | ?:[\\/]*)
11467 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11468 ;;
11469 *)
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11480 fi
11481done
11482done
11483IFS=$as_save_IFS
11484
11485 ;;
11486esac
11487fi
11488ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11489if test -n "$ac_pt_PKG_CONFIG"; then
11490 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11491$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11492else
11493 { $as_echo "$as_me:$LINENO: result: no" >&5
11494$as_echo "no" >&6; }
11495fi
11496
11497 if test "x$ac_pt_PKG_CONFIG" = x; then
11498 PKG_CONFIG=""
11499 else
11500 case $cross_compiling:$ac_tool_warned in
11501yes:)
11502{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11504ac_tool_warned=yes ;;
11505esac
11506 PKG_CONFIG=$ac_pt_PKG_CONFIG
11507 fi
11508else
11509 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11510fi
11511
11512fi
11513if test -n "$PKG_CONFIG"; then
11514 _pkg_min_version=0.9.0
11515 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11516$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11517 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11518 { $as_echo "$as_me:$LINENO: result: yes" >&5
11519$as_echo "yes" >&6; }
11520 else
11521 { $as_echo "$as_me:$LINENO: result: no" >&5
11522$as_echo "no" >&6; }
11523 PKG_CONFIG=""
11524 fi
8c4e8a18 11525
e2997b73
AK
11526fi
11527
11528pkg_failed=no
a946372e
AK
11529{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11530$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11531
a946372e
AK
11532if test -n "$PKGCONFIGINIT_CFLAGS"; then
11533 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11534 elif test -n "$PKG_CONFIG"; then
11535 if test -n "$PKG_CONFIG" && \
a946372e
AK
11536 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11537 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11538 ac_status=$?
11539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; then
a946372e 11541 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11542else
11543 pkg_failed=yes
11544fi
11545 else
11546 pkg_failed=untried
11547fi
a946372e
AK
11548if test -n "$PKGCONFIGINIT_LIBS"; then
11549 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11550 elif test -n "$PKG_CONFIG"; then
11551 if test -n "$PKG_CONFIG" && \
a946372e
AK
11552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11553 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11554 ac_status=$?
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; then
a946372e 11557 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11558else
11559 pkg_failed=yes
11560fi
11561 else
11562 pkg_failed=untried
11563fi
11564
11565
11566
11567if test $pkg_failed = yes; then
11568
11569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11570 _pkg_short_errors_supported=yes
11571else
11572 _pkg_short_errors_supported=no
11573fi
11574 if test $_pkg_short_errors_supported = yes; then
a946372e 11575 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11576 else
a946372e 11577 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11578 fi
11579 # Put the nasty error message in config.log where it belongs
a946372e 11580 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11581
8c4e8a18
FDN
11582 { $as_echo "$as_me:$LINENO: result: no" >&5
11583$as_echo "no" >&6; }
11584 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11585$as_echo "pkg-config initialized" >&6; }
e2997b73 11586elif test $pkg_failed = untried; then
a946372e
AK
11587 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11588$as_echo "pkg-config initialized" >&6; }
e2997b73 11589else
a946372e
AK
11590 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11591 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11592 { $as_echo "$as_me:$LINENO: result: yes" >&5
11593$as_echo "yes" >&6; }
8c4e8a18 11594 :
e2997b73 11595fi
90c80887
AK
11596 PKGCONFIG_INIT=1
11597}
11598
11599################################################################################
11600{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11601$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11602
11603# Check whether --with-clvmd was given.
11604if test "${with_clvmd+set}" = set; then
71082be4 11605 withval=$with_clvmd; CLVMD=$withval
90c80887 11606else
71082be4 11607 CLVMD=none
90c80887
AK
11608fi
11609
11610if test x$CLVMD = xyes; then
11611 CLVMD=all
11612fi
11613{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11614$as_echo "$CLVMD" >&6; }
11615
11616if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11617 CLUSTER=internal
11618fi
11619
11620if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11621 pkg_config_init
11622fi
11623
11624
11625if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11626 BUILDGULM=yes
11627fi
11628if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11629 BUILDCOROSYNC=yes
11630fi
11631if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11632 BUILDOPENAIS=yes
11633fi
11634if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11635 BUILDCMAN=yes
11636fi
11637
11638if test x$BUILDGULM = xyes; then
11639 if test x$BUILDCOROSYNC = xyes || \
11640 test x$BUILDOPENAIS = xyes; then
11641 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11642$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11643 { (exit 1); exit 1; }; }
11644 fi
a946372e 11645fi
e2997b73 11646
a946372e
AK
11647soft_bailout() {
11648 NOTFOUND=1
11649}
e2997b73 11650
a946372e
AK
11651hard_bailout() {
11652 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11653$as_echo "$as_me: error: bailing out" >&2;}
11654 { (exit 1); exit 1; }; }
11655}
11656
11657if test x$CLVMD = xall; then
11658 bailout=soft_bailout
11659 BUILDGULM=yes
11660 BUILDCMAN=yes
11661 BUILDCOROSYNC=yes
11662 BUILDOPENAIS=yes
e2997b73 11663else
a946372e 11664 bailout=hard_bailout
e2997b73 11665fi
a946372e
AK
11666
11667check_lib_no_libs() {
11668 lib_no_libs_arg1=$1
11669 shift
11670 lib_no_libs_arg2=$1
11671 shift
11672 lib_no_libs_args=$@
11673
11674as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11675{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11676$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11677if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11678 $as_echo_n "(cached) " >&6
11679else
11680 ac_check_lib_save_LIBS=$LIBS
11681LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11682cat >conftest.$ac_ext <<_ACEOF
11683/* confdefs.h. */
11684_ACEOF
11685cat confdefs.h >>conftest.$ac_ext
11686cat >>conftest.$ac_ext <<_ACEOF
11687/* end confdefs.h. */
11688
11689/* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692#ifdef __cplusplus
11693extern "C"
11694#endif
11695char $lib_no_libs_arg2 ();
11696int
11697main ()
11698{
11699return $lib_no_libs_arg2 ();
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
11705if { (ac_try="$ac_link"
11706case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11711$as_echo "$ac_try_echo") >&5
11712 (eval "$ac_link") 2>conftest.er1
e2997b73 11713 ac_status=$?
a946372e
AK
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
e2997b73 11717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest$ac_exeext && {
11722 test "$cross_compiling" = yes ||
11723 $as_test_x conftest$ac_exeext
11724 }; then
11725 eval "$as_ac_Lib=yes"
e2997b73 11726else
a946372e
AK
11727 $as_echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11729
a946372e
AK
11730 eval "$as_ac_Lib=no"
11731fi
e2997b73 11732
a946372e
AK
11733rm -rf conftest.dSYM
11734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11735 conftest$ac_exeext conftest.$ac_ext
11736LIBS=$ac_check_lib_save_LIBS
11737fi
11738ac_res=`eval 'as_val=${'$as_ac_Lib'}
11739 $as_echo "$as_val"'`
11740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11741$as_echo "$ac_res" >&6; }
11742as_val=`eval 'as_val=${'$as_ac_Lib'}
11743 $as_echo "$as_val"'`
11744 if test "x$as_val" = x""yes; then
11745 cat >>confdefs.h <<_ACEOF
11746#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11747_ACEOF
e2997b73 11748
a946372e 11749 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11750
e2997b73 11751else
a946372e 11752 $bailout
e2997b73 11753fi
e2997b73 11754
a946372e
AK
11755 LIBS=$ac_check_lib_save_LIBS
11756}
11757
11758if test x$BUILDGULM = xyes; then
e2997b73
AK
11759
11760pkg_failed=no
a946372e
AK
11761{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11762$as_echo_n "checking for CCS... " >&6; }
e2997b73 11763
a946372e
AK
11764if test -n "$CCS_CFLAGS"; then
11765 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11766 elif test -n "$PKG_CONFIG"; then
11767 if test -n "$PKG_CONFIG" && \
a946372e
AK
11768 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11769 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11770 ac_status=$?
11771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; then
a946372e 11773 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11774else
11775 pkg_failed=yes
11776fi
11777 else
11778 pkg_failed=untried
11779fi
a946372e
AK
11780if test -n "$CCS_LIBS"; then
11781 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11782 elif test -n "$PKG_CONFIG"; then
11783 if test -n "$PKG_CONFIG" && \
a946372e
AK
11784 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11785 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11786 ac_status=$?
11787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; then
a946372e 11789 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11790else
11791 pkg_failed=yes
11792fi
11793 else
11794 pkg_failed=untried
11795fi
11796
11797
11798
11799if test $pkg_failed = yes; then
11800
11801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11802 _pkg_short_errors_supported=yes
11803else
11804 _pkg_short_errors_supported=no
11805fi
11806 if test $_pkg_short_errors_supported = yes; then
a946372e 11807 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11808 else
a946372e 11809 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11810 fi
11811 # Put the nasty error message in config.log where it belongs
a946372e 11812 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11813
8c4e8a18
FDN
11814 { $as_echo "$as_me:$LINENO: result: no" >&5
11815$as_echo "no" >&6; }
11816 NOTFOUND=0
e2997b73 11817
a946372e
AK
11818for ac_header in ccs.h
11819do
11820as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11823$as_echo_n "checking for $ac_header... " >&6; }
11824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11825 $as_echo_n "(cached) " >&6
d0191583 11826fi
a946372e
AK
11827ac_res=`eval 'as_val=${'$as_ac_Header'}
11828 $as_echo "$as_val"'`
11829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11830$as_echo "$ac_res" >&6; }
fc54be10 11831else
a946372e
AK
11832 # Is the header compilable?
11833{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11834$as_echo_n "checking $ac_header usability... " >&6; }
11835cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841$ac_includes_default
11842#include <$ac_header>
11843_ACEOF
11844rm -f conftest.$ac_objext
11845if { (ac_try="$ac_compile"
11846case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11851$as_echo "$ac_try_echo") >&5
11852 (eval "$ac_compile") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest.$ac_objext; then
11862 ac_header_compiler=yes
11863else
11864 $as_echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11866
a946372e 11867 ac_header_compiler=no
d0191583
JM
11868fi
11869
a946372e
AK
11870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11872$as_echo "$ac_header_compiler" >&6; }
fddafd51 11873
a946372e
AK
11874# Is the header present?
11875{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11876$as_echo_n "checking $ac_header presence... " >&6; }
11877cat >conftest.$ac_ext <<_ACEOF
11878/* confdefs.h. */
11879_ACEOF
11880cat confdefs.h >>conftest.$ac_ext
11881cat >>conftest.$ac_ext <<_ACEOF
11882/* end confdefs.h. */
11883#include <$ac_header>
11884_ACEOF
11885if { (ac_try="$ac_cpp conftest.$ac_ext"
11886case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889esac
11890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11891$as_echo "$ac_try_echo") >&5
11892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } >/dev/null && {
11899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 }; then
11902 ac_header_preproc=yes
11903else
11904 $as_echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 ac_header_preproc=no
11908fi
11909
11910rm -f conftest.err conftest.$ac_ext
11911{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11912$as_echo "$ac_header_preproc" >&6; }
11913
11914# So? What about this header?
11915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11916 yes:no: )
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11918$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11920$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11921 ac_header_preproc=yes
11922 ;;
11923 no:yes:* )
11924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11925$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11927$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11929$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11931$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11933$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11935$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11936
11937 ;;
11938esac
11939{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11940$as_echo_n "checking for $ac_header... " >&6; }
11941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942 $as_echo_n "(cached) " >&6
11943else
11944 eval "$as_ac_Header=\$ac_header_preproc"
11945fi
11946ac_res=`eval 'as_val=${'$as_ac_Header'}
11947 $as_echo "$as_val"'`
11948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11949$as_echo "$ac_res" >&6; }
11950
11951fi
11952as_val=`eval 'as_val=${'$as_ac_Header'}
11953 $as_echo "$as_val"'`
11954 if test "x$as_val" = x""yes; then
11955 cat >>confdefs.h <<_ACEOF
11956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11957_ACEOF
11958
11959else
11960 $bailout
11961fi
11962
11963done
11964
11965 check_lib_no_libs ccs ccs_connect
11966 if test $NOTFOUND = 0; then
11967 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11968$as_echo "no pkg for libccs, using -lccs" >&6; }
11969 CCS_LIBS="-lccs"
11970 HAVE_CCS=yes
11971 fi
11972elif test $pkg_failed = untried; then
11973 NOTFOUND=0
11974
11975for ac_header in ccs.h
11976do
11977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11980$as_echo_n "checking for $ac_header... " >&6; }
11981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982 $as_echo_n "(cached) " >&6
11983fi
11984ac_res=`eval 'as_val=${'$as_ac_Header'}
11985 $as_echo "$as_val"'`
11986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11987$as_echo "$ac_res" >&6; }
11988else
11989 # Is the header compilable?
11990{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11991$as_echo_n "checking $ac_header usability... " >&6; }
11992cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998$ac_includes_default
11999#include <$ac_header>
12000_ACEOF
12001rm -f conftest.$ac_objext
12002if { (ac_try="$ac_compile"
12003case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12008$as_echo "$ac_try_echo") >&5
12009 (eval "$ac_compile") 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && {
12016 test -z "$ac_c_werror_flag" ||
12017 test ! -s conftest.err
12018 } && test -s conftest.$ac_objext; then
12019 ac_header_compiler=yes
12020else
12021 $as_echo "$as_me: failed program was:" >&5
12022sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 ac_header_compiler=no
12025fi
12026
12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029$as_echo "$ac_header_compiler" >&6; }
12030
12031# Is the header present?
12032{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12033$as_echo_n "checking $ac_header presence... " >&6; }
12034cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
12040#include <$ac_header>
12041_ACEOF
12042if { (ac_try="$ac_cpp conftest.$ac_ext"
12043case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12048$as_echo "$ac_try_echo") >&5
12049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } >/dev/null && {
12056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 }; then
12059 ac_header_preproc=yes
12060else
12061 $as_echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_header_preproc=no
12065fi
12066
12067rm -f conftest.err conftest.$ac_ext
12068{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12069$as_echo "$ac_header_preproc" >&6; }
12070
12071# So? What about this header?
12072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12073 yes:no: )
12074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12075$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12077$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12078 ac_header_preproc=yes
12079 ;;
12080 no:yes:* )
12081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12082$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12084$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12086$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12088$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12090$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12092$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12093
12094 ;;
12095esac
12096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12097$as_echo_n "checking for $ac_header... " >&6; }
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 $as_echo_n "(cached) " >&6
12100else
12101 eval "$as_ac_Header=\$ac_header_preproc"
12102fi
12103ac_res=`eval 'as_val=${'$as_ac_Header'}
12104 $as_echo "$as_val"'`
12105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12106$as_echo "$ac_res" >&6; }
12107
12108fi
12109as_val=`eval 'as_val=${'$as_ac_Header'}
12110 $as_echo "$as_val"'`
12111 if test "x$as_val" = x""yes; then
12112 cat >>confdefs.h <<_ACEOF
12113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114_ACEOF
12115
12116else
12117 $bailout
12118fi
12119
12120done
12121
12122 check_lib_no_libs ccs ccs_connect
12123 if test $NOTFOUND = 0; then
12124 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12125$as_echo "no pkg for libccs, using -lccs" >&6; }
12126 CCS_LIBS="-lccs"
12127 HAVE_CCS=yes
12128 fi
12129else
12130 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12131 CCS_LIBS=$pkg_cv_CCS_LIBS
12132 { $as_echo "$as_me:$LINENO: result: yes" >&5
12133$as_echo "yes" >&6; }
12134 HAVE_CCS=yes
12135fi
12136
12137pkg_failed=no
12138{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12139$as_echo_n "checking for GULM... " >&6; }
12140
12141if test -n "$GULM_CFLAGS"; then
12142 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12143 elif test -n "$PKG_CONFIG"; then
12144 if test -n "$PKG_CONFIG" && \
12145 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12146 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12147 ac_status=$?
12148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; then
12150 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12151else
12152 pkg_failed=yes
12153fi
12154 else
12155 pkg_failed=untried
12156fi
12157if test -n "$GULM_LIBS"; then
12158 pkg_cv_GULM_LIBS="$GULM_LIBS"
12159 elif test -n "$PKG_CONFIG"; then
12160 if test -n "$PKG_CONFIG" && \
12161 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12162 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12163 ac_status=$?
12164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; then
12166 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12167else
12168 pkg_failed=yes
12169fi
12170 else
12171 pkg_failed=untried
12172fi
12173
12174
12175
12176if test $pkg_failed = yes; then
12177
12178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12179 _pkg_short_errors_supported=yes
12180else
12181 _pkg_short_errors_supported=no
12182fi
12183 if test $_pkg_short_errors_supported = yes; then
12184 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12185 else
12186 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12187 fi
12188 # Put the nasty error message in config.log where it belongs
12189 echo "$GULM_PKG_ERRORS" >&5
12190
8c4e8a18
FDN
12191 { $as_echo "$as_me:$LINENO: result: no" >&5
12192$as_echo "no" >&6; }
12193 NOTFOUND=0
a946372e
AK
12194
12195for ac_header in libgulm.h
12196do
12197as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12200$as_echo_n "checking for $ac_header... " >&6; }
12201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12202 $as_echo_n "(cached) " >&6
12203fi
12204ac_res=`eval 'as_val=${'$as_ac_Header'}
12205 $as_echo "$as_val"'`
12206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12207$as_echo "$ac_res" >&6; }
12208else
12209 # Is the header compilable?
12210{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12211$as_echo_n "checking $ac_header usability... " >&6; }
12212cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218$ac_includes_default
12219#include <$ac_header>
12220_ACEOF
12221rm -f conftest.$ac_objext
12222if { (ac_try="$ac_compile"
12223case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226esac
12227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228$as_echo "$ac_try_echo") >&5
12229 (eval "$ac_compile") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } && {
12236 test -z "$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 } && test -s conftest.$ac_objext; then
12239 ac_header_compiler=yes
12240else
12241 $as_echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_header_compiler=no
12245fi
12246
12247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12249$as_echo "$ac_header_compiler" >&6; }
12250
12251# Is the header present?
12252{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12253$as_echo_n "checking $ac_header presence... " >&6; }
12254cat >conftest.$ac_ext <<_ACEOF
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
12260#include <$ac_header>
12261_ACEOF
12262if { (ac_try="$ac_cpp conftest.$ac_ext"
12263case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266esac
12267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268$as_echo "$ac_try_echo") >&5
12269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } >/dev/null && {
12276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 }; then
12279 ac_header_preproc=yes
12280else
12281 $as_echo "$as_me: failed program was:" >&5
12282sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_header_preproc=no
12285fi
12286
12287rm -f conftest.err conftest.$ac_ext
12288{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12289$as_echo "$ac_header_preproc" >&6; }
12290
12291# So? What about this header?
12292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12293 yes:no: )
12294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12295$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12297$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12298 ac_header_preproc=yes
12299 ;;
12300 no:yes:* )
12301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12302$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12304$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12306$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12308$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12310$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12312$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12313
12314 ;;
12315esac
12316{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12317$as_echo_n "checking for $ac_header... " >&6; }
12318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319 $as_echo_n "(cached) " >&6
12320else
12321 eval "$as_ac_Header=\$ac_header_preproc"
12322fi
12323ac_res=`eval 'as_val=${'$as_ac_Header'}
12324 $as_echo "$as_val"'`
12325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12326$as_echo "$ac_res" >&6; }
12327
12328fi
12329as_val=`eval 'as_val=${'$as_ac_Header'}
12330 $as_echo "$as_val"'`
12331 if test "x$as_val" = x""yes; then
12332 cat >>confdefs.h <<_ACEOF
12333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12334_ACEOF
12335
12336else
12337 $bailout
12338fi
12339
12340done
12341
12342 check_lib_no_libs gulm lg_core_login
12343 if test $NOTFOUND = 0; then
12344 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12345$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12346 GULM_LIBS="-lgulm"
12347 HAVE_GULM=yes
12348 fi
12349elif test $pkg_failed = untried; then
12350 NOTFOUND=0
12351
12352for ac_header in libgulm.h
12353do
12354as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12357$as_echo_n "checking for $ac_header... " >&6; }
12358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12359 $as_echo_n "(cached) " >&6
12360fi
12361ac_res=`eval 'as_val=${'$as_ac_Header'}
12362 $as_echo "$as_val"'`
12363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12364$as_echo "$ac_res" >&6; }
12365else
12366 # Is the header compilable?
12367{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368$as_echo_n "checking $ac_header usability... " >&6; }
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375$ac_includes_default
12376#include <$ac_header>
12377_ACEOF
12378rm -f conftest.$ac_objext
12379if { (ac_try="$ac_compile"
12380case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12385$as_echo "$ac_try_echo") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && {
12393 test -z "$ac_c_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest.$ac_objext; then
12396 ac_header_compiler=yes
12397else
12398 $as_echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_header_compiler=no
12402fi
12403
12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406$as_echo "$ac_header_compiler" >&6; }
12407
12408# Is the header present?
12409{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410$as_echo_n "checking $ac_header presence... " >&6; }
12411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417#include <$ac_header>
12418_ACEOF
12419if { (ac_try="$ac_cpp conftest.$ac_ext"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12425$as_echo "$ac_try_echo") >&5
12426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } >/dev/null && {
12433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 }; then
12436 ac_header_preproc=yes
12437else
12438 $as_echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_header_preproc=no
12442fi
12443
12444rm -f conftest.err conftest.$ac_ext
12445{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446$as_echo "$ac_header_preproc" >&6; }
12447
12448# So? What about this header?
12449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 yes:no: )
12451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc=yes
12456 ;;
12457 no:yes:* )
12458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470
12471 ;;
12472esac
12473{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12474$as_echo_n "checking for $ac_header... " >&6; }
12475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12476 $as_echo_n "(cached) " >&6
12477else
12478 eval "$as_ac_Header=\$ac_header_preproc"
12479fi
12480ac_res=`eval 'as_val=${'$as_ac_Header'}
12481 $as_echo "$as_val"'`
12482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12483$as_echo "$ac_res" >&6; }
12484
12485fi
12486as_val=`eval 'as_val=${'$as_ac_Header'}
12487 $as_echo "$as_val"'`
12488 if test "x$as_val" = x""yes; then
12489 cat >>confdefs.h <<_ACEOF
12490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12491_ACEOF
12492
12493else
12494 $bailout
12495fi
12496
12497done
12498
12499 check_lib_no_libs gulm lg_core_login
12500 if test $NOTFOUND = 0; then
12501 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12502$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12503 GULM_LIBS="-lgulm"
12504 HAVE_GULM=yes
12505 fi
12506else
12507 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12508 GULM_LIBS=$pkg_cv_GULM_LIBS
12509 { $as_echo "$as_me:$LINENO: result: yes" >&5
12510$as_echo "yes" >&6; }
12511 HAVE_GULM=yes
12512fi
12513fi
12514
12515if test x$BUILDCMAN = xyes; then
12516
12517pkg_failed=no
12518{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12519$as_echo_n "checking for CMAN... " >&6; }
12520
12521if test -n "$CMAN_CFLAGS"; then
12522 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12523 elif test -n "$PKG_CONFIG"; then
12524 if test -n "$PKG_CONFIG" && \
12525 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12526 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12527 ac_status=$?
12528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; then
12530 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12531else
12532 pkg_failed=yes
12533fi
12534 else
12535 pkg_failed=untried
12536fi
12537if test -n "$CMAN_LIBS"; then
12538 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12539 elif test -n "$PKG_CONFIG"; then
12540 if test -n "$PKG_CONFIG" && \
12541 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12542 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12543 ac_status=$?
12544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; then
12546 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12547else
12548 pkg_failed=yes
12549fi
12550 else
12551 pkg_failed=untried
12552fi
12553
12554
12555
12556if test $pkg_failed = yes; then
12557
12558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12559 _pkg_short_errors_supported=yes
12560else
12561 _pkg_short_errors_supported=no
12562fi
12563 if test $_pkg_short_errors_supported = yes; then
12564 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12565 else
12566 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12567 fi
12568 # Put the nasty error message in config.log where it belongs
12569 echo "$CMAN_PKG_ERRORS" >&5
12570
8c4e8a18
FDN
12571 { $as_echo "$as_me:$LINENO: result: no" >&5
12572$as_echo "no" >&6; }
12573 NOTFOUND=0
a946372e
AK
12574
12575for ac_header in libcman.h
12576do
12577as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12580$as_echo_n "checking for $ac_header... " >&6; }
12581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12582 $as_echo_n "(cached) " >&6
12583fi
12584ac_res=`eval 'as_val=${'$as_ac_Header'}
12585 $as_echo "$as_val"'`
12586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12587$as_echo "$ac_res" >&6; }
12588else
12589 # Is the header compilable?
12590{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12591$as_echo_n "checking $ac_header usability... " >&6; }
12592cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h. */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h. */
12598$ac_includes_default
12599#include <$ac_header>
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (ac_try="$ac_compile"
12603case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608$as_echo "$ac_try_echo") >&5
12609 (eval "$ac_compile") 2>conftest.er1
12610 ac_status=$?
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest.$ac_objext; then
12619 ac_header_compiler=yes
12620else
12621 $as_echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 ac_header_compiler=no
12625fi
12626
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12629$as_echo "$ac_header_compiler" >&6; }
12630
12631# Is the header present?
12632{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12633$as_echo_n "checking $ac_header presence... " >&6; }
12634cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h. */
12640#include <$ac_header>
12641_ACEOF
12642if { (ac_try="$ac_cpp conftest.$ac_ext"
12643case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646esac
12647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648$as_echo "$ac_try_echo") >&5
12649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev/null && {
12656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 }; then
12659 ac_header_preproc=yes
12660else
12661 $as_echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 ac_header_preproc=no
12665fi
12666
12667rm -f conftest.err conftest.$ac_ext
12668{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669$as_echo "$ac_header_preproc" >&6; }
12670
12671# So? What about this header?
12672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12673 yes:no: )
12674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12675$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12677$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12678 ac_header_preproc=yes
12679 ;;
12680 no:yes:* )
12681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12682$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12684$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12686$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12688$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12690$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12692$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12693
12694 ;;
12695esac
12696{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12697$as_echo_n "checking for $ac_header... " >&6; }
12698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12699 $as_echo_n "(cached) " >&6
12700else
12701 eval "$as_ac_Header=\$ac_header_preproc"
12702fi
12703ac_res=`eval 'as_val=${'$as_ac_Header'}
12704 $as_echo "$as_val"'`
12705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12706$as_echo "$ac_res" >&6; }
12707
12708fi
12709as_val=`eval 'as_val=${'$as_ac_Header'}
12710 $as_echo "$as_val"'`
12711 if test "x$as_val" = x""yes; then
12712 cat >>confdefs.h <<_ACEOF
12713#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714_ACEOF
12715
12716else
12717 $bailout
12718fi
12719
12720done
12721
12722 check_lib_no_libs cman cman_init
12723 if test $NOTFOUND = 0; then
12724 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12725$as_echo "no pkg for libcman, using -lcman" >&6; }
12726 CMAN_LIBS="-lcman"
12727 HAVE_CMAN=yes
12728 fi
12729elif test $pkg_failed = untried; then
12730 NOTFOUND=0
12731
12732for ac_header in libcman.h
12733do
12734as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12737$as_echo_n "checking for $ac_header... " >&6; }
12738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12739 $as_echo_n "(cached) " >&6
12740fi
12741ac_res=`eval 'as_val=${'$as_ac_Header'}
12742 $as_echo "$as_val"'`
12743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12744$as_echo "$ac_res" >&6; }
12745else
12746 # Is the header compilable?
12747{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12748$as_echo_n "checking $ac_header usability... " >&6; }
12749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h. */
12755$ac_includes_default
12756#include <$ac_header>
12757_ACEOF
12758rm -f conftest.$ac_objext
12759if { (ac_try="$ac_compile"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765$as_echo "$ac_try_echo") >&5
12766 (eval "$ac_compile") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest.$ac_objext; then
12776 ac_header_compiler=yes
12777else
12778 $as_echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 ac_header_compiler=no
12782fi
12783
12784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786$as_echo "$ac_header_compiler" >&6; }
12787
12788# Is the header present?
12789{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790$as_echo_n "checking $ac_header presence... " >&6; }
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797#include <$ac_header>
12798_ACEOF
12799if { (ac_try="$ac_cpp conftest.$ac_ext"
12800case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803esac
12804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12805$as_echo "$ac_try_echo") >&5
12806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null && {
12813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 }; then
12816 ac_header_preproc=yes
12817else
12818 $as_echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ac_header_preproc=no
12822fi
12823
12824rm -f conftest.err conftest.$ac_ext
12825{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12826$as_echo "$ac_header_preproc" >&6; }
12827
12828# So? What about this header?
12829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830 yes:no: )
12831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12832$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12834$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12835 ac_header_preproc=yes
12836 ;;
12837 no:yes:* )
12838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12841$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12843$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12845$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12847$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12849$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12850
12851 ;;
12852esac
12853{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12854$as_echo_n "checking for $ac_header... " >&6; }
12855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12856 $as_echo_n "(cached) " >&6
12857else
12858 eval "$as_ac_Header=\$ac_header_preproc"
12859fi
12860ac_res=`eval 'as_val=${'$as_ac_Header'}
12861 $as_echo "$as_val"'`
12862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12863$as_echo "$ac_res" >&6; }
12864
12865fi
12866as_val=`eval 'as_val=${'$as_ac_Header'}
12867 $as_echo "$as_val"'`
12868 if test "x$as_val" = x""yes; then
12869 cat >>confdefs.h <<_ACEOF
12870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12871_ACEOF
12872
12873else
12874 $bailout
12875fi
12876
12877done
12878
12879 check_lib_no_libs cman cman_init
12880 if test $NOTFOUND = 0; then
12881 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12882$as_echo "no pkg for libcman, using -lcman" >&6; }
12883 CMAN_LIBS="-lcman"
12884 HAVE_CMAN=yes
12885 fi
12886else
12887 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12888 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12889 { $as_echo "$as_me:$LINENO: result: yes" >&5
12890$as_echo "yes" >&6; }
12891 HAVE_CMAN=yes
12892fi
12893 CHECKCONFDB=yes
12894 CHECKDLM=yes
12895fi
12896
12897if test x$BUILDCOROSYNC = xyes || \
12898 test x$BUILDOPENAIS = xyes; then
12899
12900pkg_failed=no
12901{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12902$as_echo_n "checking for COROSYNC... " >&6; }
12903
12904if test -n "$COROSYNC_CFLAGS"; then
12905 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12906 elif test -n "$PKG_CONFIG"; then
12907 if test -n "$PKG_CONFIG" && \
12908 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12909 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12910 ac_status=$?
12911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; then
12913 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12914else
12915 pkg_failed=yes
12916fi
12917 else
12918 pkg_failed=untried
12919fi
12920if test -n "$COROSYNC_LIBS"; then
12921 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12922 elif test -n "$PKG_CONFIG"; then
12923 if test -n "$PKG_CONFIG" && \
12924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12925 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; then
12929 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12930else
12931 pkg_failed=yes
12932fi
12933 else
12934 pkg_failed=untried
12935fi
12936
12937
12938
12939if test $pkg_failed = yes; then
12940
12941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12942 _pkg_short_errors_supported=yes
12943else
12944 _pkg_short_errors_supported=no
12945fi
12946 if test $_pkg_short_errors_supported = yes; then
12947 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12948 else
12949 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12950 fi
12951 # Put the nasty error message in config.log where it belongs
12952 echo "$COROSYNC_PKG_ERRORS" >&5
12953
8c4e8a18 12954 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12955$as_echo "no" >&6; }
8c4e8a18
FDN
12956 $bailout
12957elif test $pkg_failed = untried; then
a946372e
AK
12958 $bailout
12959else
12960 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12961 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12962 { $as_echo "$as_me:$LINENO: result: yes" >&5
12963$as_echo "yes" >&6; }
12964 HAVE_COROSYNC=yes
12965fi
12966 CHECKCONFDB=yes
12967fi
12968
12969if test x$BUILDCOROSYNC = xyes; then
12970
12971pkg_failed=no
12972{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12973$as_echo_n "checking for QUORUM... " >&6; }
12974
12975if test -n "$QUORUM_CFLAGS"; then
12976 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12977 elif test -n "$PKG_CONFIG"; then
12978 if test -n "$PKG_CONFIG" && \
12979 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12980 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12981 ac_status=$?
12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; then
12984 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12985else
12986 pkg_failed=yes
12987fi
12988 else
12989 pkg_failed=untried
12990fi
12991if test -n "$QUORUM_LIBS"; then
12992 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
12993 elif test -n "$PKG_CONFIG"; then
12994 if test -n "$PKG_CONFIG" && \
12995 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12996 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12997 ac_status=$?
12998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; then
13000 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13001else
13002 pkg_failed=yes
13003fi
13004 else
13005 pkg_failed=untried
13006fi
13007
13008
13009
13010if test $pkg_failed = yes; then
13011
13012if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13013 _pkg_short_errors_supported=yes
13014else
13015 _pkg_short_errors_supported=no
13016fi
13017 if test $_pkg_short_errors_supported = yes; then
13018 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13019 else
13020 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13021 fi
13022 # Put the nasty error message in config.log where it belongs
13023 echo "$QUORUM_PKG_ERRORS" >&5
13024
8c4e8a18 13025 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13026$as_echo "no" >&6; }
8c4e8a18
FDN
13027 $bailout
13028elif test $pkg_failed = untried; then
a946372e
AK
13029 $bailout
13030else
13031 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13032 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13033 { $as_echo "$as_me:$LINENO: result: yes" >&5
13034$as_echo "yes" >&6; }
13035 HAVE_QUORUM=yes
13036fi
13037 CHECKCPG=yes
13038 CHECKDLM=yes
13039fi
13040
13041if test x$BUILDOPENAIS = xyes; then
13042
13043pkg_failed=no
13044{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13045$as_echo_n "checking for SALCK... " >&6; }
13046
13047if test -n "$SALCK_CFLAGS"; then
13048 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13049 elif test -n "$PKG_CONFIG"; then
13050 if test -n "$PKG_CONFIG" && \
13051 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13052 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13053 ac_status=$?
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; then
13056 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13057else
13058 pkg_failed=yes
13059fi
13060 else
13061 pkg_failed=untried
13062fi
13063if test -n "$SALCK_LIBS"; then
13064 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13065 elif test -n "$PKG_CONFIG"; then
13066 if test -n "$PKG_CONFIG" && \
13067 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13068 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13069 ac_status=$?
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; then
13072 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13073else
13074 pkg_failed=yes
13075fi
13076 else
13077 pkg_failed=untried
13078fi
13079
13080
13081
13082if test $pkg_failed = yes; then
13083
13084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13085 _pkg_short_errors_supported=yes
13086else
13087 _pkg_short_errors_supported=no
13088fi
13089 if test $_pkg_short_errors_supported = yes; then
13090 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13091 else
13092 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13093 fi
13094 # Put the nasty error message in config.log where it belongs
13095 echo "$SALCK_PKG_ERRORS" >&5
13096
8c4e8a18 13097 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13098$as_echo "no" >&6; }
8c4e8a18
FDN
13099 $bailout
13100elif test $pkg_failed = untried; then
a946372e
AK
13101 $bailout
13102else
13103 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13104 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13105 { $as_echo "$as_me:$LINENO: result: yes" >&5
13106$as_echo "yes" >&6; }
13107 HAVE_SALCK=yes
13108fi
13109 CHECKCPG=yes
13110fi
13111
13112
13113
13114if test x$CHECKCONFDB = xyes; then
13115
13116pkg_failed=no
13117{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13118$as_echo_n "checking for CONFDB... " >&6; }
13119
13120if test -n "$CONFDB_CFLAGS"; then
13121 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13122 elif test -n "$PKG_CONFIG"; then
13123 if test -n "$PKG_CONFIG" && \
13124 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13125 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13126 ac_status=$?
13127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; then
13129 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13130else
13131 pkg_failed=yes
13132fi
13133 else
13134 pkg_failed=untried
13135fi
13136if test -n "$CONFDB_LIBS"; then
13137 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13138 elif test -n "$PKG_CONFIG"; then
13139 if test -n "$PKG_CONFIG" && \
13140 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13141 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; then
13145 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13146else
13147 pkg_failed=yes
13148fi
13149 else
13150 pkg_failed=untried
13151fi
13152
13153
13154
13155if test $pkg_failed = yes; then
13156
13157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13158 _pkg_short_errors_supported=yes
13159else
13160 _pkg_short_errors_supported=no
13161fi
13162 if test $_pkg_short_errors_supported = yes; then
13163 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13164 else
13165 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13166 fi
13167 # Put the nasty error message in config.log where it belongs
13168 echo "$CONFDB_PKG_ERRORS" >&5
13169
8c4e8a18 13170 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13171$as_echo "no" >&6; }
8c4e8a18
FDN
13172 HAVE_CONFDB=no
13173elif test $pkg_failed = untried; then
a946372e
AK
13174 HAVE_CONFDB=no
13175else
13176 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13177 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13178 { $as_echo "$as_me:$LINENO: result: yes" >&5
13179$as_echo "yes" >&6; }
13180 HAVE_CONFDB=yes
13181fi
13182
13183
13184for ac_header in corosync/confdb.h
13185do
13186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13189$as_echo_n "checking for $ac_header... " >&6; }
13190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13191 $as_echo_n "(cached) " >&6
13192fi
13193ac_res=`eval 'as_val=${'$as_ac_Header'}
13194 $as_echo "$as_val"'`
13195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13196$as_echo "$ac_res" >&6; }
13197else
13198 # Is the header compilable?
13199{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13200$as_echo_n "checking $ac_header usability... " >&6; }
13201cat >conftest.$ac_ext <<_ACEOF
13202/* confdefs.h. */
13203_ACEOF
13204cat confdefs.h >>conftest.$ac_ext
13205cat >>conftest.$ac_ext <<_ACEOF
13206/* end confdefs.h. */
13207$ac_includes_default
13208#include <$ac_header>
13209_ACEOF
13210rm -f conftest.$ac_objext
13211if { (ac_try="$ac_compile"
13212case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13217$as_echo "$ac_try_echo") >&5
13218 (eval "$ac_compile") 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest.$ac_objext; then
13228 ac_header_compiler=yes
13229else
13230 $as_echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ac_header_compiler=no
13234fi
13235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238$as_echo "$ac_header_compiler" >&6; }
13239
13240# Is the header present?
13241{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242$as_echo_n "checking $ac_header presence... " >&6; }
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h. */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h. */
13249#include <$ac_header>
13250_ACEOF
13251if { (ac_try="$ac_cpp conftest.$ac_ext"
13252case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257$as_echo "$ac_try_echo") >&5
13258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } >/dev/null && {
13265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 }; then
13268 ac_header_preproc=yes
13269else
13270 $as_echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 ac_header_preproc=no
13274fi
13275
13276rm -f conftest.err conftest.$ac_ext
13277{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278$as_echo "$ac_header_preproc" >&6; }
13279
13280# So? What about this header?
13281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282 yes:no: )
13283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc=yes
13288 ;;
13289 no:yes:* )
13290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13293$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13297$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13302
13303 ;;
13304esac
13305{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13306$as_echo_n "checking for $ac_header... " >&6; }
13307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13308 $as_echo_n "(cached) " >&6
13309else
13310 eval "$as_ac_Header=\$ac_header_preproc"
13311fi
13312ac_res=`eval 'as_val=${'$as_ac_Header'}
13313 $as_echo "$as_val"'`
13314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13315$as_echo "$ac_res" >&6; }
13316
13317fi
13318as_val=`eval 'as_val=${'$as_ac_Header'}
13319 $as_echo "$as_val"'`
13320 if test "x$as_val" = x""yes; then
13321 cat >>confdefs.h <<_ACEOF
13322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323_ACEOF
13324 HAVE_CONFDB_H=yes
13325else
13326 HAVE_CONFDB_H=no
13327fi
13328
13329done
13330
13331
13332 if test x$HAVE_CONFDB != xyes && \
13333 test x$HAVE_CONFDB_H = xyes; then
13334 check_lib_no_libs confdb confdb_initialize
13335 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13336$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13337 CONFDB_LIBS="-lconfdb"
13338 HAVE_CONFDB=yes
13339 fi
13340
13341 if test x$BUILDCOROSYNC = xyes && \
13342 test x$HAVE_CONFDB != xyes &&
13343 test x$CLVMD != xall; then
13344 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13345$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13346 { (exit 1); exit 1; }; }
13347 fi
13348fi
13349
13350if test x$CHECKCPG = xyes; then
13351
13352pkg_failed=no
13353{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13354$as_echo_n "checking for CPG... " >&6; }
13355
13356if test -n "$CPG_CFLAGS"; then
13357 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13358 elif test -n "$PKG_CONFIG"; then
13359 if test -n "$PKG_CONFIG" && \
13360 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13361 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13362 ac_status=$?
13363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; then
13365 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13366else
13367 pkg_failed=yes
13368fi
13369 else
13370 pkg_failed=untried
13371fi
13372if test -n "$CPG_LIBS"; then
13373 pkg_cv_CPG_LIBS="$CPG_LIBS"
13374 elif test -n "$PKG_CONFIG"; then
13375 if test -n "$PKG_CONFIG" && \
13376 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13377 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13378 ac_status=$?
13379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; then
13381 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13382else
13383 pkg_failed=yes
13384fi
13385 else
13386 pkg_failed=untried
13387fi
13388
13389
13390
13391if test $pkg_failed = yes; then
13392
13393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13394 _pkg_short_errors_supported=yes
13395else
13396 _pkg_short_errors_supported=no
13397fi
13398 if test $_pkg_short_errors_supported = yes; then
13399 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13400 else
13401 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13402 fi
13403 # Put the nasty error message in config.log where it belongs
13404 echo "$CPG_PKG_ERRORS" >&5
13405
8c4e8a18 13406 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13407$as_echo "no" >&6; }
8c4e8a18
FDN
13408 $bailout
13409elif test $pkg_failed = untried; then
a946372e
AK
13410 $bailout
13411else
13412 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13413 CPG_LIBS=$pkg_cv_CPG_LIBS
13414 { $as_echo "$as_me:$LINENO: result: yes" >&5
13415$as_echo "yes" >&6; }
13416 HAVE_CPG=yes
13417fi
13418fi
13419
13420if test x$CHECKDLM = xyes; then
13421
13422pkg_failed=no
13423{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13424$as_echo_n "checking for DLM... " >&6; }
13425
13426if test -n "$DLM_CFLAGS"; then
13427 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13428 elif test -n "$PKG_CONFIG"; then
13429 if test -n "$PKG_CONFIG" && \
13430 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13431 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13432 ac_status=$?
13433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; then
13435 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13436else
13437 pkg_failed=yes
13438fi
13439 else
13440 pkg_failed=untried
13441fi
13442if test -n "$DLM_LIBS"; then
13443 pkg_cv_DLM_LIBS="$DLM_LIBS"
13444 elif test -n "$PKG_CONFIG"; then
13445 if test -n "$PKG_CONFIG" && \
13446 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13447 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13448 ac_status=$?
13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; then
13451 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13452else
13453 pkg_failed=yes
13454fi
13455 else
13456 pkg_failed=untried
13457fi
13458
13459
13460
13461if test $pkg_failed = yes; then
13462
13463if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13464 _pkg_short_errors_supported=yes
13465else
13466 _pkg_short_errors_supported=no
13467fi
13468 if test $_pkg_short_errors_supported = yes; then
13469 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13470 else
13471 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13472 fi
13473 # Put the nasty error message in config.log where it belongs
13474 echo "$DLM_PKG_ERRORS" >&5
13475
8c4e8a18
FDN
13476 { $as_echo "$as_me:$LINENO: result: no" >&5
13477$as_echo "no" >&6; }
13478 NOTFOUND=0
a946372e
AK
13479
13480for ac_header in libdlm.h
13481do
13482as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13485$as_echo_n "checking for $ac_header... " >&6; }
13486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13487 $as_echo_n "(cached) " >&6
13488fi
13489ac_res=`eval 'as_val=${'$as_ac_Header'}
13490 $as_echo "$as_val"'`
13491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13492$as_echo "$ac_res" >&6; }
13493else
13494 # Is the header compilable?
13495{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13496$as_echo_n "checking $ac_header usability... " >&6; }
13497cat >conftest.$ac_ext <<_ACEOF
13498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503$ac_includes_default
13504#include <$ac_header>
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (ac_try="$ac_compile"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13513$as_echo "$ac_try_echo") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
13524 ac_header_compiler=yes
13525else
13526 $as_echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_header_compiler=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13534$as_echo "$ac_header_compiler" >&6; }
13535
13536# Is the header present?
13537{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13538$as_echo_n "checking $ac_header presence... " >&6; }
13539cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
13545#include <$ac_header>
13546_ACEOF
13547if { (ac_try="$ac_cpp conftest.$ac_ext"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13553$as_echo "$ac_try_echo") >&5
13554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } >/dev/null && {
13561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13562 test ! -s conftest.err
13563 }; then
13564 ac_header_preproc=yes
13565else
13566 $as_echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_header_preproc=no
13570fi
13571
13572rm -f conftest.err conftest.$ac_ext
13573{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13574$as_echo "$ac_header_preproc" >&6; }
13575
13576# So? What about this header?
13577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13578 yes:no: )
13579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13580$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13582$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13583 ac_header_preproc=yes
13584 ;;
13585 no:yes:* )
13586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13587$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13589$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13591$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13593$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13595$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13597$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13598
13599 ;;
13600esac
13601{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13602$as_echo_n "checking for $ac_header... " >&6; }
13603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13604 $as_echo_n "(cached) " >&6
13605else
13606 eval "$as_ac_Header=\$ac_header_preproc"
13607fi
13608ac_res=`eval 'as_val=${'$as_ac_Header'}
13609 $as_echo "$as_val"'`
13610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13611$as_echo "$ac_res" >&6; }
13612
13613fi
13614as_val=`eval 'as_val=${'$as_ac_Header'}
13615 $as_echo "$as_val"'`
13616 if test "x$as_val" = x""yes; then
13617 cat >>confdefs.h <<_ACEOF
13618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13619_ACEOF
13620
13621else
13622 $bailout
13623fi
13624
13625done
13626
13627 check_lib_no_libs dlm dlm_lock -lpthread
13628 if test $NOTFOUND = 0; then
13629 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13630$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13631 DLM_LIBS="-ldlm -lpthread"
13632 HAVE_DLM=yes
13633 fi
13634elif test $pkg_failed = untried; then
13635 NOTFOUND=0
13636
13637for ac_header in libdlm.h
13638do
13639as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13642$as_echo_n "checking for $ac_header... " >&6; }
13643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 $as_echo_n "(cached) " >&6
13645fi
13646ac_res=`eval 'as_val=${'$as_ac_Header'}
13647 $as_echo "$as_val"'`
13648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13649$as_echo "$ac_res" >&6; }
13650else
13651 # Is the header compilable?
13652{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13653$as_echo_n "checking $ac_header usability... " >&6; }
13654cat >conftest.$ac_ext <<_ACEOF
13655/* confdefs.h. */
13656_ACEOF
13657cat confdefs.h >>conftest.$ac_ext
13658cat >>conftest.$ac_ext <<_ACEOF
13659/* end confdefs.h. */
13660$ac_includes_default
13661#include <$ac_header>
13662_ACEOF
13663rm -f conftest.$ac_objext
13664if { (ac_try="$ac_compile"
13665case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13668esac
13669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13670$as_echo "$ac_try_echo") >&5
13671 (eval "$ac_compile") 2>conftest.er1
13672 ac_status=$?
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
13676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } && {
13678 test -z "$ac_c_werror_flag" ||
13679 test ! -s conftest.err
13680 } && test -s conftest.$ac_objext; then
13681 ac_header_compiler=yes
13682else
13683 $as_echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 ac_header_compiler=no
13687fi
13688
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13691$as_echo "$ac_header_compiler" >&6; }
13692
13693# Is the header present?
13694{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13695$as_echo_n "checking $ac_header presence... " >&6; }
13696cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702#include <$ac_header>
13703_ACEOF
13704if { (ac_try="$ac_cpp conftest.$ac_ext"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13710$as_echo "$ac_try_echo") >&5
13711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } >/dev/null && {
13718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 }; then
13721 ac_header_preproc=yes
13722else
13723 $as_echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ac_header_preproc=no
13727fi
13728
13729rm -f conftest.err conftest.$ac_ext
13730{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13731$as_echo "$ac_header_preproc" >&6; }
13732
13733# So? What about this header?
13734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13735 yes:no: )
13736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13737$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13739$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13740 ac_header_preproc=yes
13741 ;;
13742 no:yes:* )
13743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13744$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13746$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13748$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13750$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13752$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13754$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13755
13756 ;;
13757esac
13758{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13759$as_echo_n "checking for $ac_header... " >&6; }
13760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13761 $as_echo_n "(cached) " >&6
13762else
13763 eval "$as_ac_Header=\$ac_header_preproc"
13764fi
13765ac_res=`eval 'as_val=${'$as_ac_Header'}
13766 $as_echo "$as_val"'`
13767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13768$as_echo "$ac_res" >&6; }
13769
13770fi
13771as_val=`eval 'as_val=${'$as_ac_Header'}
13772 $as_echo "$as_val"'`
13773 if test "x$as_val" = x""yes; then
13774 cat >>confdefs.h <<_ACEOF
13775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13776_ACEOF
13777
13778else
13779 $bailout
13780fi
13781
13782done
13783
13784 check_lib_no_libs dlm dlm_lock -lpthread
13785 if test $NOTFOUND = 0; then
13786 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13787$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13788 DLM_LIBS="-ldlm -lpthread"
13789 HAVE_DLM=yes
13790 fi
13791else
13792 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13793 DLM_LIBS=$pkg_cv_DLM_LIBS
13794 { $as_echo "$as_me:$LINENO: result: yes" >&5
13795$as_echo "yes" >&6; }
13796 HAVE_DLM=yes
13797fi
13798fi
13799
13800if test x$CLVMD = xall; then
8c222979 13801 CLVMD=none
a946372e
AK
13802 if test x$HAVE_CCS = xyes && \
13803 test x$HAVE_GULM = xyes; then
8c222979
FDN
13804 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13805$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13806 CLVMD="$CLVMD,gulm"
a946372e
AK
13807 fi
13808 if test x$HAVE_CMAN = xyes && \
13809 test x$HAVE_DLM = xyes; then
8c222979
FDN
13810 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13811$as_echo "Enabling clvmd cman cluster manager" >&6; }
13812 CLVMD="$CLVMD,cman"
a946372e
AK
13813 fi
13814 if test x$HAVE_COROSYNC = xyes && \
13815 test x$HAVE_QUORUM = xyes && \
13816 test x$HAVE_CPG = xyes && \
13817 test x$HAVE_DLM = xyes && \
13818 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13819 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13820$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13821 CLVMD="$CLVMD,corosync"
a946372e
AK
13822 fi
13823 if test x$HAVE_COROSYNC = xyes && \
13824 test x$HAVE_CPG = xyes && \
13825 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13826 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13827$as_echo "Enabling clvmd openais cluster manager" >&6; }
13828 CLVMD="$CLVMD,openais"
13829 fi
13830 if test x$CLVMD = xnone; then
13831 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13832$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13833 fi
a946372e
AK
13834fi
13835
8c4e8a18
FDN
13836################################################################################
13837if test "x$CLVMD" != xnone; then
13838
13839# Check whether --with-clvmd-pidfile was given.
13840if test "${with_clvmd_pidfile+set}" = set; then
13841 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13842else
13843 CLVMD_PIDFILE="/var/run/clvmd.pid"
13844fi
13845
13846
13847cat >>confdefs.h <<_ACEOF
13848#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13849_ACEOF
13850
13851fi
13852
a946372e 13853################################################################################
66fd4529
AK
13854{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13855$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13856# Check whether --enable-cmirrord was given.
13857if test "${enable_cmirrord+set}" = set; then
13858 enableval=$enable_cmirrord; CMIRRORD=$enableval
13859else
13860 CMIRRORD=no
13861fi
13862
13863{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13864$as_echo "$CMIRRORD" >&6; }
13865
13866BUILD_CMIRRORD=$CMIRRORD
13867
13868################################################################################
66fd4529
AK
13869if test "x$BUILD_CMIRRORD" = xyes; then
13870
13871# Check whether --with-cmirrord-pidfile was given.
13872if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13873 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13874else
71082be4 13875 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13876fi
13877
71082be4
ZK
13878
13879cat >>confdefs.h <<_ACEOF
13880#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13881_ACEOF
13882
66fd4529 13883fi
a946372e 13884
66fd4529
AK
13885################################################################################
13886if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13887 if test x$PKGCONFIG_INIT != x1; then
13888 pkg_config_init
13889 fi
13890
13891pkg_failed=no
13892{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13893$as_echo_n "checking for SACKPT... " >&6; }
13894
13895if test -n "$SACKPT_CFLAGS"; then
13896 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13897 elif test -n "$PKG_CONFIG"; then
13898 if test -n "$PKG_CONFIG" && \
13899 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13900 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; then
13904 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13905else
13906 pkg_failed=yes
13907fi
13908 else
13909 pkg_failed=untried
13910fi
13911if test -n "$SACKPT_LIBS"; then
13912 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13913 elif test -n "$PKG_CONFIG"; then
13914 if test -n "$PKG_CONFIG" && \
13915 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13916 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; then
13920 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13921else
13922 pkg_failed=yes
13923fi
13924 else
13925 pkg_failed=untried
13926fi
13927
13928
13929
13930if test $pkg_failed = yes; then
13931
13932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13933 _pkg_short_errors_supported=yes
13934else
13935 _pkg_short_errors_supported=no
13936fi
13937 if test $_pkg_short_errors_supported = yes; then
13938 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13939 else
13940 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13941 fi
13942 # Put the nasty error message in config.log where it belongs
13943 echo "$SACKPT_PKG_ERRORS" >&5
13944
13945 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13946
13947$SACKPT_PKG_ERRORS
13948
13949Consider adjusting the PKG_CONFIG_PATH environment variable if you
13950installed software in a non-standard prefix.
13951
13952Alternatively, you may set the environment variables SACKPT_CFLAGS
13953and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13954See the pkg-config man page for more details.
13955" >&5
90c80887
AK
13956$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13957
13958$SACKPT_PKG_ERRORS
13959
13960Consider adjusting the PKG_CONFIG_PATH environment variable if you
13961installed software in a non-standard prefix.
13962
13963Alternatively, you may set the environment variables SACKPT_CFLAGS
13964and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13965See the pkg-config man page for more details.
13966" >&2;}
90c80887
AK
13967 { (exit 1); exit 1; }; }
13968elif test $pkg_failed = untried; then
13969 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13971{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13972is in your PATH or set the PKG_CONFIG environment variable to the full
13973path to pkg-config.
13974
13975Alternatively, you may set the environment variables SACKPT_CFLAGS
13976and SACKPT_LIBS to avoid the need to call pkg-config.
13977See the pkg-config man page for more details.
13978
13979To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13980See \`config.log' for more details." >&5
13981$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13982is in your PATH or set the PKG_CONFIG environment variable to the full
13983path to pkg-config.
13984
13985Alternatively, you may set the environment variables SACKPT_CFLAGS
13986and SACKPT_LIBS to avoid the need to call pkg-config.
13987See the pkg-config man page for more details.
13988
13989To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13990See \`config.log' for more details." >&2;}
13991 { (exit 1); exit 1; }; }; }
13992else
13993 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
13994 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
13995 { $as_echo "$as_me:$LINENO: result: yes" >&5
13996$as_echo "yes" >&6; }
8c4e8a18 13997 :
90c80887
AK
13998fi
13999 if test x$HAVE_CPG != xyes; then
a946372e
AK
14000
14001pkg_failed=no
14002{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14003$as_echo_n "checking for CPG... " >&6; }
14004
14005if test -n "$CPG_CFLAGS"; then
14006 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14007 elif test -n "$PKG_CONFIG"; then
14008 if test -n "$PKG_CONFIG" && \
14009 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14010 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14011 ac_status=$?
14012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; then
14014 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14015else
14016 pkg_failed=yes
14017fi
14018 else
14019 pkg_failed=untried
14020fi
14021if test -n "$CPG_LIBS"; then
14022 pkg_cv_CPG_LIBS="$CPG_LIBS"
14023 elif test -n "$PKG_CONFIG"; then
14024 if test -n "$PKG_CONFIG" && \
14025 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14026 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; then
14030 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14031else
14032 pkg_failed=yes
14033fi
14034 else
14035 pkg_failed=untried
14036fi
14037
14038
14039
14040if test $pkg_failed = yes; then
14041
14042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14043 _pkg_short_errors_supported=yes
14044else
14045 _pkg_short_errors_supported=no
14046fi
14047 if test $_pkg_short_errors_supported = yes; then
14048 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14049 else
14050 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14051 fi
14052 # Put the nasty error message in config.log where it belongs
14053 echo "$CPG_PKG_ERRORS" >&5
14054
90c80887
AK
14055 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14056
14057$CPG_PKG_ERRORS
14058
14059Consider adjusting the PKG_CONFIG_PATH environment variable if you
14060installed software in a non-standard prefix.
14061
14062Alternatively, you may set the environment variables CPG_CFLAGS
14063and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14064See the pkg-config man page for more details.
14065" >&5
90c80887
AK
14066$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14067
14068$CPG_PKG_ERRORS
14069
14070Consider adjusting the PKG_CONFIG_PATH environment variable if you
14071installed software in a non-standard prefix.
14072
14073Alternatively, you may set the environment variables CPG_CFLAGS
14074and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14075See the pkg-config man page for more details.
14076" >&2;}
90c80887 14077 { (exit 1); exit 1; }; }
a946372e 14078elif test $pkg_failed = untried; then
90c80887
AK
14079 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14081{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14082is in your PATH or set the PKG_CONFIG environment variable to the full
14083path to pkg-config.
14084
14085Alternatively, you may set the environment variables CPG_CFLAGS
14086and CPG_LIBS to avoid the need to call pkg-config.
14087See the pkg-config man page for more details.
14088
14089To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14090See \`config.log' for more details." >&5
14091$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14092is in your PATH or set the PKG_CONFIG environment variable to the full
14093path to pkg-config.
14094
14095Alternatively, you may set the environment variables CPG_CFLAGS
14096and CPG_LIBS to avoid the need to call pkg-config.
14097See the pkg-config man page for more details.
14098
14099To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14100See \`config.log' for more details." >&2;}
14101 { (exit 1); exit 1; }; }; }
a946372e
AK
14102else
14103 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14104 CPG_LIBS=$pkg_cv_CPG_LIBS
14105 { $as_echo "$as_me:$LINENO: result: yes" >&5
14106$as_echo "yes" >&6; }
8c4e8a18 14107 :
a946372e 14108fi
90c80887 14109 fi
a946372e
AK
14110fi
14111
14112################################################################################
14113{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14114$as_echo_n "checking whether to enable debugging... " >&6; }
14115# Check whether --enable-debug was given.
14116if test "${enable_debug+set}" = set; then
14117 enableval=$enable_debug; DEBUG=$enableval
14118else
14119 DEBUG=no
14120fi
14121
14122{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14123$as_echo "$DEBUG" >&6; }
14124
14125if test x$DEBUG = xyes; then
14126 COPTIMISE_FLAG=
14127else
14128 CSCOPE_CMD=
14129fi
14130
14131################################################################################
14132{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14133$as_echo_n "checking for C optimisation flag... " >&6; }
14134
14135# Check whether --with-optimisation was given.
14136if test "${with_optimisation+set}" = set; then
71082be4 14137 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14138fi
14139
14140{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14141$as_echo "$COPTIMISE_FLAG" >&6; }
14142
14143################################################################################
14144{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14145$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14146# Check whether --enable-profiling was given.
14147if test "${enable_profiling+set}" = set; then
5556819a 14148 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14149else
5556819a 14150 PROFILING=no
fddafd51
ZK
14151fi
14152
ec6a6fbe
AK
14153{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14154$as_echo "$PROFILING" >&6; }
5556819a
AK
14155
14156if test "x$PROFILING" = xyes; then
14157 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14158 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14159set dummy lcov; ac_word=$2
ec6a6fbe
AK
14160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14161$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14162if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14163 $as_echo_n "(cached) " >&6
fddafd51
ZK
14164else
14165 case $LCOV in
14166 [\\/]* | ?:[\\/]*)
14167 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14168 ;;
14169 *)
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171for as_dir in $PATH
14172do
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14179 break 2
14180 fi
14181done
14182done
14183IFS=$as_save_IFS
14184
14185 ;;
14186esac
14187fi
14188LCOV=$ac_cv_path_LCOV
14189if test -n "$LCOV"; then
ec6a6fbe
AK
14190 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14191$as_echo "$LCOV" >&6; }
fddafd51 14192else
ec6a6fbe
AK
14193 { $as_echo "$as_me:$LINENO: result: no" >&5
14194$as_echo "no" >&6; }
fddafd51
ZK
14195fi
14196
14197
5556819a 14198 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14199set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14201$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14202if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14203 $as_echo_n "(cached) " >&6
fddafd51
ZK
14204else
14205 case $GENHTML in
14206 [\\/]* | ?:[\\/]*)
14207 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14208 ;;
14209 *)
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211for as_dir in $PATH
14212do
14213 IFS=$as_save_IFS
14214 test -z "$as_dir" && as_dir=.
14215 for ac_exec_ext in '' $ac_executable_extensions; do
14216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14217 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14219 break 2
14220 fi
14221done
14222done
14223IFS=$as_save_IFS
14224
14225 ;;
14226esac
14227fi
14228GENHTML=$ac_cv_path_GENHTML
14229if test -n "$GENHTML"; then
ec6a6fbe
AK
14230 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14231$as_echo "$GENHTML" >&6; }
fddafd51 14232else
ec6a6fbe
AK
14233 { $as_echo "$as_me:$LINENO: result: no" >&5
14234$as_echo "no" >&6; }
fddafd51
ZK
14235fi
14236
14237
fd4728e1 14238 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14239 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14240$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14241 { (exit 1); exit 1; }; }
14242 fi
fd4728e1
ZK
14243 # Extract the first word of "genpng", so it can be a program name with args.
14244set dummy genpng; ac_word=$2
14245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14246$as_echo_n "checking for $ac_word... " >&6; }
14247if test "${ac_cv_path_GENPNG+set}" = set; then
14248 $as_echo_n "(cached) " >&6
14249else
14250 case $GENPNG in
14251 [\\/]* | ?:[\\/]*)
14252 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14253 ;;
14254 *)
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256for as_dir in $PATH
14257do
14258 IFS=$as_save_IFS
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14262 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 break 2
14265 fi
14266done
14267done
14268IFS=$as_save_IFS
14269
14270 ;;
14271esac
14272fi
14273GENPNG=$ac_cv_path_GENPNG
14274if test -n "$GENPNG"; then
14275 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14276$as_echo "$GENPNG" >&6; }
14277else
14278 { $as_echo "$as_me:$LINENO: result: no" >&5
14279$as_echo "no" >&6; }
14280fi
14281
14282
14283 if test -n "$GENPNG"; then
14284 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14285$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14286 if $GENPNG --help > /dev/null 2>&1 ; then
14287 { $as_echo "$as_me:$LINENO: result: ok" >&5
14288$as_echo "ok" >&6; }
14289 GENHTML="$GENHTML --frames"
14290 else
14291 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14292$as_echo "not supported" >&6; }
14293 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14294$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14295 GENPNG=
14296 fi
14297 fi
5556819a 14298fi
d0191583
JM
14299
14300################################################################################
ec6a6fbe
AK
14301{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14302$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14303# Check whether --enable-devmapper was given.
14304if test "${enable_devmapper+set}" = set; then
14305 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14306fi
14307
ec6a6fbe
AK
14308{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14309$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14310
14311if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14312
14313cat >>confdefs.h <<\_ACEOF
d0191583 14314#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14315_ACEOF
14316
14317fi
14318
a5f46f6a
AK
14319################################################################################
14320{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14321$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14322# Check whether --enable-udev_sync was given.
14323if test "${enable_udev_sync+set}" = set; then
14324 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14325else
14326 UDEV_SYNC=no
14327fi
14328
14329{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14330$as_echo "$UDEV_SYNC" >&6; }
14331
90c80887
AK
14332if test x$UDEV_SYNC = xyes; then
14333 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14334$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14335if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14336 $as_echo_n "(cached) " >&6
14337else
14338 ac_check_lib_save_LIBS=$LIBS
14339LIBS="-ludev $LIBS"
14340cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
14345/* end confdefs.h. */
14346
14347/* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350#ifdef __cplusplus
14351extern "C"
14352#endif
14353char udev_queue_get_udev_is_active ();
14354int
14355main ()
14356{
14357return udev_queue_get_udev_is_active ();
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362rm -f conftest.$ac_objext conftest$ac_exeext
14363if { (ac_try="$ac_link"
14364case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367esac
14368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14369$as_echo "$ac_try_echo") >&5
14370 (eval "$ac_link") 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext && {
14380 test "$cross_compiling" = yes ||
14381 $as_test_x conftest$ac_exeext
14382 }; then
14383 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14384else
14385 $as_echo "$as_me: failed program was:" >&5
14386sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14389fi
14390
14391rm -rf conftest.dSYM
14392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14393 conftest$ac_exeext conftest.$ac_ext
14394LIBS=$ac_check_lib_save_LIBS
14395fi
14396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14397$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14398if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14399 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14400else
5161ecb9
PR
14401 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14402$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14403 { (exit 1); exit 1; }; }
90c80887
AK
14404fi
14405
14406
90c80887 14407cat >>confdefs.h <<\_ACEOF
5161ecb9 14408#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14409_ACEOF
14410
90c80887
AK
14411fi
14412
5161ecb9
PR
14413{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14414$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14415# Check whether --enable-udev_rules was given.
14416if test "${enable_udev_rules+set}" = set; then
14417 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14418else
14419 UDEV_RULES=$UDEV_SYNC
14420fi
14421
14422{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14423$as_echo "$UDEV_RULES" >&6; }
14424
93bd259b
AK
14425################################################################################
14426# Check whether --enable-compat was given.
14427if test "${enable_compat+set}" = set; then
14428 enableval=$enable_compat; DM_COMPAT=$enableval
14429else
14430 DM_COMPAT=no
14431fi
14432
14433
95eaa683
AK
14434################################################################################
14435# Check whether --enable-units-compat was given.
14436if test "${enable_units_compat+set}" = set; then
14437 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14438else
14439 UNITS_COMPAT=no
14440fi
14441
14442
14443if test x$UNITS_COMPAT = xyes; then
14444
14445cat >>confdefs.h <<\_ACEOF
14446#define DEFAULT_SI_UNIT_CONSISTENCY 0
14447_ACEOF
14448
14449fi
14450
93bd259b
AK
14451################################################################################
14452# Check whether --enable-ioctl was given.
14453if test "${enable_ioctl+set}" = set; then
14454 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14455fi
14456
14457
d0191583 14458################################################################################
ec6a6fbe
AK
14459{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14460$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14461# Check whether --enable-o_direct was given.
14462if test "${enable_o_direct+set}" = set; then
14463 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14464fi
ad6254c5 14465
ec6a6fbe
AK
14466{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14467$as_echo "$ODIRECT" >&6; }
ad6254c5 14468
d0191583 14469if test x$ODIRECT = xyes; then
ad6254c5 14470
d0191583
JM
14471cat >>confdefs.h <<\_ACEOF
14472#define O_DIRECT_SUPPORT 1
14473_ACEOF
ad6254c5 14474
d0191583 14475fi
ad6254c5 14476
572fefeb
AK
14477################################################################################
14478{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14479$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14480# Check whether --enable-applib was given.
14481if test "${enable_applib+set}" = set; then
14482 enableval=$enable_applib; APPLIB=$enableval
14483else
14484 APPLIB=no
14485fi
14486
14487{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14488$as_echo "$APPLIB" >&6; }
14489
14490test x$APPLIB = xyes \
14491 && LVM2APP_LIB=-llvm2app \
14492 || LVM2APP_LIB=
14493
d0191583 14494################################################################################
ec6a6fbe
AK
14495{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14496$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14497# Check whether --enable-cmdlib was given.
14498if test "${enable_cmdlib+set}" = set; then
14499 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14500else
d0191583
JM
14501 CMDLIB=no
14502fi
8a2fc586 14503
ec6a6fbe
AK
14504{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14505$as_echo "$CMDLIB" >&6; }
8a2fc586 14506
2a9a80c9 14507test x$CMDLIB = xyes \
d179cc7a
JM
14508 && LVM2CMD_LIB=-llvm2cmd \
14509 || LVM2CMD_LIB=
14510
93bd259b
AK
14511################################################################################
14512# Check whether --enable-pkgconfig was given.
14513if test "${enable_pkgconfig+set}" = set; then
14514 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14515else
14516 PKGCONFIG=no
14517fi
14518
2a9a80c9 14519
23b059e7
ZK
14520################################################################################
14521# Check whether --enable-write_install was given.
14522if test "${enable_write_install+set}" = set; then
14523 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14524else
14525 WRITE_INSTALL=no
14526fi
14527
14528
d0191583 14529################################################################################
ec6a6fbe
AK
14530{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14531$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14532# Check whether --enable-fsadm was given.
14533if test "${enable_fsadm+set}" = set; then
14534 enableval=$enable_fsadm; FSADM=$enableval
14535fi
8a2fc586 14536
ec6a6fbe
AK
14537{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14538$as_echo "$FSADM" >&6; }
8a2fc586 14539
d0191583 14540################################################################################
ec6a6fbe
AK
14541{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14542$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14543# Check whether --enable-dmeventd was given.
14544if test "${enable_dmeventd+set}" = set; then
14545 enableval=$enable_dmeventd; DMEVENTD=$enableval
14546fi
ad6254c5 14547
ec6a6fbe
AK
14548{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14549$as_echo "$DMEVENTD" >&6; }
ad6254c5 14550
93bd259b
AK
14551BUILD_DMEVENTD=$DMEVENTD
14552
2a9a80c9
PR
14553if test x$DMEVENTD = xyes; then
14554 if test x$MIRRORS != xinternal; then
ec6a6fbe 14555 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14556 " >&5
ec6a6fbe 14557$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14558 " >&2;}
d0191583 14559 { (exit 1); exit 1; }; }
2a9a80c9
PR
14560 fi
14561 if test x$CMDLIB = xno; then
ec6a6fbe 14562 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14563 " >&5
ec6a6fbe 14564$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14565 " >&2;}
14566 { (exit 1); exit 1; }; }
14567 fi
ad6254c5 14568fi
7a197a62 14569
d0191583
JM
14570if test x$DMEVENTD = xyes; then
14571
14572cat >>confdefs.h <<\_ACEOF
14573#define DMEVENTD 1
ad6254c5
AK
14574_ACEOF
14575
ad6254c5 14576fi
93bd259b
AK
14577
14578################################################################################
14579
ec6a6fbe
AK
14580{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14581$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14582if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14583 $as_echo_n "(cached) " >&6
93bd259b
AK
14584else
14585 ac_check_lib_save_LIBS=$LIBS
14586LIBS="-lc $LIBS"
14587cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593
14594/* Override any GCC internal prototype to avoid an error.
14595 Use char because int might match the return type of a GCC
14596 builtin and then its argument prototype would still apply. */
14597#ifdef __cplusplus
14598extern "C"
14599#endif
14600char getline ();
14601int
14602main ()
14603{
14604return getline ();
14605 ;
14606 return 0;
14607}
14608_ACEOF
14609rm -f conftest.$ac_objext conftest$ac_exeext
14610if { (ac_try="$ac_link"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
ec6a6fbe
AK
14615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14616$as_echo "$ac_try_echo") >&5
93bd259b
AK
14617 (eval "$ac_link") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
ec6a6fbe 14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
ec6a6fbe
AK
14626 } && test -s conftest$ac_exeext && {
14627 test "$cross_compiling" = yes ||
14628 $as_test_x conftest$ac_exeext
14629 }; then
93bd259b
AK
14630 ac_cv_lib_c_getline=yes
14631else
ec6a6fbe 14632 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 ac_cv_lib_c_getline=no
14636fi
14637
ec6a6fbe 14638rm -rf conftest.dSYM
93bd259b
AK
14639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14640 conftest$ac_exeext conftest.$ac_ext
14641LIBS=$ac_check_lib_save_LIBS
14642fi
ec6a6fbe
AK
14643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14644$as_echo "$ac_cv_lib_c_getline" >&6; }
14645if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14646
14647cat >>confdefs.h <<\_ACEOF
14648#define HAVE_GETLINE 1
14649_ACEOF
14650
14651fi
14652
14653
14654################################################################################
14655
ec6a6fbe
AK
14656{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14657$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14658if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14659 $as_echo_n "(cached) " >&6
93bd259b
AK
14660else
14661 ac_check_lib_save_LIBS=$LIBS
14662LIBS="-lc $LIBS"
14663cat >conftest.$ac_ext <<_ACEOF
14664/* confdefs.h. */
14665_ACEOF
14666cat confdefs.h >>conftest.$ac_ext
14667cat >>conftest.$ac_ext <<_ACEOF
14668/* end confdefs.h. */
14669
14670/* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14673#ifdef __cplusplus
14674extern "C"
14675#endif
14676char canonicalize_file_name ();
14677int
14678main ()
14679{
14680return canonicalize_file_name ();
14681 ;
14682 return 0;
14683}
14684_ACEOF
14685rm -f conftest.$ac_objext conftest$ac_exeext
14686if { (ac_try="$ac_link"
14687case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690esac
ec6a6fbe
AK
14691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14692$as_echo "$ac_try_echo") >&5
93bd259b
AK
14693 (eval "$ac_link") 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
ec6a6fbe 14698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14699 (exit $ac_status); } && {
14700 test -z "$ac_c_werror_flag" ||
14701 test ! -s conftest.err
ec6a6fbe
AK
14702 } && test -s conftest$ac_exeext && {
14703 test "$cross_compiling" = yes ||
14704 $as_test_x conftest$ac_exeext
14705 }; then
93bd259b
AK
14706 ac_cv_lib_c_canonicalize_file_name=yes
14707else
ec6a6fbe 14708 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14709sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ac_cv_lib_c_canonicalize_file_name=no
14712fi
14713
ec6a6fbe 14714rm -rf conftest.dSYM
93bd259b
AK
14715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716 conftest$ac_exeext conftest.$ac_ext
14717LIBS=$ac_check_lib_save_LIBS
14718fi
ec6a6fbe
AK
14719{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14720$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14721if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14722
14723cat >>confdefs.h <<\_ACEOF
14724#define HAVE_CANONICALIZE_FILE_NAME 1
14725_ACEOF
14726
14727fi
14728
14729
d0191583
JM
14730################################################################################
14731if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14732 then exec_prefix="";
14733fi;
ad6254c5 14734
ad6254c5 14735################################################################################
ec6a6fbe
AK
14736{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14737$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14738if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14739 $as_echo_n "(cached) " >&6
ad6254c5
AK
14740else
14741 ac_check_lib_save_LIBS=$LIBS
14742LIBS="-ldl $LIBS"
14743cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749
7a197a62
AK
14750/* Override any GCC internal prototype to avoid an error.
14751 Use char because int might match the return type of a GCC
14752 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14753#ifdef __cplusplus
14754extern "C"
14755#endif
ad6254c5
AK
14756char dlopen ();
14757int
14758main ()
14759{
7a197a62 14760return dlopen ();
ad6254c5
AK
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14766if { (ac_try="$ac_link"
14767case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770esac
ec6a6fbe
AK
14771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772$as_echo "$ac_try_echo") >&5
7a197a62 14773 (eval "$ac_link") 2>conftest.er1
ad6254c5 14774 ac_status=$?
8a2fc586
AK
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
ec6a6fbe 14778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
ec6a6fbe
AK
14782 } && test -s conftest$ac_exeext && {
14783 test "$cross_compiling" = yes ||
14784 $as_test_x conftest$ac_exeext
14785 }; then
ad6254c5
AK
14786 ac_cv_lib_dl_dlopen=yes
14787else
ec6a6fbe 14788 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14789sed 's/^/| /' conftest.$ac_ext >&5
14790
7a197a62 14791 ac_cv_lib_dl_dlopen=no
ad6254c5 14792fi
7a197a62 14793
ec6a6fbe 14794rm -rf conftest.dSYM
25fbec5b 14795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14796 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
14797LIBS=$ac_check_lib_save_LIBS
14798fi
ec6a6fbe
AK
14799{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14800$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14801if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 14802
72b2cb61
AK
14803
14804cat >>confdefs.h <<\_ACEOF
14805#define HAVE_LIBDL 1
14806_ACEOF
14807
19a2c6e0
ZK
14808 DL_LIBS="-ldl"
14809 HAVE_LIBDL=yes
ad6254c5 14810else
19a2c6e0
ZK
14811
14812 DL_LIBS=
ad6254c5
AK
14813 HAVE_LIBDL=no
14814fi
14815
19a2c6e0 14816
ad6254c5
AK
14817################################################################################
14818if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14819 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14820 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 14821 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 14822" >&5
ec6a6fbe 14823$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
14824" >&2;}
14825 { (exit 1); exit 1; }; }
14826fi
14827
f30875db
ZK
14828################################################################################
14829if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14830 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14831$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14832if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14833 $as_echo_n "(cached) " >&6
14834else
14835 ac_check_lib_save_LIBS=$LIBS
14836LIBS="-lpthread $LIBS"
14837cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
14843
14844/* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14847#ifdef __cplusplus
14848extern "C"
14849#endif
14850char pthread_mutex_lock ();
14851int
14852main ()
14853{
14854return pthread_mutex_lock ();
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext conftest$ac_exeext
14860if { (ac_try="$ac_link"
14861case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14866$as_echo "$ac_try_echo") >&5
14867 (eval "$ac_link") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } && {
14874 test -z "$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 } && test -s conftest$ac_exeext && {
14877 test "$cross_compiling" = yes ||
14878 $as_test_x conftest$ac_exeext
14879 }; then
14880 ac_cv_lib_pthread_pthread_mutex_lock=yes
14881else
14882 $as_echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 ac_cv_lib_pthread_pthread_mutex_lock=no
14886fi
14887
14888rm -rf conftest.dSYM
14889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890 conftest$ac_exeext conftest.$ac_ext
14891LIBS=$ac_check_lib_save_LIBS
14892fi
14893{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14894$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14895if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
14896 PTHREAD_LIBS="-lpthread"
14897else
14898 hard_bailout
14899fi
14900
14901fi
14902
d0191583 14903################################################################################
ec6a6fbe
AK
14904{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
14905$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
14906# Check whether --enable-selinux was given.
14907if test "${enable_selinux+set}" = set; then
14908 enableval=$enable_selinux; SELINUX=$enableval
14909fi
14910
ec6a6fbe
AK
14911{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
14912$as_echo "$SELINUX" >&6; }
d0191583 14913
ad6254c5
AK
14914################################################################################
14915if test x$SELINUX = xyes; then
ec6a6fbe
AK
14916 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
14917$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 14918if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 14919 $as_echo_n "(cached) " >&6
8a2fc586
AK
14920else
14921 ac_check_lib_save_LIBS=$LIBS
14922LIBS="-lsepol $LIBS"
14923cat >conftest.$ac_ext <<_ACEOF
14924/* confdefs.h. */
14925_ACEOF
14926cat confdefs.h >>conftest.$ac_ext
14927cat >>conftest.$ac_ext <<_ACEOF
14928/* end confdefs.h. */
14929
7a197a62
AK
14930/* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
8a2fc586
AK
14933#ifdef __cplusplus
14934extern "C"
14935#endif
8a2fc586
AK
14936char sepol_check_context ();
14937int
14938main ()
14939{
7a197a62 14940return sepol_check_context ();
8a2fc586
AK
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14946if { (ac_try="$ac_link"
14947case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950esac
ec6a6fbe
AK
14951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952$as_echo "$ac_try_echo") >&5
7a197a62 14953 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
ec6a6fbe 14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
ec6a6fbe
AK
14962 } && test -s conftest$ac_exeext && {
14963 test "$cross_compiling" = yes ||
14964 $as_test_x conftest$ac_exeext
14965 }; then
8a2fc586
AK
14966 ac_cv_lib_sepol_sepol_check_context=yes
14967else
ec6a6fbe 14968 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
7a197a62 14971 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 14972fi
7a197a62 14973
ec6a6fbe 14974rm -rf conftest.dSYM
25fbec5b 14975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
14976 conftest$ac_exeext conftest.$ac_ext
14977LIBS=$ac_check_lib_save_LIBS
14978fi
ec6a6fbe
AK
14979{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14980$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14981if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 14982
d0191583
JM
14983
14984cat >>confdefs.h <<\_ACEOF
14985#define HAVE_SEPOL 1
14986_ACEOF
14987
f8f6ec92
ZK
14988 SELINUX_LIBS="-lsepol"
14989fi
14990
8a2fc586 14991
ec6a6fbe
AK
14992 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
14993$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 14994if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 14995 $as_echo_n "(cached) " >&6
ad6254c5
AK
14996else
14997 ac_check_lib_save_LIBS=$LIBS
14998LIBS="-lselinux $LIBS"
14999cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005
7a197a62
AK
15006/* Override any GCC internal prototype to avoid an error.
15007 Use char because int might match the return type of a GCC
15008 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15009#ifdef __cplusplus
15010extern "C"
15011#endif
ad6254c5
AK
15012char is_selinux_enabled ();
15013int
15014main ()
15015{
7a197a62 15016return is_selinux_enabled ();
ad6254c5
AK
15017 ;
15018 return 0;
15019}
15020_ACEOF
15021rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15022if { (ac_try="$ac_link"
15023case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026esac
ec6a6fbe
AK
15027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028$as_echo "$ac_try_echo") >&5
7a197a62 15029 (eval "$ac_link") 2>conftest.er1
ad6254c5 15030 ac_status=$?
8a2fc586
AK
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
ec6a6fbe 15034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
ec6a6fbe
AK
15038 } && test -s conftest$ac_exeext && {
15039 test "$cross_compiling" = yes ||
15040 $as_test_x conftest$ac_exeext
15041 }; then
ad6254c5
AK
15042 ac_cv_lib_selinux_is_selinux_enabled=yes
15043else
ec6a6fbe 15044 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15045sed 's/^/| /' conftest.$ac_ext >&5
15046
7a197a62 15047 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15048fi
7a197a62 15049
ec6a6fbe 15050rm -rf conftest.dSYM
25fbec5b 15051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15052 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15053LIBS=$ac_check_lib_save_LIBS
15054fi
ec6a6fbe
AK
15055{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15056$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15057if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15058
72b2cb61 15059
f8f6ec92
ZK
15060for ac_header in selinux/selinux.h
15061do
15062as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15065$as_echo_n "checking for $ac_header... " >&6; }
15066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15067 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15068fi
15069ac_res=`eval 'as_val=${'$as_ac_Header'}
15070 $as_echo "$as_val"'`
15071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15072$as_echo "$ac_res" >&6; }
66e941e8 15073else
f8f6ec92
ZK
15074 # Is the header compilable?
15075{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15076$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15077cat >conftest.$ac_ext <<_ACEOF
15078/* confdefs.h. */
15079_ACEOF
15080cat confdefs.h >>conftest.$ac_ext
15081cat >>conftest.$ac_ext <<_ACEOF
15082/* end confdefs.h. */
f8f6ec92
ZK
15083$ac_includes_default
15084#include <$ac_header>
66e941e8 15085_ACEOF
f8f6ec92
ZK
15086rm -f conftest.$ac_objext
15087if { (ac_try="$ac_compile"
66e941e8
JM
15088case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
ec6a6fbe
AK
15092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093$as_echo "$ac_try_echo") >&5
f8f6ec92 15094 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
ec6a6fbe 15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
f8f6ec92
ZK
15103 } && test -s conftest.$ac_objext; then
15104 ac_header_compiler=yes
15105else
15106 $as_echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
15109 ac_header_compiler=no
15110fi
15111
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114$as_echo "$ac_header_compiler" >&6; }
15115
15116# Is the header present?
15117{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118$as_echo_n "checking $ac_header presence... " >&6; }
15119cat >conftest.$ac_ext <<_ACEOF
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
15125#include <$ac_header>
15126_ACEOF
15127if { (ac_try="$ac_cpp conftest.$ac_ext"
15128case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133$as_echo "$ac_try_echo") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null && {
15141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15142 test ! -s conftest.err
ec6a6fbe 15143 }; then
f8f6ec92 15144 ac_header_preproc=yes
66e941e8 15145else
ec6a6fbe 15146 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15147sed 's/^/| /' conftest.$ac_ext >&5
15148
f8f6ec92
ZK
15149 ac_header_preproc=no
15150fi
15151
15152rm -f conftest.err conftest.$ac_ext
15153{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15154$as_echo "$ac_header_preproc" >&6; }
15155
15156# So? What about this header?
15157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15158 yes:no: )
15159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15160$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15162$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15163 ac_header_preproc=yes
15164 ;;
15165 no:yes:* )
15166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15167$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15169$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15171$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15173$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15175$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15177$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15178
f8f6ec92
ZK
15179 ;;
15180esac
15181{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15182$as_echo_n "checking for $ac_header... " >&6; }
15183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15184 $as_echo_n "(cached) " >&6
15185else
15186 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15187fi
f8f6ec92
ZK
15188ac_res=`eval 'as_val=${'$as_ac_Header'}
15189 $as_echo "$as_val"'`
15190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15191$as_echo "$ac_res" >&6; }
66e941e8 15192
66e941e8 15193fi
f8f6ec92
ZK
15194as_val=`eval 'as_val=${'$as_ac_Header'}
15195 $as_echo "$as_val"'`
15196 if test "x$as_val" = x""yes; then
15197 cat >>confdefs.h <<_ACEOF
15198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15199_ACEOF
15200
66e941e8 15201else
f8f6ec92 15202 hard_bailout
66e941e8 15203fi
f8f6ec92
ZK
15204
15205done
15206
15207
15208cat >>confdefs.h <<\_ACEOF
15209#define HAVE_SELINUX 1
15210_ACEOF
15211
15212 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15213 SELINUX_PC="libselinux"
f8f6ec92
ZK
15214 HAVE_SELINUX=yes
15215else
15216
15217 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15218$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15219 SELINUX_LIBS=
f7f0854e 15220 SELINUX_PC=
f8f6ec92 15221 HAVE_SELINUX=no
66e941e8
JM
15222fi
15223
ad6254c5
AK
15224fi
15225
8b1a3214
AK
15226################################################################################
15227if test x$REALTIME = xyes; then
ec6a6fbe
AK
15228 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15229$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15230if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15231 $as_echo_n "(cached) " >&6
8b1a3214
AK
15232else
15233 ac_check_lib_save_LIBS=$LIBS
15234LIBS="-lrt $LIBS"
15235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241
7a197a62
AK
15242/* Override any GCC internal prototype to avoid an error.
15243 Use char because int might match the return type of a GCC
15244 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15245#ifdef __cplusplus
15246extern "C"
15247#endif
8b1a3214
AK
15248char clock_gettime ();
15249int
15250main ()
15251{
7a197a62 15252return clock_gettime ();
8b1a3214
AK
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15258if { (ac_try="$ac_link"
15259case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262esac
ec6a6fbe
AK
15263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15264$as_echo "$ac_try_echo") >&5
7a197a62 15265 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
ec6a6fbe 15270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
ec6a6fbe
AK
15274 } && test -s conftest$ac_exeext && {
15275 test "$cross_compiling" = yes ||
15276 $as_test_x conftest$ac_exeext
15277 }; then
8b1a3214
AK
15278 ac_cv_lib_rt_clock_gettime=yes
15279else
ec6a6fbe 15280 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
7a197a62 15283 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15284fi
7a197a62 15285
ec6a6fbe 15286rm -rf conftest.dSYM
25fbec5b 15287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15288 conftest$ac_exeext conftest.$ac_ext
15289LIBS=$ac_check_lib_save_LIBS
15290fi
ec6a6fbe
AK
15291{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15292$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15293if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15294 HAVE_REALTIME=yes
15295else
15296 HAVE_REALTIME=no
15297fi
15298
8b1a3214
AK
15299
15300 if test x$HAVE_REALTIME = xyes; then
15301
15302cat >>confdefs.h <<\_ACEOF
15303#define HAVE_REALTIME 1
15304_ACEOF
15305
15306 LIBS="-lrt $LIBS"
15307 else
ec6a6fbe
AK
15308 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15309$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15310 fi
15311fi
15312
ad6254c5
AK
15313################################################################################
15314
15315for ac_header in getopt.h
15316do
ec6a6fbe 15317as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15320$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15322 $as_echo_n "(cached) " >&6
ad6254c5 15323fi
ec6a6fbe
AK
15324ac_res=`eval 'as_val=${'$as_ac_Header'}
15325 $as_echo "$as_val"'`
15326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15327$as_echo "$ac_res" >&6; }
ad6254c5
AK
15328else
15329 # Is the header compilable?
ec6a6fbe
AK
15330{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15331$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15332cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15333/* confdefs.h. */
15334_ACEOF
15335cat confdefs.h >>conftest.$ac_ext
15336cat >>conftest.$ac_ext <<_ACEOF
15337/* end confdefs.h. */
15338$ac_includes_default
15339#include <$ac_header>
15340_ACEOF
15341rm -f conftest.$ac_objext
7a197a62
AK
15342if { (ac_try="$ac_compile"
15343case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
ec6a6fbe
AK
15347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348$as_echo "$ac_try_echo") >&5
7a197a62 15349 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15350 ac_status=$?
8a2fc586
AK
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
ec6a6fbe 15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15355 (exit $ac_status); } && {
15356 test -z "$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15359 ac_header_compiler=yes
15360else
ec6a6fbe 15361 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15362sed 's/^/| /' conftest.$ac_ext >&5
15363
7a197a62 15364 ac_header_compiler=no
ad6254c5 15365fi
7a197a62
AK
15366
15367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15368{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15369$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15370
15371# Is the header present?
ec6a6fbe
AK
15372{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15373$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15374cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380#include <$ac_header>
15381_ACEOF
7a197a62
AK
15382if { (ac_try="$ac_cpp conftest.$ac_ext"
15383case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386esac
ec6a6fbe
AK
15387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15388$as_echo "$ac_try_echo") >&5
7a197a62 15389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
ec6a6fbe 15394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15395 (exit $ac_status); } >/dev/null && {
15396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 }; then
ad6254c5
AK
15399 ac_header_preproc=yes
15400else
ec6a6fbe 15401 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_header_preproc=no
15405fi
7a197a62 15406
ad6254c5 15407rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15408{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15410
15411# So? What about this header?
8a2fc586
AK
15412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413 yes:no: )
ec6a6fbe
AK
15414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15418 ac_header_preproc=yes
ad6254c5 15419 ;;
8a2fc586 15420 no:yes:* )
ec6a6fbe
AK
15421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15424$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15428$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15433
ad6254c5
AK
15434 ;;
15435esac
ec6a6fbe
AK
15436{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15437$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15439 $as_echo_n "(cached) " >&6
ad6254c5 15440else
8a2fc586 15441 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15442fi
ec6a6fbe
AK
15443ac_res=`eval 'as_val=${'$as_ac_Header'}
15444 $as_echo "$as_val"'`
15445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15446$as_echo "$ac_res" >&6; }
ad6254c5
AK
15447
15448fi
ec6a6fbe
AK
15449as_val=`eval 'as_val=${'$as_ac_Header'}
15450 $as_echo "$as_val"'`
15451 if test "x$as_val" = x""yes; then
ad6254c5 15452 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15454_ACEOF
72b2cb61
AK
15455
15456cat >>confdefs.h <<\_ACEOF
15457#define HAVE_GETOPTLONG 1
15458_ACEOF
15459
ad6254c5
AK
15460fi
15461
15462done
15463
15464
15465################################################################################
06e459df 15466if test x$READLINE != xno; then
539f4a77
ZK
15467 lvm_saved_libs=$LIBS
15468 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15469$as_echo_n "checking for library containing tgetent... " >&6; }
15470if test "${ac_cv_search_tgetent+set}" = set; then
15471 $as_echo_n "(cached) " >&6
15472else
15473 ac_func_search_save_LIBS=$LIBS
15474cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
bc1024f8 15480
539f4a77
ZK
15481/* Override any GCC internal prototype to avoid an error.
15482 Use char because int might match the return type of a GCC
15483 builtin and then its argument prototype would still apply. */
15484#ifdef __cplusplus
15485extern "C"
15486#endif
15487char tgetent ();
15488int
15489main ()
15490{
15491return tgetent ();
15492 ;
15493 return 0;
15494}
15495_ACEOF
15496for ac_lib in '' tinfo ncurses curses termcap termlib; do
15497 if test -z "$ac_lib"; then
15498 ac_res="none required"
15499 else
15500 ac_res=-l$ac_lib
15501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15502 fi
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504if { (ac_try="$ac_link"
15505case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508esac
15509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510$as_echo "$ac_try_echo") >&5
15511 (eval "$ac_link") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext && {
15521 test "$cross_compiling" = yes ||
15522 $as_test_x conftest$ac_exeext
15523 }; then
15524 ac_cv_search_tgetent=$ac_res
15525else
15526 $as_echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529
15530fi
15531
15532rm -rf conftest.dSYM
15533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534 conftest$ac_exeext
15535 if test "${ac_cv_search_tgetent+set}" = set; then
15536 break
15537fi
15538done
15539if test "${ac_cv_search_tgetent+set}" = set; then
15540 :
15541else
15542 ac_cv_search_tgetent=no
15543fi
15544rm conftest.$ac_ext
15545LIBS=$ac_func_search_save_LIBS
15546fi
15547{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15548$as_echo "$ac_cv_search_tgetent" >&6; }
15549ac_res=$ac_cv_search_tgetent
15550if test "$ac_res" != no; then
15551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15552 READLINE_LIBS=$ac_cv_search_tgetent
15553else
15554
15555 if test "$READLINE" = yes; then
15556 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15557--enable-readline option (which is enabled by default). Either disable readline
15558support with --disable-readline or download and install termcap from:
15559 ftp.gnu.org/gnu/termcap
15560Note: if you are using precompiled packages you will also need the development
15561 package as well (which may be called termcap-devel or something similar).
15562Note: (n)curses also seems to work as a substitute for termcap. This was
15563 not found either - but you could try installing that as well." >&5
15564$as_echo "$as_me: error: termcap could not be found which is required for the
15565--enable-readline option (which is enabled by default). Either disable readline
15566support with --disable-readline or download and install termcap from:
15567 ftp.gnu.org/gnu/termcap
15568Note: if you are using precompiled packages you will also need the development
15569 package as well (which may be called termcap-devel or something similar).
15570Note: (n)curses also seems to work as a substitute for termcap. This was
15571 not found either - but you could try installing that as well." >&2;}
15572 { (exit 1); exit 1; }; }
15573 fi
15574fi
15575
15576 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15577$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15578if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15579 $as_echo_n "(cached) " >&6
ad6254c5
AK
15580else
15581 ac_check_lib_save_LIBS=$LIBS
15582LIBS="-lreadline $LIBS"
15583cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589
7a197a62
AK
15590/* Override any GCC internal prototype to avoid an error.
15591 Use char because int might match the return type of a GCC
15592 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15593#ifdef __cplusplus
15594extern "C"
15595#endif
ad6254c5
AK
15596char readline ();
15597int
15598main ()
15599{
7a197a62 15600return readline ();
ad6254c5
AK
15601 ;
15602 return 0;
15603}
15604_ACEOF
15605rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15606if { (ac_try="$ac_link"
15607case "(($ac_try" in
15608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609 *) ac_try_echo=$ac_try;;
15610esac
ec6a6fbe
AK
15611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15612$as_echo "$ac_try_echo") >&5
7a197a62 15613 (eval "$ac_link") 2>conftest.er1
ad6254c5 15614 ac_status=$?
8a2fc586
AK
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
ec6a6fbe 15618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15619 (exit $ac_status); } && {
15620 test -z "$ac_c_werror_flag" ||
15621 test ! -s conftest.err
ec6a6fbe
AK
15622 } && test -s conftest$ac_exeext && {
15623 test "$cross_compiling" = yes ||
15624 $as_test_x conftest$ac_exeext
15625 }; then
ad6254c5
AK
15626 ac_cv_lib_readline_readline=yes
15627else
ec6a6fbe 15628 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15629sed 's/^/| /' conftest.$ac_ext >&5
15630
7a197a62 15631 ac_cv_lib_readline_readline=no
ad6254c5 15632fi
7a197a62 15633
ec6a6fbe 15634rm -rf conftest.dSYM
25fbec5b 15635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15636 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15637LIBS=$ac_check_lib_save_LIBS
15638fi
ec6a6fbe
AK
15639{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15640$as_echo "$ac_cv_lib_readline_readline" >&6; }
15641if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15642
15643
15644cat >>confdefs.h <<\_ACEOF
15645#define READLINE_SUPPORT 1
bc1024f8
JM
15646_ACEOF
15647
539f4a77
ZK
15648 LIBS=$lvm_saved_libs
15649 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15650$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15651if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15652 $as_echo_n "(cached) " >&6
15653else
15654 ac_check_lib_save_LIBS=$LIBS
15655LIBS="-lreadline $LIBS"
15656cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
bc1024f8 15662
539f4a77
ZK
15663/* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15666#ifdef __cplusplus
15667extern "C"
15668#endif
15669char rl_line_buffer ();
15670int
15671main ()
15672{
15673return rl_line_buffer ();
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext conftest$ac_exeext
15679if { (ac_try="$ac_link"
15680case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683esac
15684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15685$as_echo "$ac_try_echo") >&5
15686 (eval "$ac_link") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } && {
15693 test -z "$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15695 } && test -s conftest$ac_exeext && {
15696 test "$cross_compiling" = yes ||
15697 $as_test_x conftest$ac_exeext
15698 }; then
15699 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15700else
539f4a77
ZK
15701 $as_echo "$as_me: failed program was:" >&5
15702sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15705fi
15706
539f4a77
ZK
15707rm -rf conftest.dSYM
15708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15710LIBS=$ac_check_lib_save_LIBS
15711fi
15712{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15713$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15714if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15715 READLINE_LIBS="-lreadline"
15716else
15717
15718 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15719$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15720 READLINE_LIBS="-lreadline $READLINE_LIBS"
15721
15722fi
15723
15724else
15725
15726 READLINE_LIBS=
15727 if test "$READLINE" = yes; then
15728 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15729--enable-readline option (which is enabled by default). Either disable readline
15730support with --disable-readline or download and install readline from:
15731 ftp.gnu.org/gnu/readline
15732Note: if you are using precompiled packages you will also need the development
539f4a77 15733package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15734$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15735--enable-readline option (which is enabled by default). Either disable readline
15736support with --disable-readline or download and install readline from:
15737 ftp.gnu.org/gnu/readline
15738Note: if you are using precompiled packages you will also need the development
539f4a77 15739package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15740 { (exit 1); exit 1; }; }
539f4a77
ZK
15741 fi
15742fi
15743
15744 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15745
15746for ac_func in rl_completion_matches
15747do
ec6a6fbe
AK
15748as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15749{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15750$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15752 $as_echo_n "(cached) " >&6
ad6254c5
AK
15753else
15754 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
bc1024f8 15760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15762#define $ac_func innocuous_$ac_func
8a2fc586 15763
ad6254c5 15764/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 15765 which can conflict with char $ac_func (); below.
ad6254c5
AK
15766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15767 <limits.h> exists even on freestanding compilers. */
8a2fc586 15768
ad6254c5
AK
15769#ifdef __STDC__
15770# include <limits.h>
15771#else
15772# include <assert.h>
15773#endif
8a2fc586 15774
bc1024f8 15775#undef $ac_func
8a2fc586 15776
7a197a62
AK
15777/* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15780#ifdef __cplusplus
15781extern "C"
ad6254c5 15782#endif
bc1024f8 15783char $ac_func ();
ad6254c5
AK
15784/* The GNU C library defines this for functions which it implements
15785 to always fail with ENOSYS. Some functions are actually named
15786 something starting with __ and the normal name is an alias. */
bc1024f8 15787#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 15788choke me
ad6254c5
AK
15789#endif
15790
15791int
15792main ()
15793{
bc1024f8 15794return $ac_func ();
ad6254c5
AK
15795 ;
15796 return 0;
15797}
15798_ACEOF
15799rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15800if { (ac_try="$ac_link"
15801case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804esac
ec6a6fbe
AK
15805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806$as_echo "$ac_try_echo") >&5
7a197a62 15807 (eval "$ac_link") 2>conftest.er1
ad6254c5 15808 ac_status=$?
8a2fc586
AK
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
ec6a6fbe 15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
ec6a6fbe
AK
15816 } && test -s conftest$ac_exeext && {
15817 test "$cross_compiling" = yes ||
15818 $as_test_x conftest$ac_exeext
15819 }; then
bc1024f8 15820 eval "$as_ac_var=yes"
ad6254c5 15821else
ec6a6fbe 15822 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15823sed 's/^/| /' conftest.$ac_ext >&5
15824
bc1024f8 15825 eval "$as_ac_var=no"
ad6254c5 15826fi
7a197a62 15827
ec6a6fbe 15828rm -rf conftest.dSYM
25fbec5b 15829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15830 conftest$ac_exeext conftest.$ac_ext
ad6254c5 15831fi
ec6a6fbe
AK
15832ac_res=`eval 'as_val=${'$as_ac_var'}
15833 $as_echo "$as_val"'`
15834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15835$as_echo "$ac_res" >&6; }
15836as_val=`eval 'as_val=${'$as_ac_var'}
15837 $as_echo "$as_val"'`
15838 if test "x$as_val" = x""yes; then
bc1024f8 15839 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
15841_ACEOF
15842
15843fi
bc1024f8 15844done
ad6254c5 15845
539f4a77 15846 LIBS=$lvm_saved_libs
ad6254c5
AK
15847fi
15848
15849################################################################################
ec6a6fbe
AK
15850{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15851$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 15852# Check whether --enable-nls was given.
ad6254c5 15853if test "${enable_nls+set}" = set; then
7a197a62 15854 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
15855else
15856 INTL=no
7a197a62
AK
15857fi
15858
ec6a6fbe
AK
15859{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
15860$as_echo "$INTL" >&6; }
ad6254c5
AK
15861
15862if test x$INTL = xyes; then
93bd259b 15863# FIXME - Move this - can be device-mapper too
ad6254c5
AK
15864 INTL_PACKAGE="lvm2"
15865 # Extract the first word of "msgfmt", so it can be a program name with args.
15866set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
15867{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15868$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 15869if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 15870 $as_echo_n "(cached) " >&6
ad6254c5
AK
15871else
15872 case $MSGFMT in
15873 [\\/]* | ?:[\\/]*)
15874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15875 ;;
15876 *)
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878for as_dir in $PATH
15879do
15880 IFS=$as_save_IFS
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 15884 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
15886 break 2
15887 fi
15888done
15889done
7a197a62 15890IFS=$as_save_IFS
ad6254c5
AK
15891
15892 ;;
15893esac
15894fi
15895MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 15896if test -n "$MSGFMT"; then
ec6a6fbe
AK
15897 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15898$as_echo "$MSGFMT" >&6; }
ad6254c5 15899else
ec6a6fbe
AK
15900 { $as_echo "$as_me:$LINENO: result: no" >&5
15901$as_echo "no" >&6; }
ad6254c5
AK
15902fi
15903
7a197a62 15904
ad6254c5 15905 if [ "x$MSGFMT" == x ];
ec6a6fbe 15906 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 15907 " >&5
ec6a6fbe 15908$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
15909 " >&2;}
15910 { (exit 1); exit 1; }; }
15911 fi;
15912
15913
7a197a62 15914# Check whether --with-localedir was given.
ad6254c5 15915if test "${with_localedir+set}" = set; then
71082be4 15916 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 15917else
71082be4 15918 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
15919fi
15920
ad6254c5
AK
15921fi
15922
15923################################################################################
15924
7a197a62 15925# Check whether --with-confdir was given.
ad6254c5 15926if test "${with_confdir+set}" = set; then
71082be4 15927 withval=$with_confdir; CONFDIR=$withval
ad6254c5 15928else
71082be4 15929 CONFDIR="/etc"
7a197a62
AK
15930fi
15931
ad6254c5
AK
15932
15933
7a197a62 15934# Check whether --with-staticdir was given.
ad6254c5 15935if test "${with_staticdir+set}" = set; then
71082be4 15936 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 15937else
71082be4 15938 STATICDIR='${exec_prefix}/sbin'
7a197a62 15939fi
ad6254c5 15940
33f732c5 15941
7a197a62 15942
68f2de6d
AK
15943# Check whether --with-usrlibdir was given.
15944if test "${with_usrlibdir+set}" = set; then
71082be4 15945 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 15946else
71082be4 15947 usrlibdir='${prefix}/lib'
68f2de6d
AK
15948fi
15949
15950
15951
15952# Check whether --with-usrsbindir was given.
15953if test "${with_usrsbindir+set}" = set; then
71082be4 15954 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 15955else
71082be4 15956 usrsbindir='${prefix}/sbin'
68f2de6d
AK
15957fi
15958
15959
a5f46f6a
AK
15960################################################################################
15961
15962# Check whether --with-udev_prefix was given.
15963if test "${with_udev_prefix+set}" = set; then
71082be4 15964 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 15965else
71082be4 15966 udev_prefix='${exec_prefix}'
a5f46f6a
AK
15967fi
15968
15969
78ce7acc
AK
15970
15971# Check whether --with-udevdir was given.
15972if test "${with_udevdir+set}" = set; then
71082be4 15973 withval=$with_udevdir; udevdir=$withval
78ce7acc 15974else
71082be4 15975 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
15976fi
15977
a5f46f6a 15978
ad6254c5
AK
15979################################################################################
15980if test x$READLINE = xyes; then
15981
15982
15983for ac_header in readline/readline.h readline/history.h
15984do
ec6a6fbe 15985as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15988$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15990 $as_echo_n "(cached) " >&6
ad6254c5 15991fi
ec6a6fbe
AK
15992ac_res=`eval 'as_val=${'$as_ac_Header'}
15993 $as_echo "$as_val"'`
15994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15995$as_echo "$ac_res" >&6; }
ad6254c5
AK
15996else
15997 # Is the header compilable?
ec6a6fbe
AK
15998{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15999$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16000cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006$ac_includes_default
16007#include <$ac_header>
16008_ACEOF
16009rm -f conftest.$ac_objext
7a197a62
AK
16010if { (ac_try="$ac_compile"
16011case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014esac
ec6a6fbe
AK
16015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16016$as_echo "$ac_try_echo") >&5
7a197a62 16017 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16018 ac_status=$?
8a2fc586
AK
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
ec6a6fbe 16022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16023 (exit $ac_status); } && {
16024 test -z "$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16026 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16027 ac_header_compiler=yes
16028else
ec6a6fbe 16029 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16030sed 's/^/| /' conftest.$ac_ext >&5
16031
7a197a62 16032 ac_header_compiler=no
ad6254c5 16033fi
7a197a62
AK
16034
16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16036{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16037$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16038
16039# Is the header present?
ec6a6fbe
AK
16040{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16041$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16042cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048#include <$ac_header>
16049_ACEOF
7a197a62
AK
16050if { (ac_try="$ac_cpp conftest.$ac_ext"
16051case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054esac
ec6a6fbe
AK
16055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056$as_echo "$ac_try_echo") >&5
7a197a62 16057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
ec6a6fbe 16062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16063 (exit $ac_status); } >/dev/null && {
16064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 }; then
ad6254c5
AK
16067 ac_header_preproc=yes
16068else
ec6a6fbe 16069 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_preproc=no
16073fi
7a197a62 16074
ad6254c5 16075rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16076{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16078
16079# So? What about this header?
8a2fc586
AK
16080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16081 yes:no: )
ec6a6fbe
AK
16082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16086 ac_header_preproc=yes
ad6254c5 16087 ;;
8a2fc586 16088 no:yes:* )
ec6a6fbe
AK
16089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16092$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16096$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16101
ad6254c5
AK
16102 ;;
16103esac
ec6a6fbe
AK
16104{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16105$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16107 $as_echo_n "(cached) " >&6
ad6254c5 16108else
8a2fc586 16109 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16110fi
ec6a6fbe
AK
16111ac_res=`eval 'as_val=${'$as_ac_Header'}
16112 $as_echo "$as_val"'`
16113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16114$as_echo "$ac_res" >&6; }
ad6254c5
AK
16115
16116fi
ec6a6fbe
AK
16117as_val=`eval 'as_val=${'$as_ac_Header'}
16118 $as_echo "$as_val"'`
16119 if test "x$as_val" = x""yes; then
ad6254c5 16120 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16121#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16122_ACEOF
16123
16124else
ec6a6fbe
AK
16125 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16126$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16127 { (exit 1); exit 1; }; }
16128fi
16129
16130done
16131
16132fi
16133
5c7fc7c4 16134if test x$CLVMD != xnone; then
ad6254c5
AK
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145for 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
16146do
ec6a6fbe 16147as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16150$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16152 $as_echo_n "(cached) " >&6
ad6254c5 16153fi
ec6a6fbe
AK
16154ac_res=`eval 'as_val=${'$as_ac_Header'}
16155 $as_echo "$as_val"'`
16156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16157$as_echo "$ac_res" >&6; }
ad6254c5
AK
16158else
16159 # Is the header compilable?
ec6a6fbe
AK
16160{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16161$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16162cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169#include <$ac_header>
16170_ACEOF
16171rm -f conftest.$ac_objext
7a197a62
AK
16172if { (ac_try="$ac_compile"
16173case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176esac
ec6a6fbe
AK
16177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16178$as_echo "$ac_try_echo") >&5
7a197a62 16179 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16180 ac_status=$?
8a2fc586
AK
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
ec6a6fbe 16184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16185 (exit $ac_status); } && {
16186 test -z "$ac_c_werror_flag" ||
16187 test ! -s conftest.err
16188 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16189 ac_header_compiler=yes
16190else
ec6a6fbe 16191 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16192sed 's/^/| /' conftest.$ac_ext >&5
16193
7a197a62 16194 ac_header_compiler=no
ad6254c5 16195fi
7a197a62
AK
16196
16197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16198{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16200
16201# Is the header present?
ec6a6fbe
AK
16202{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16203$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16204cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210#include <$ac_header>
16211_ACEOF
7a197a62
AK
16212if { (ac_try="$ac_cpp conftest.$ac_ext"
16213case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216esac
ec6a6fbe
AK
16217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218$as_echo "$ac_try_echo") >&5
7a197a62 16219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16220 ac_status=$?
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
ec6a6fbe 16224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16225 (exit $ac_status); } >/dev/null && {
16226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 }; then
ad6254c5
AK
16229 ac_header_preproc=yes
16230else
ec6a6fbe 16231 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_header_preproc=no
16235fi
7a197a62 16236
ad6254c5 16237rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16238{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16239$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16240
16241# So? What about this header?
8a2fc586
AK
16242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16243 yes:no: )
ec6a6fbe
AK
16244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16245$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16247$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16248 ac_header_preproc=yes
ad6254c5 16249 ;;
8a2fc586 16250 no:yes:* )
ec6a6fbe
AK
16251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16252$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16254$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16256$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16258$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16260$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16262$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16263
ad6254c5
AK
16264 ;;
16265esac
ec6a6fbe
AK
16266{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16267$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16269 $as_echo_n "(cached) " >&6
ad6254c5 16270else
8a2fc586 16271 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16272fi
ec6a6fbe
AK
16273ac_res=`eval 'as_val=${'$as_ac_Header'}
16274 $as_echo "$as_val"'`
16275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16276$as_echo "$ac_res" >&6; }
ad6254c5
AK
16277
16278fi
ec6a6fbe
AK
16279as_val=`eval 'as_val=${'$as_ac_Header'}
16280 $as_echo "$as_val"'`
16281 if test "x$as_val" = x""yes; then
ad6254c5 16282 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16284_ACEOF
16285
16286else
ec6a6fbe
AK
16287 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16288$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16289 { (exit 1); exit 1; }; }
795ca3e5
AK
16290fi
16291
ad6254c5
AK
16292done
16293
16294
795ca3e5 16295
8106cdd5 16296
ad6254c5
AK
16297
16298
16299for ac_func in dup2 getmntent memmove select socket
16300do
ec6a6fbe
AK
16301as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16302{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16303$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16305 $as_echo_n "(cached) " >&6
795ca3e5 16306else
ad6254c5 16307 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
8a2fc586
AK
16313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16315#define $ac_func innocuous_$ac_func
16316
795ca3e5 16317/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16318 which can conflict with char $ac_func (); below.
16319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16320 <limits.h> exists even on freestanding compilers. */
8a2fc586 16321
ad6254c5
AK
16322#ifdef __STDC__
16323# include <limits.h>
16324#else
16325# include <assert.h>
16326#endif
8a2fc586
AK
16327
16328#undef $ac_func
16329
7a197a62
AK
16330/* Override any GCC internal prototype to avoid an error.
16331 Use char because int might match the return type of a GCC
16332 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16333#ifdef __cplusplus
16334extern "C"
ad6254c5 16335#endif
ad6254c5 16336char $ac_func ();
795ca3e5
AK
16337/* The GNU C library defines this for functions which it implements
16338 to always fail with ENOSYS. Some functions are actually named
16339 something starting with __ and the normal name is an alias. */
7a197a62 16340#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16341choke me
795ca3e5
AK
16342#endif
16343
ad6254c5
AK
16344int
16345main ()
16346{
7a197a62 16347return $ac_func ();
ad6254c5
AK
16348 ;
16349 return 0;
16350}
16351_ACEOF
16352rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16353if { (ac_try="$ac_link"
16354case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
ec6a6fbe
AK
16358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16359$as_echo "$ac_try_echo") >&5
7a197a62 16360 (eval "$ac_link") 2>conftest.er1
ad6254c5 16361 ac_status=$?
8a2fc586
AK
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
ec6a6fbe 16365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16366 (exit $ac_status); } && {
16367 test -z "$ac_c_werror_flag" ||
16368 test ! -s conftest.err
ec6a6fbe
AK
16369 } && test -s conftest$ac_exeext && {
16370 test "$cross_compiling" = yes ||
16371 $as_test_x conftest$ac_exeext
16372 }; then
ad6254c5 16373 eval "$as_ac_var=yes"
795ca3e5 16374else
ec6a6fbe 16375 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
7a197a62 16378 eval "$as_ac_var=no"
80992638 16379fi
7a197a62 16380
ec6a6fbe 16381rm -rf conftest.dSYM
25fbec5b 16382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16383 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16384fi
ec6a6fbe
AK
16385ac_res=`eval 'as_val=${'$as_ac_var'}
16386 $as_echo "$as_val"'`
16387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16388$as_echo "$ac_res" >&6; }
16389as_val=`eval 'as_val=${'$as_ac_var'}
16390 $as_echo "$as_val"'`
16391 if test "x$as_val" = x""yes; then
ad6254c5 16392 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16393#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16394_ACEOF
80992638
AK
16395
16396else
ec6a6fbe
AK
16397 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16398$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16399 { (exit 1); exit 1; }; }
8106cdd5 16400fi
ad6254c5 16401done
795ca3e5 16402
25fbec5b
AK
16403 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16404# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16405{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16406$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16407if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16408 $as_echo_n "(cached) " >&6
25fbec5b
AK
16409else
16410 ac_func_search_save_LIBS=$LIBS
16411cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
80992638 16417
7a197a62
AK
16418/* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
ad6254c5 16420 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16421#ifdef __cplusplus
16422extern "C"
16423#endif
25fbec5b 16424char getmntent ();
ad6254c5
AK
16425int
16426main ()
16427{
25fbec5b 16428return getmntent ();
ad6254c5
AK
16429 ;
16430 return 0;
16431}
16432_ACEOF
25fbec5b
AK
16433for ac_lib in '' sun seq gen; do
16434 if test -z "$ac_lib"; then
16435 ac_res="none required"
16436 else
16437 ac_res=-l$ac_lib
16438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16439 fi
16440 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16441if { (ac_try="$ac_link"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
ec6a6fbe
AK
16446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16447$as_echo "$ac_try_echo") >&5
7a197a62 16448 (eval "$ac_link") 2>conftest.er1
ad6254c5 16449 ac_status=$?
8a2fc586
AK
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
ec6a6fbe 16453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
ec6a6fbe
AK
16457 } && test -s conftest$ac_exeext && {
16458 test "$cross_compiling" = yes ||
16459 $as_test_x conftest$ac_exeext
16460 }; then
25fbec5b 16461 ac_cv_search_getmntent=$ac_res
80992638 16462else
ec6a6fbe 16463 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
25fbec5b 16466
795ca3e5
AK
16467fi
16468
ec6a6fbe 16469rm -rf conftest.dSYM
25fbec5b
AK
16470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext
16472 if test "${ac_cv_search_getmntent+set}" = set; then
16473 break
795ca3e5 16474fi
25fbec5b
AK
16475done
16476if test "${ac_cv_search_getmntent+set}" = set; then
16477 :
16478else
16479 ac_cv_search_getmntent=no
16480fi
16481rm conftest.$ac_ext
16482LIBS=$ac_func_search_save_LIBS
16483fi
ec6a6fbe
AK
16484{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16485$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16486ac_res=$ac_cv_search_getmntent
16487if test "$ac_res" != no; then
16488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16489 ac_cv_func_getmntent=yes
16490
16491cat >>confdefs.h <<\_ACEOF
9c961554 16492#define HAVE_GETMNTENT 1
ad6254c5 16493_ACEOF
795ca3e5 16494
25fbec5b
AK
16495else
16496 ac_cv_func_getmntent=no
795ca3e5 16497fi
795ca3e5
AK
16498
16499
ad6254c5
AK
16500
16501
16502for ac_header in sys/select.h sys/socket.h
16503do
ec6a6fbe 16504as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16507$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16509 $as_echo_n "(cached) " >&6
ad6254c5 16510fi
ec6a6fbe
AK
16511ac_res=`eval 'as_val=${'$as_ac_Header'}
16512 $as_echo "$as_val"'`
16513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16514$as_echo "$ac_res" >&6; }
795ca3e5 16515else
ad6254c5 16516 # Is the header compilable?
ec6a6fbe
AK
16517{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16518$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16519cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526#include <$ac_header>
16527_ACEOF
16528rm -f conftest.$ac_objext
7a197a62
AK
16529if { (ac_try="$ac_compile"
16530case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
ec6a6fbe
AK
16534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535$as_echo "$ac_try_echo") >&5
7a197a62 16536 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16537 ac_status=$?
8a2fc586
AK
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
ec6a6fbe 16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest.$ac_objext; then
ad6254c5 16546 ac_header_compiler=yes
80992638 16547else
ec6a6fbe 16548 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
7a197a62 16551 ac_header_compiler=no
ad6254c5 16552fi
7a197a62
AK
16553
16554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16555{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16556$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16557
16558# Is the header present?
ec6a6fbe
AK
16559{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16560$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16561cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567#include <$ac_header>
16568_ACEOF
7a197a62
AK
16569if { (ac_try="$ac_cpp conftest.$ac_ext"
16570case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573esac
ec6a6fbe
AK
16574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16575$as_echo "$ac_try_echo") >&5
7a197a62 16576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
ec6a6fbe 16581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16582 (exit $ac_status); } >/dev/null && {
16583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16584 test ! -s conftest.err
16585 }; then
ad6254c5
AK
16586 ac_header_preproc=yes
16587else
ec6a6fbe 16588 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_header_preproc=no
16592fi
7a197a62 16593
ad6254c5 16594rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16595{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16596$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16597
16598# So? What about this header?
8a2fc586
AK
16599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16600 yes:no: )
ec6a6fbe
AK
16601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16602$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16604$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16605 ac_header_preproc=yes
ad6254c5 16606 ;;
8a2fc586 16607 no:yes:* )
ec6a6fbe
AK
16608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16609$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16611$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16613$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16615$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16619$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16620
ad6254c5
AK
16621 ;;
16622esac
ec6a6fbe
AK
16623{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16624$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16626 $as_echo_n "(cached) " >&6
ad6254c5 16627else
8a2fc586 16628 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16629fi
ec6a6fbe
AK
16630ac_res=`eval 'as_val=${'$as_ac_Header'}
16631 $as_echo "$as_val"'`
16632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16633$as_echo "$ac_res" >&6; }
8106cdd5 16634
795ca3e5 16635fi
ec6a6fbe
AK
16636as_val=`eval 'as_val=${'$as_ac_Header'}
16637 $as_echo "$as_val"'`
16638 if test "x$as_val" = x""yes; then
ad6254c5 16639 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16641_ACEOF
16642
795ca3e5
AK
16643fi
16644
ad6254c5
AK
16645done
16646
ec6a6fbe
AK
16647{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16648$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16649if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16650 $as_echo_n "(cached) " >&6
26e7f2e0 16651else
ad6254c5 16652 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16653 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16654 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16655 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661$ac_includes_default
25fbec5b 16662#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16663# include <sys/select.h>
16664#endif
25fbec5b 16665#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16666# include <sys/socket.h>
16667#endif
16668
16669int
16670main ()
16671{
16672extern int select ($ac_arg1,
8a2fc586
AK
16673 $ac_arg234, $ac_arg234, $ac_arg234,
16674 $ac_arg5);
ad6254c5
AK
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext
7a197a62
AK
16680if { (ac_try="$ac_compile"
16681case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
ec6a6fbe
AK
16685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16686$as_echo "$ac_try_echo") >&5
7a197a62 16687 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16688 ac_status=$?
8a2fc586
AK
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
ec6a6fbe 16692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16693 (exit $ac_status); } && {
16694 test -z "$ac_c_werror_flag" ||
16695 test ! -s conftest.err
16696 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16697 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16698else
ec6a6fbe 16699 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
7a197a62 16702
ad6254c5 16703fi
7a197a62
AK
16704
16705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16706 done
16707 done
16708done
16709# Provide a safe default value.
16710: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16711
26e7f2e0 16712fi
ec6a6fbe
AK
16713{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16714$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16715ac_save_IFS=$IFS; IFS=','
16716set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16717IFS=$ac_save_IFS
16718shift
16719
16720cat >>confdefs.h <<_ACEOF
16721#define SELECT_TYPE_ARG1 $1
16722_ACEOF
16723
16724
16725cat >>confdefs.h <<_ACEOF
16726#define SELECT_TYPE_ARG234 ($2)
16727_ACEOF
16728
16729
16730cat >>confdefs.h <<_ACEOF
16731#define SELECT_TYPE_ARG5 ($3)
16732_ACEOF
16733
80992638 16734rm -f conftest*
80992638 16735
8106cdd5 16736fi
ad6254c5 16737
ad6254c5
AK
16738if test x$CLUSTER != xnone; then
16739
16740
16741for ac_header in sys/socket.h sys/un.h
b896caa1 16742do
ec6a6fbe 16743as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16746$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16748 $as_echo_n "(cached) " >&6
ad6254c5 16749fi
ec6a6fbe
AK
16750ac_res=`eval 'as_val=${'$as_ac_Header'}
16751 $as_echo "$as_val"'`
16752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16753$as_echo "$ac_res" >&6; }
ad6254c5
AK
16754else
16755 # Is the header compilable?
ec6a6fbe
AK
16756{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16757$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16758cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
16764$ac_includes_default
16765#include <$ac_header>
16766_ACEOF
16767rm -f conftest.$ac_objext
7a197a62
AK
16768if { (ac_try="$ac_compile"
16769case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772esac
ec6a6fbe
AK
16773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16774$as_echo "$ac_try_echo") >&5
7a197a62 16775 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16776 ac_status=$?
8a2fc586
AK
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
ec6a6fbe 16780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16781 (exit $ac_status); } && {
16782 test -z "$ac_c_werror_flag" ||
16783 test ! -s conftest.err
16784 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16785 ac_header_compiler=yes
16786else
ec6a6fbe 16787 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
7a197a62 16790 ac_header_compiler=no
ad6254c5 16791fi
7a197a62
AK
16792
16793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16794{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16795$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16796
16797# Is the header present?
ec6a6fbe
AK
16798{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16799$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16800cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16801/* confdefs.h. */
16802_ACEOF
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
16806#include <$ac_header>
16807_ACEOF
7a197a62
AK
16808if { (ac_try="$ac_cpp conftest.$ac_ext"
16809case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
ec6a6fbe
AK
16813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16814$as_echo "$ac_try_echo") >&5
7a197a62 16815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
ec6a6fbe 16820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16821 (exit $ac_status); } >/dev/null && {
16822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16823 test ! -s conftest.err
16824 }; then
ad6254c5
AK
16825 ac_header_preproc=yes
16826else
ec6a6fbe 16827 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16828sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 ac_header_preproc=no
16831fi
7a197a62 16832
ad6254c5 16833rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16834{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16835$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16836
16837# So? What about this header?
8a2fc586
AK
16838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16839 yes:no: )
ec6a6fbe
AK
16840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16841$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16843$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16844 ac_header_preproc=yes
ad6254c5 16845 ;;
8a2fc586 16846 no:yes:* )
ec6a6fbe
AK
16847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16848$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16850$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16852$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16854$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16856$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16858$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16859
ad6254c5
AK
16860 ;;
16861esac
ec6a6fbe
AK
16862{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16863$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16865 $as_echo_n "(cached) " >&6
ad6254c5 16866else
8a2fc586 16867 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 16868fi
ec6a6fbe
AK
16869ac_res=`eval 'as_val=${'$as_ac_Header'}
16870 $as_echo "$as_val"'`
16871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16872$as_echo "$ac_res" >&6; }
ad6254c5
AK
16873
16874fi
ec6a6fbe
AK
16875as_val=`eval 'as_val=${'$as_ac_Header'}
16876 $as_echo "$as_val"'`
16877 if test "x$as_val" = x""yes; then
ad6254c5 16878 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16880_ACEOF
16881
80992638 16882else
ec6a6fbe
AK
16883 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16884$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16885 { (exit 1); exit 1; }; }
b896caa1 16886fi
ad6254c5 16887
b896caa1
AK
16888done
16889
16890
ad6254c5
AK
16891for ac_func in socket
16892do
ec6a6fbe
AK
16893as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16895$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16897 $as_echo_n "(cached) " >&6
795ca3e5 16898else
ad6254c5 16899 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16900/* confdefs.h. */
16901_ACEOF
16902cat confdefs.h >>conftest.$ac_ext
16903cat >>conftest.$ac_ext <<_ACEOF
16904/* end confdefs.h. */
8a2fc586
AK
16905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16907#define $ac_func innocuous_$ac_func
16908
ad6254c5
AK
16909/* System header to define __stub macros and hopefully few prototypes,
16910 which can conflict with char $ac_func (); below.
16911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16912 <limits.h> exists even on freestanding compilers. */
8a2fc586 16913
ad6254c5
AK
16914#ifdef __STDC__
16915# include <limits.h>
16916#else
16917# include <assert.h>
16918#endif
8a2fc586
AK
16919
16920#undef $ac_func
16921
7a197a62
AK
16922/* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16925#ifdef __cplusplus
16926extern "C"
ad6254c5 16927#endif
ad6254c5
AK
16928char $ac_func ();
16929/* The GNU C library defines this for functions which it implements
16930 to always fail with ENOSYS. Some functions are actually named
16931 something starting with __ and the normal name is an alias. */
7a197a62 16932#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16933choke me
ad6254c5
AK
16934#endif
16935
16936int
16937main ()
16938{
7a197a62 16939return $ac_func ();
ad6254c5
AK
16940 ;
16941 return 0;
16942}
16943_ACEOF
16944rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16945if { (ac_try="$ac_link"
16946case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
ec6a6fbe
AK
16950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951$as_echo "$ac_try_echo") >&5
7a197a62 16952 (eval "$ac_link") 2>conftest.er1
ad6254c5 16953 ac_status=$?
8a2fc586
AK
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
ec6a6fbe 16957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
ec6a6fbe
AK
16961 } && test -s conftest$ac_exeext && {
16962 test "$cross_compiling" = yes ||
16963 $as_test_x conftest$ac_exeext
16964 }; then
ad6254c5
AK
16965 eval "$as_ac_var=yes"
16966else
ec6a6fbe 16967 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
7a197a62 16970 eval "$as_ac_var=no"
ad6254c5 16971fi
7a197a62 16972
ec6a6fbe 16973rm -rf conftest.dSYM
25fbec5b 16974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16975 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16976fi
ec6a6fbe
AK
16977ac_res=`eval 'as_val=${'$as_ac_var'}
16978 $as_echo "$as_val"'`
16979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16980$as_echo "$ac_res" >&6; }
16981as_val=`eval 'as_val=${'$as_ac_var'}
16982 $as_echo "$as_val"'`
16983 if test "x$as_val" = x""yes; then
ad6254c5 16984 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
16986_ACEOF
16987
16988else
ec6a6fbe
AK
16989 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16990$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16991 { (exit 1); exit 1; }; }
16992fi
16993done
16994
16995fi
16996
d911ec67
AK
16997if test x$DMEVENTD = xyes; then
16998
16999for ac_header in arpa/inet.h
17000do
17001as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17004$as_echo_n "checking for $ac_header... " >&6; }
17005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006 $as_echo_n "(cached) " >&6
17007fi
17008ac_res=`eval 'as_val=${'$as_ac_Header'}
17009 $as_echo "$as_val"'`
17010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17011$as_echo "$ac_res" >&6; }
17012else
17013 # Is the header compilable?
17014{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17015$as_echo_n "checking $ac_header usability... " >&6; }
17016cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
17022$ac_includes_default
17023#include <$ac_header>
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (ac_try="$ac_compile"
17027case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17032$as_echo "$ac_try_echo") >&5
17033 (eval "$ac_compile") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } && {
17040 test -z "$ac_c_werror_flag" ||
17041 test ! -s conftest.err
17042 } && test -s conftest.$ac_objext; then
17043 ac_header_compiler=yes
17044else
17045 $as_echo "$as_me: failed program was:" >&5
17046sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 ac_header_compiler=no
17049fi
17050
17051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17053$as_echo "$ac_header_compiler" >&6; }
17054
17055# Is the header present?
17056{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17057$as_echo_n "checking $ac_header presence... " >&6; }
17058cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
17064#include <$ac_header>
17065_ACEOF
17066if { (ac_try="$ac_cpp conftest.$ac_ext"
17067case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070esac
17071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17072$as_echo "$ac_try_echo") >&5
17073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } >/dev/null && {
17080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 }; then
17083 ac_header_preproc=yes
17084else
17085 $as_echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088 ac_header_preproc=no
17089fi
17090
17091rm -f conftest.err conftest.$ac_ext
17092{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17093$as_echo "$ac_header_preproc" >&6; }
17094
17095# So? What about this header?
17096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17097 yes:no: )
17098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17099$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17101$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17102 ac_header_preproc=yes
17103 ;;
17104 no:yes:* )
17105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17106$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17108$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17110$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17112$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17114$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17116$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17117
17118 ;;
17119esac
17120{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17121$as_echo_n "checking for $ac_header... " >&6; }
17122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17123 $as_echo_n "(cached) " >&6
17124else
17125 eval "$as_ac_Header=\$ac_header_preproc"
17126fi
17127ac_res=`eval 'as_val=${'$as_ac_Header'}
17128 $as_echo "$as_val"'`
17129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17130$as_echo "$ac_res" >&6; }
17131
17132fi
17133as_val=`eval 'as_val=${'$as_ac_Header'}
17134 $as_echo "$as_val"'`
17135 if test "x$as_val" = x""yes; then
17136 cat >>confdefs.h <<_ACEOF
17137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17138_ACEOF
17139
17140else
17141 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17142$as_echo "$as_me: error: bailing out" >&2;}
17143 { (exit 1); exit 1; }; }
17144fi
17145
17146done
17147
17148fi
17149
ad6254c5
AK
17150if test x$HAVE_LIBDL = xyes; then
17151
17152for ac_header in dlfcn.h
17153do
ec6a6fbe 17154as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17157$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17159 $as_echo_n "(cached) " >&6
ad6254c5 17160fi
ec6a6fbe
AK
17161ac_res=`eval 'as_val=${'$as_ac_Header'}
17162 $as_echo "$as_val"'`
17163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17164$as_echo "$ac_res" >&6; }
ad6254c5
AK
17165else
17166 # Is the header compilable?
ec6a6fbe
AK
17167{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17168$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17169cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176#include <$ac_header>
17177_ACEOF
17178rm -f conftest.$ac_objext
7a197a62
AK
17179if { (ac_try="$ac_compile"
17180case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183esac
ec6a6fbe
AK
17184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17185$as_echo "$ac_try_echo") >&5
7a197a62 17186 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17187 ac_status=$?
8a2fc586
AK
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
ec6a6fbe 17191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17196 ac_header_compiler=yes
17197else
ec6a6fbe 17198 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
7a197a62 17201 ac_header_compiler=no
ad6254c5 17202fi
7a197a62
AK
17203
17204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17205{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17206$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17207
17208# Is the header present?
ec6a6fbe
AK
17209{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17210$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17211cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217#include <$ac_header>
17218_ACEOF
7a197a62
AK
17219if { (ac_try="$ac_cpp conftest.$ac_ext"
17220case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
ec6a6fbe
AK
17224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17225$as_echo "$ac_try_echo") >&5
7a197a62 17226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
ec6a6fbe 17231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17232 (exit $ac_status); } >/dev/null && {
17233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17235 }; then
ad6254c5
AK
17236 ac_header_preproc=yes
17237else
ec6a6fbe 17238 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ac_header_preproc=no
17242fi
7a197a62 17243
ad6254c5 17244rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17245{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17246$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17247
17248# So? What about this header?
8a2fc586
AK
17249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17250 yes:no: )
ec6a6fbe
AK
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17252$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17254$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17255 ac_header_preproc=yes
ad6254c5 17256 ;;
8a2fc586 17257 no:yes:* )
ec6a6fbe
AK
17258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17259$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17261$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17263$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17265$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17269$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17270
ad6254c5
AK
17271 ;;
17272esac
ec6a6fbe
AK
17273{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17274$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17276 $as_echo_n "(cached) " >&6
ad6254c5 17277else
8a2fc586 17278 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17279fi
ec6a6fbe
AK
17280ac_res=`eval 'as_val=${'$as_ac_Header'}
17281 $as_echo "$as_val"'`
17282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17283$as_echo "$ac_res" >&6; }
80992638 17284
8106cdd5 17285fi
ec6a6fbe
AK
17286as_val=`eval 'as_val=${'$as_ac_Header'}
17287 $as_echo "$as_val"'`
17288 if test "x$as_val" = x""yes; then
ad6254c5 17289 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17291_ACEOF
795ca3e5
AK
17292
17293else
ec6a6fbe
AK
17294 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17295$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17296 { (exit 1); exit 1; }; }
795ca3e5
AK
17297fi
17298
ad6254c5 17299done
80992638 17300
ad6254c5 17301fi
80992638 17302
ad6254c5 17303if test x$INTL = xyes; then
83912faa 17304
ad6254c5
AK
17305for ac_header in libintl.h
17306do
ec6a6fbe 17307as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17310$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17312 $as_echo_n "(cached) " >&6
ad6254c5 17313fi
ec6a6fbe
AK
17314ac_res=`eval 'as_val=${'$as_ac_Header'}
17315 $as_echo "$as_val"'`
17316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17317$as_echo "$ac_res" >&6; }
83912faa 17318else
ad6254c5 17319 # Is the header compilable?
ec6a6fbe
AK
17320{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17321$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17322cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329#include <$ac_header>
17330_ACEOF
17331rm -f conftest.$ac_objext
7a197a62
AK
17332if { (ac_try="$ac_compile"
17333case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336esac
ec6a6fbe
AK
17337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338$as_echo "$ac_try_echo") >&5
7a197a62 17339 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17340 ac_status=$?
8a2fc586
AK
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
ec6a6fbe 17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17345 (exit $ac_status); } && {
17346 test -z "$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17349 ac_header_compiler=yes
17350else
ec6a6fbe 17351 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
7a197a62 17354 ac_header_compiler=no
ad6254c5 17355fi
7a197a62
AK
17356
17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17358{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17359$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17360
17361# Is the header present?
ec6a6fbe
AK
17362{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17363$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17364cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370#include <$ac_header>
17371_ACEOF
7a197a62
AK
17372if { (ac_try="$ac_cpp conftest.$ac_ext"
17373case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376esac
ec6a6fbe
AK
17377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17378$as_echo "$ac_try_echo") >&5
7a197a62 17379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
ec6a6fbe 17384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 }; then
ad6254c5
AK
17389 ac_header_preproc=yes
17390else
ec6a6fbe 17391 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 ac_header_preproc=no
17395fi
7a197a62 17396
ad6254c5 17397rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17398{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17399$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17400
17401# So? What about this header?
8a2fc586
AK
17402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17403 yes:no: )
ec6a6fbe
AK
17404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17405$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17407$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17408 ac_header_preproc=yes
ad6254c5 17409 ;;
8a2fc586 17410 no:yes:* )
ec6a6fbe
AK
17411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17412$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17414$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17416$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17418$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17420$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17422$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17423
ad6254c5
AK
17424 ;;
17425esac
ec6a6fbe
AK
17426{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17427$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17429 $as_echo_n "(cached) " >&6
80992638 17430else
8a2fc586 17431 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17432fi
ec6a6fbe
AK
17433ac_res=`eval 'as_val=${'$as_ac_Header'}
17434 $as_echo "$as_val"'`
17435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17436$as_echo "$ac_res" >&6; }
83912faa 17437
69792976 17438fi
ec6a6fbe
AK
17439as_val=`eval 'as_val=${'$as_ac_Header'}
17440 $as_echo "$as_val"'`
17441 if test "x$as_val" = x""yes; then
ad6254c5 17442 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17443#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17444_ACEOF
69792976 17445
69792976 17446else
ec6a6fbe
AK
17447 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17448$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17449 { (exit 1); exit 1; }; }
80992638
AK
17450fi
17451
ad6254c5 17452done
69792976 17453
ad6254c5
AK
17454fi
17455
a5f46f6a
AK
17456if test x$UDEV_SYNC = xyes; then
17457
17458
17459for ac_header in sys/ipc.h sys/sem.h
17460do
17461as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17464$as_echo_n "checking for $ac_header... " >&6; }
17465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17466 $as_echo_n "(cached) " >&6
17467fi
17468ac_res=`eval 'as_val=${'$as_ac_Header'}
17469 $as_echo "$as_val"'`
17470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17471$as_echo "$ac_res" >&6; }
17472else
17473 # Is the header compilable?
17474{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17475$as_echo_n "checking $ac_header usability... " >&6; }
17476cat >conftest.$ac_ext <<_ACEOF
17477/* confdefs.h. */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h. */
17482$ac_includes_default
17483#include <$ac_header>
17484_ACEOF
17485rm -f conftest.$ac_objext
17486if { (ac_try="$ac_compile"
17487case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17492$as_echo "$ac_try_echo") >&5
17493 (eval "$ac_compile") 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } && {
17500 test -z "$ac_c_werror_flag" ||
17501 test ! -s conftest.err
17502 } && test -s conftest.$ac_objext; then
17503 ac_header_compiler=yes
17504else
17505 $as_echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_header_compiler=no
17509fi
17510
17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17513$as_echo "$ac_header_compiler" >&6; }
17514
17515# Is the header present?
17516{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17517$as_echo_n "checking $ac_header presence... " >&6; }
17518cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
17524#include <$ac_header>
17525_ACEOF
17526if { (ac_try="$ac_cpp conftest.$ac_ext"
17527case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532$as_echo "$ac_try_echo") >&5
17533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17534 ac_status=$?
17535 grep -v '^ *+' conftest.er1 >conftest.err
17536 rm -f conftest.er1
17537 cat conftest.err >&5
17538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } >/dev/null && {
17540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17541 test ! -s conftest.err
17542 }; then
17543 ac_header_preproc=yes
17544else
17545 $as_echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548 ac_header_preproc=no
17549fi
17550
17551rm -f conftest.err conftest.$ac_ext
17552{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17553$as_echo "$ac_header_preproc" >&6; }
17554
17555# So? What about this header?
17556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17557 yes:no: )
17558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17559$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17561$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17562 ac_header_preproc=yes
17563 ;;
17564 no:yes:* )
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17566$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17568$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17570$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17572$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17574$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17576$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17577
17578 ;;
17579esac
17580{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17581$as_echo_n "checking for $ac_header... " >&6; }
17582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583 $as_echo_n "(cached) " >&6
17584else
17585 eval "$as_ac_Header=\$ac_header_preproc"
17586fi
17587ac_res=`eval 'as_val=${'$as_ac_Header'}
17588 $as_echo "$as_val"'`
17589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17590$as_echo "$ac_res" >&6; }
17591
17592fi
17593as_val=`eval 'as_val=${'$as_ac_Header'}
17594 $as_echo "$as_val"'`
17595 if test "x$as_val" = x""yes; then
17596 cat >>confdefs.h <<_ACEOF
17597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17598_ACEOF
17599
17600else
17601 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17602$as_echo "$as_me: error: bailing out" >&2;}
17603 { (exit 1); exit 1; }; }
17604fi
17605
17606done
17607
17608fi
17609
a653923f
AK
17610################################################################################
17611# Extract the first word of "modprobe", so it can be a program name with args.
17612set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17614$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17615if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17616 $as_echo_n "(cached) " >&6
72b2cb61
AK
17617else
17618 case $MODPROBE_CMD in
17619 [\\/]* | ?:[\\/]*)
17620 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17621 ;;
17622 *)
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624for as_dir in $PATH
17625do
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
17628 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17630 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17632 break 2
17633 fi
17634done
17635done
7a197a62 17636IFS=$as_save_IFS
72b2cb61
AK
17637
17638 ;;
17639esac
17640fi
17641MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17642if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17643 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17644$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17645else
ec6a6fbe
AK
17646 { $as_echo "$as_me:$LINENO: result: no" >&5
17647$as_echo "no" >&6; }
72b2cb61
AK
17648fi
17649
a653923f 17650
7a197a62 17651
a653923f 17652if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17653
17654cat >>confdefs.h <<_ACEOF
17655#define MODPROBE_CMD "$MODPROBE_CMD"
17656_ACEOF
17657
a653923f
AK
17658fi
17659
b5c2529b 17660
a9b601e2
ZK
17661lvm_exec_prefix=$exec_prefix
17662test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17663test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17664
b5c2529b 17665cat >>confdefs.h <<_ACEOF
a9b601e2 17666#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17667_ACEOF
17668
17669
17670if test "$CLVMD" != none; then
17671 clvmd_prefix=$ac_default_prefix
17672 test "$prefix" != NONE && clvmd_prefix=$prefix
17673
17674cat >>confdefs.h <<_ACEOF
17675#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17676_ACEOF
17677
17678fi
17679
80992638 17680################################################################################
93bd259b
AK
17681if test "$BUILD_DMEVENTD" = yes; then
17682
17683# Check whether --with-dmeventd-pidfile was given.
17684if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17685 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17686else
71082be4 17687 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17688fi
17689
93bd259b 17690
71082be4
ZK
17691cat >>confdefs.h <<_ACEOF
17692#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17693_ACEOF
93bd259b 17694
71082be4 17695fi
93bd259b
AK
17696
17697if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17698
17699# Check whether --with-dmeventd-path was given.
17700if test "${with_dmeventd_path+set}" = set; then
71082be4 17701 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17702else
71082be4 17703 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17704fi
17705
93bd259b 17706
71082be4
ZK
17707cat >>confdefs.h <<_ACEOF
17708#define DMEVENTD_PATH "$DMEVENTD_PATH"
17709_ACEOF
3399ae32 17710
71082be4 17711fi
3399ae32 17712
71082be4 17713################################################################################
3399ae32
AK
17714
17715# Check whether --with-default-system-dir was given.
17716if test "${with_default_system_dir+set}" = set; then
71082be4 17717 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 17718else
71082be4 17719 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
17720fi
17721
71082be4 17722
3399ae32
AK
17723cat >>confdefs.h <<_ACEOF
17724#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17725_ACEOF
17726
17727
17728
3399ae32
AK
17729# Check whether --with-default-archive-subdir was given.
17730if test "${with_default_archive_subdir+set}" = set; then
71082be4 17731 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 17732else
71082be4 17733 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
17734fi
17735
71082be4 17736
3399ae32
AK
17737cat >>confdefs.h <<_ACEOF
17738#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17739_ACEOF
17740
17741
17742
3399ae32
AK
17743# Check whether --with-default-backup-subdir was given.
17744if test "${with_default_backup_subdir+set}" = set; then
71082be4 17745 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 17746else
71082be4 17747 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
17748fi
17749
71082be4 17750
3399ae32
AK
17751cat >>confdefs.h <<_ACEOF
17752#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17753_ACEOF
17754
17755
17756
3399ae32
AK
17757# Check whether --with-default-cache-subdir was given.
17758if test "${with_default_cache_subdir+set}" = set; then
71082be4 17759 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 17760else
71082be4 17761 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
17762fi
17763
71082be4 17764
3399ae32
AK
17765cat >>confdefs.h <<_ACEOF
17766#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17767_ACEOF
17768
17769
17770
3399ae32
AK
17771# Check whether --with-default-locking-dir was given.
17772if test "${with_default_locking_dir+set}" = set; then
71082be4 17773 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 17774else
71082be4 17775 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
17776fi
17777
71082be4 17778
3399ae32
AK
17779cat >>confdefs.h <<_ACEOF
17780#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17781_ACEOF
17782
17783
93bd259b 17784################################################################################
ec6a6fbe
AK
17785{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17786$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
17787
17788# Check whether --with-interface was given.
17789if test "${with_interface+set}" = set; then
71082be4 17790 withval=$with_interface; interface=$withval
93bd259b 17791else
71082be4 17792 interface=ioctl
93bd259b
AK
17793fi
17794
17795if [ "x$interface" != xioctl ];
17796then
ec6a6fbe
AK
17797 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17798$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
17799 { (exit 1); exit 1; }; }
17800fi
ec6a6fbe
AK
17801{ $as_echo "$as_me:$LINENO: result: $interface" >&5
17802$as_echo "$interface" >&6; }
93bd259b
AK
17803
17804################################################################################
db8b5af9 17805DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
17806
17807cat >>confdefs.h <<_ACEOF
17808#define DM_LIB_VERSION $DM_LIB_VERSION
17809_ACEOF
17810
17811
db8b5af9 17812DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 17813
db8b5af9 17814LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 17815
db8b5af9 17816VER=`cat "$srcdir"/VERSION`
bf456146 17817LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
17818VER=`echo "$VER" | $AWK '{print $1}'`
17819LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17820VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17821LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17822LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
17823LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17824LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 17825
80992638 17826################################################################################
fae0c576 17827
83912faa 17828
795ca3e5
AK
17829
17830
17831
17832
17833
17834
5a52dca9 17835
8ef2b021 17836
199e490e 17837
69792976
AK
17838
17839
17840
d0191583 17841
69792976 17842
8106cdd5
AK
17843
17844
17845
17846
17847
d68a82ec 17848
036f273a 17849
7d1552c9 17850
8106cdd5 17851
0a62c911 17852
8106cdd5 17853
4a7f3eb2 17854
4922197a
AK
17855
17856
d8ac0fbc 17857
1a9ea74d 17858
8a2fc586
AK
17859
17860
d0191583 17861
93bd259b
AK
17862
17863
17864
17865
17866
d0191583
JM
17867
17868
17869
17870
17871
8a2fc586 17872
19a2c6e0 17873
f7f0854e
ZK
17874
17875
3ceb7608 17876
8ce0cbda 17877
8b1a3214 17878
ec6a6fbe
AK
17879
17880
17881
17882
e2997b73
AK
17883
17884
17885
17886
17887
17888
a946372e
AK
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
ec6a6fbe 17900
33f732c5 17901
66e941e8 17902
d3c8211f 17903
7e3fe830 17904
a5f46f6a
AK
17905
17906
17907
572fefeb 17908
90c80887 17909
3399ae32
AK
17910
17911
17912
17913
17914
90c80887 17915
bf456146 17916
e1b8a236 17917
0878503f 17918
8fea97b7 17919
68f2de6d
AK
17920
17921
80992638 17922################################################################################
8fea97b7 17923ac_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 17924
ad6254c5 17925cat >confcache <<\_ACEOF
795ca3e5
AK
17926# This file is a shell script that caches the results of configure
17927# tests run on this system so they can be shared between configure
ad6254c5
AK
17928# scripts and configure runs, see configure's option --config-cache.
17929# It is not useful on other systems. If it contains results you don't
17930# want to keep, you may remove or edit it.
795ca3e5 17931#
ad6254c5
AK
17932# config.status only pays attention to the cache file if you give it
17933# the --recheck option to rerun configure.
795ca3e5 17934#
ad6254c5
AK
17935# `ac_cv_env_foo' variables (set or unset) will be overridden when
17936# loading this file, other *unset* `ac_cv_foo' will be assigned the
17937# following values.
17938
17939_ACEOF
17940
795ca3e5
AK
17941# The following way of writing the cache mishandles newlines in values,
17942# but we know of no workaround that is simple, portable, and efficient.
7a197a62 17943# So, we kill variables containing newlines.
795ca3e5
AK
17944# Ultrix sh set writes to stderr and can't be redirected directly,
17945# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
17946(
17947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17948 eval ac_val=\$$ac_var
17949 case $ac_val in #(
17950 *${as_nl}*)
17951 case $ac_var in #(
ec6a6fbe
AK
17952 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17953$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
17954 esac
17955 case $ac_var in #(
17956 _ | IFS | as_nl) ;; #(
ec6a6fbe 17957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
17958 *) $as_unset $ac_var ;;
17959 esac ;;
17960 esac
17961 done
17962
ad6254c5 17963 (set) 2>&1 |
7a197a62
AK
17964 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17965 *${as_nl}ac_space=\ *)
ad6254c5
AK
17966 # `set' does not quote correctly, so add quotes (double-quote
17967 # substitution turns \\\\ into \\, and sed turns \\ into \).
17968 sed -n \
8a2fc586
AK
17969 "s/'/'\\\\''/g;
17970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 17971 ;; #(
ad6254c5
AK
17972 *)
17973 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 17974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 17975 ;;
7a197a62
AK
17976 esac |
17977 sort
17978) |
ad6254c5 17979 sed '
7a197a62 17980 /^ac_cv_env_/b end
ad6254c5 17981 t clear
7a197a62 17982 :clear
ad6254c5
AK
17983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17984 t end
7a197a62
AK
17985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17986 :end' >>confcache
17987if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17988 if test -w "$cache_file"; then
17989 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
17990 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17991$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 17992 cat confcache >$cache_file
795ca3e5 17993 else
ec6a6fbe
AK
17994 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17995$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
17996 fi
17997fi
17998rm -f confcache
17999
795ca3e5
AK
18000test "x$prefix" = xNONE && prefix=$ac_default_prefix
18001# Let make expand exec_prefix.
18002test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18003
72b2cb61 18004DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18005
18006ac_libobjs=
18007ac_ltlibobjs=
18008for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18009 # 1. Remove the extension, and $U if already installed.
7a197a62 18010 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18011 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18012 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18013 # will be set to the directory where LIBOBJS objects are built.
18014 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18015 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18016done
18017LIBOBJS=$ac_libobjs
80992638 18018
ad6254c5
AK
18019LTLIBOBJS=$ac_ltlibobjs
18020
18021
18022
18023: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18024ac_write_fail=0
ad6254c5
AK
18025ac_clean_files_save=$ac_clean_files
18026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18027{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18028$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18029cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18030#! $SHELL
18031# Generated by $as_me.
795ca3e5 18032# Run this file to recreate the current configuration.
795ca3e5 18033# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18034# configure, is in config.log if it exists.
18035
18036debug=false
18037ac_cs_recheck=false
18038ac_cs_silent=false
18039SHELL=\${CONFIG_SHELL-$SHELL}
18040_ACEOF
18041
ec6a6fbe 18042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18043## --------------------- ##
18044## M4sh Initialization. ##
18045## --------------------- ##
18046
25fbec5b
AK
18047# Be more Bourne compatible
18048DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18049if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18050 emulate sh
18051 NULLCMD=:
ec6a6fbe 18052 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18053 # is contrary to our usage. Disable this feature.
18054 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18055 setopt NO_GLOB_SUBST
18056else
25fbec5b
AK
18057 case `(set -o) 2>/dev/null` in
18058 *posix*) set -o posix ;;
18059esac
18060
7a197a62 18061fi
25fbec5b
AK
18062
18063
7a197a62
AK
18064
18065
18066# PATH needs CR
18067# Avoid depending upon Character Ranges.
18068as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18069as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18070as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18071as_cr_digits='0123456789'
18072as_cr_alnum=$as_cr_Letters$as_cr_digits
18073
ec6a6fbe
AK
18074as_nl='
18075'
18076export as_nl
18077# Printing a long string crashes Solaris 7 /usr/bin/printf.
18078as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18080as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18081if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18082 as_echo='printf %s\n'
18083 as_echo_n='printf %s'
18084else
18085 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18086 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18087 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18088 else
ec6a6fbe
AK
18089 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18090 as_echo_n_body='eval
18091 arg=$1;
18092 case $arg in
18093 *"$as_nl"*)
18094 expr "X$arg" : "X\\(.*\\)$as_nl";
18095 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18096 esac;
18097 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18098 '
18099 export as_echo_n_body
18100 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18101 fi
ec6a6fbe
AK
18102 export as_echo_body
18103 as_echo='sh -c $as_echo_body as_echo'
18104fi
18105
18106# The user is always right.
18107if test "${PATH_SEPARATOR+set}" != set; then
18108 PATH_SEPARATOR=:
18109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18111 PATH_SEPARATOR=';'
18112 }
ad6254c5
AK
18113fi
18114
18115# Support unset when possible.
8a2fc586 18116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18117 as_unset=unset
18118else
18119 as_unset=false
18120fi
8106cdd5 18121
ad6254c5 18122
7a197a62
AK
18123# IFS
18124# We need space, tab and new line, in precisely that order. Quoting is
18125# there to prevent editors from complaining about space-tab.
18126# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18127# splitting by setting IFS to empty value.)
7a197a62
AK
18128IFS=" "" $as_nl"
18129
18130# Find who we are. Look in the path if we contain no directory separator.
18131case $0 in
18132 *[\\/]* ) as_myself=$0 ;;
18133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18134for as_dir in $PATH
18135do
18136 IFS=$as_save_IFS
18137 test -z "$as_dir" && as_dir=.
18138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18139done
18140IFS=$as_save_IFS
18141
18142 ;;
18143esac
18144# We did not find ourselves, most probably we were run as `sh COMMAND'
18145# in which case we are not to be found in the path.
18146if test "x$as_myself" = x; then
18147 as_myself=$0
18148fi
18149if test ! -f "$as_myself"; then
ec6a6fbe 18150 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18151 { (exit 1); exit 1; }
18152fi
18153
ad6254c5 18154# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18155for as_var in ENV MAIL MAILPATH
18156do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18157done
ad6254c5
AK
18158PS1='$ '
18159PS2='> '
18160PS4='+ '
18161
18162# NLS nuisances.
ec6a6fbe
AK
18163LC_ALL=C
18164export LC_ALL
18165LANGUAGE=C
18166export LANGUAGE
8106cdd5 18167
ad6254c5 18168# Required to use basename.
7a197a62
AK
18169if expr a : '\(a\)' >/dev/null 2>&1 &&
18170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18171 as_expr=expr
18172else
18173 as_expr=false
18174fi
8106cdd5 18175
7a197a62 18176if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18177 as_basename=basename
18178else
18179 as_basename=false
18180fi
18181
18182
18183# Name of the executable.
7a197a62 18184as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18185$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18186 X"$0" : 'X\(//\)$' \| \
7a197a62 18187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18188$as_echo X/"$0" |
7a197a62
AK
18189 sed '/^.*\/\([^/][^/]*\)\/*$/{
18190 s//\1/
18191 q
18192 }
18193 /^X\/\(\/\/\)$/{
18194 s//\1/
18195 q
18196 }
18197 /^X\/\(\/\).*/{
18198 s//\1/
18199 q
18200 }
18201 s/.*/./; q'`
ad6254c5 18202
7a197a62
AK
18203# CDPATH.
18204$as_unset CDPATH
ad6254c5
AK
18205
18206
ad6254c5 18207
ad6254c5
AK
18208 as_lineno_1=$LINENO
18209 as_lineno_2=$LINENO
ad6254c5 18210 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18211 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18212
ad6254c5
AK
18213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18214 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18215 # line-number line after each line using $LINENO; the second 'sed'
18216 # does the real work. The second script uses 'N' to pair each
18217 # line-number line with the line containing $LINENO, and appends
18218 # trailing '-' during substitution so that $LINENO is not a special
18219 # case at line end.
ad6254c5 18220 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18221 # scripts with optimization help from Paolo Bonzini. Blame Lee
18222 # E. McMahon (1931-1989) for sed's syntax. :-)
18223 sed -n '
18224 p
18225 /[$]LINENO/=
18226 ' <$as_myself |
ad6254c5 18227 sed '
7a197a62
AK
18228 s/[$]LINENO.*/&-/
18229 t lineno
18230 b
18231 :lineno
ad6254c5 18232 N
7a197a62
AK
18233 :loop
18234 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18235 t loop
7a197a62 18236 s/-\n.*//
ad6254c5 18237 ' >$as_me.lineno &&
7a197a62 18238 chmod +x "$as_me.lineno" ||
ec6a6fbe 18239 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18240 { (exit 1); exit 1; }; }
18241
18242 # Don't try to exec as it changes $[0], causing all sort of problems
18243 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18244 # original and so on. Autoconf is especially sensitive to this).
18245 . "./$as_me.lineno"
ad6254c5
AK
18246 # Exit status is that of the last command.
18247 exit
18248}
18249
18250
7a197a62
AK
18251if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18252 as_dirname=dirname
18253else
18254 as_dirname=false
18255fi
18256
18257ECHO_C= ECHO_N= ECHO_T=
18258case `echo -n x` in
18259-n*)
18260 case `echo 'x\c'` in
18261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18262 *) ECHO_C='\c';;
18263 esac;;
18264*)
18265 ECHO_N='-n';;
ad6254c5 18266esac
7a197a62
AK
18267if expr a : '\(a\)' >/dev/null 2>&1 &&
18268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18269 as_expr=expr
18270else
18271 as_expr=false
18272fi
80992638 18273
ad6254c5 18274rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18275if test -d conf$$.dir; then
18276 rm -f conf$$.dir/conf$$.file
18277else
18278 rm -f conf$$.dir
ec6a6fbe
AK
18279 mkdir conf$$.dir 2>/dev/null
18280fi
18281if (echo >conf$$.file) 2>/dev/null; then
18282 if ln -s conf$$.file conf$$ 2>/dev/null; then
18283 as_ln_s='ln -s'
18284 # ... but there are two gotchas:
18285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18287 # In both cases, we have to default to `cp -p'.
18288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18289 as_ln_s='cp -p'
18290 elif ln conf$$.file conf$$ 2>/dev/null; then
18291 as_ln_s=ln
18292 else
ad6254c5 18293 as_ln_s='cp -p'
ec6a6fbe 18294 fi
ad6254c5
AK
18295else
18296 as_ln_s='cp -p'
18297fi
7a197a62
AK
18298rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18299rmdir conf$$.dir 2>/dev/null
8106cdd5 18300
ad6254c5
AK
18301if mkdir -p . 2>/dev/null; then
18302 as_mkdir_p=:
18303else
8a2fc586 18304 test -d ./-p && rmdir ./-p
ad6254c5
AK
18305 as_mkdir_p=false
18306fi
18307
25fbec5b
AK
18308if test -x / >/dev/null 2>&1; then
18309 as_test_x='test -x'
7a197a62 18310else
25fbec5b
AK
18311 if ls -dL / >/dev/null 2>&1; then
18312 as_ls_L_option=L
18313 else
18314 as_ls_L_option=
18315 fi
18316 as_test_x='
18317 eval sh -c '\''
18318 if test -d "$1"; then
ec6a6fbe 18319 test -d "$1/.";
25fbec5b
AK
18320 else
18321 case $1 in
ec6a6fbe 18322 -*)set "./$1";;
25fbec5b
AK
18323 esac;
18324 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18325 ???[sx]*):;;*)false;;esac;fi
18326 '\'' sh
18327 '
7a197a62 18328fi
25fbec5b 18329as_executable_p=$as_test_x
ad6254c5
AK
18330
18331# Sed expression to map a string onto a valid CPP name.
8a2fc586 18332as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18333
18334# Sed expression to map a string onto a valid variable name.
8a2fc586 18335as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18336
18337
ad6254c5
AK
18338exec 6>&1
18339
7a197a62 18340# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18341# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18342# values after options handling.
18343ac_log="
ad6254c5 18344This file was extended by $as_me, which was
ec6a6fbe 18345generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18346
18347 CONFIG_FILES = $CONFIG_FILES
18348 CONFIG_HEADERS = $CONFIG_HEADERS
18349 CONFIG_LINKS = $CONFIG_LINKS
18350 CONFIG_COMMANDS = $CONFIG_COMMANDS
18351 $ $0 $@
18352
7a197a62
AK
18353on `(hostname || uname -n) 2>/dev/null | sed 1q`
18354"
18355
ad6254c5
AK
18356_ACEOF
18357
ec6a6fbe
AK
18358case $ac_config_files in *"
18359"*) set x $ac_config_files; shift; ac_config_files=$*;;
18360esac
18361
18362case $ac_config_headers in *"
18363"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18364esac
18365
18366
18367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18368# Files that config.status was made for.
68f2de6d
AK
18369config_files="$ac_config_files"
18370config_headers="$ac_config_headers"
ad6254c5 18371
7a197a62 18372_ACEOF
ad6254c5 18373
ec6a6fbe 18374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18375ac_cs_usage="\
18376\`$as_me' instantiates files from templates according to the
18377current configuration.
18378
ec6a6fbe 18379Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18380
18381 -h, --help print this help, then exit
25fbec5b 18382 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18383 -q, --quiet, --silent
18384 do not print progress messages
ad6254c5
AK
18385 -d, --debug don't remove temporary files
18386 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18387 --file=FILE[:TEMPLATE]
18388 instantiate the configuration file FILE
18389 --header=FILE[:TEMPLATE]
18390 instantiate the configuration header FILE
ad6254c5
AK
18391
18392Configuration files:
18393$config_files
18394
72b2cb61
AK
18395Configuration headers:
18396$config_headers
18397
ad6254c5 18398Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18399
7a197a62 18400_ACEOF
ec6a6fbe 18401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18402ac_cs_version="\\
18403config.status
ec6a6fbe
AK
18404configured by $0, generated by GNU Autoconf 2.63,
18405 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18406
ec6a6fbe 18407Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18408This config.status script is free software; the Free Software Foundation
18409gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18410
18411ac_pwd='$ac_pwd'
18412srcdir='$srcdir'
18413INSTALL='$INSTALL'
fddafd51 18414MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18415AWK='$AWK'
18416test -n "\$AWK" || AWK=awk
ad6254c5
AK
18417_ACEOF
18418
ec6a6fbe
AK
18419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18420# The default lists apply if the user does not specify any file.
ad6254c5
AK
18421ac_need_defaults=:
18422while test $# != 0
18423do
18424 case $1 in
18425 --*=*)
7a197a62
AK
18426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18428 ac_shift=:
18429 ;;
7a197a62 18430 *)
ad6254c5
AK
18431 ac_option=$1
18432 ac_optarg=$2
18433 ac_shift=shift
18434 ;;
ad6254c5
AK
18435 esac
18436
18437 case $ac_option in
18438 # Handling of the options.
ad6254c5
AK
18439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18440 ac_cs_recheck=: ;;
7a197a62 18441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18442 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18443 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18444 debug=: ;;
18445 --file | --fil | --fi | --f )
18446 $ac_shift
ec6a6fbe
AK
18447 case $ac_optarg in
18448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18449 esac
18450 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18451 ac_need_defaults=false;;
18452 --header | --heade | --head | --hea )
18453 $ac_shift
ec6a6fbe
AK
18454 case $ac_optarg in
18455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18456 esac
18457 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18458 ac_need_defaults=false;;
7a197a62
AK
18459 --he | --h)
18460 # Conflict between --help and --header
ec6a6fbe 18461 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18462Try \`$0 --help' for more information." >&2
18463 { (exit 1); exit 1; }; };;
18464 --help | --hel | -h )
ec6a6fbe 18465 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18467 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18468 ac_cs_silent=: ;;
18469
18470 # This is an error.
ec6a6fbe 18471 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18472Try \`$0 --help' for more information." >&2
ad6254c5
AK
18473 { (exit 1); exit 1; }; } ;;
18474
7a197a62
AK
18475 *) ac_config_targets="$ac_config_targets $1"
18476 ac_need_defaults=false ;;
ad6254c5
AK
18477
18478 esac
18479 shift
18480done
18481
18482ac_configure_extra_args=
18483
18484if $ac_cs_silent; then
18485 exec 6>/dev/null
18486 ac_configure_extra_args="$ac_configure_extra_args --silent"
18487fi
18488
18489_ACEOF
ec6a6fbe 18490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18491if \$ac_cs_recheck; then
ec6a6fbe
AK
18492 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18493 shift
18494 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18495 CONFIG_SHELL='$SHELL'
7a197a62 18496 export CONFIG_SHELL
ec6a6fbe 18497 exec "\$@"
ad6254c5
AK
18498fi
18499
18500_ACEOF
ec6a6fbe 18501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18502exec 5>>config.log
18503{
18504 echo
18505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18506## Running $as_me. ##
18507_ASBOX
ec6a6fbe 18508 $as_echo "$ac_log"
7a197a62 18509} >&5
ad6254c5 18510
7a197a62 18511_ACEOF
ec6a6fbe 18512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18513_ACEOF
ad6254c5 18514
ec6a6fbe 18515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18516
18517# Handling of arguments.
ad6254c5
AK
18518for ac_config_target in $ac_config_targets
18519do
7a197a62
AK
18520 case $ac_config_target in
18521 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18522 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18523 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18524 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18525 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18526 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18527 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18528 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18529 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18530 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18531 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18532 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18533 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18534 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18535 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18536 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18537 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18538 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18539 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18540 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18541 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18542 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18543 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18544 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18545 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18546 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18547 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18548 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18549 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18550 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18551 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18552 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18553 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18554 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18555 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18556 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18557 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18558 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 18559
ec6a6fbe
AK
18560 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18561$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18562 { (exit 1); exit 1; }; };;
80992638 18563 esac
ad6254c5
AK
18564done
18565
7a197a62 18566
ad6254c5
AK
18567# If the user did not use the arguments to specify the items to instantiate,
18568# then the envvar interface is used. Set only those that are not.
18569# We use the long form for the default assignment because of an extremely
18570# bizarre bug on SunOS 4.1.3.
18571if $ac_need_defaults; then
18572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18574fi
18575
18576# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18577# simply because there is no reason against having it here, and in addition,
ad6254c5 18578# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18579# Hook for its removal unless debugging.
18580# Note that there is a small window in which the directory will not be cleaned:
18581# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18582$debug ||
18583{
7a197a62
AK
18584 tmp=
18585 trap 'exit_status=$?
18586 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18587' 0
ad6254c5
AK
18588 trap '{ (exit 1); exit 1; }' 1 2 13 15
18589}
ad6254c5
AK
18590# Create a (secure) tmp directory for tmp files.
18591
18592{
7a197a62 18593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18594 test -n "$tmp" && test -d "$tmp"
18595} ||
18596{
7a197a62
AK
18597 tmp=./conf$$-$RANDOM
18598 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18599} ||
18600{
ec6a6fbe 18601 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18602 { (exit 1); exit 1; }
18603}
18604
ec6a6fbe
AK
18605# Set up the scripts for CONFIG_FILES section.
18606# No need to generate them if there are no CONFIG_FILES.
18607# This happens for instance with `./config.status config.h'.
1995c9ff 18608if test -n "$CONFIG_FILES"; then
7a197a62 18609
68f2de6d 18610
ec6a6fbe
AK
18611ac_cr='\r'
18612ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18613if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18614 ac_cs_awk_cr='\\r'
18615else
18616 ac_cs_awk_cr=$ac_cr
1995c9ff 18617fi
7a197a62 18618
ec6a6fbe 18619echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18620_ACEOF
7a197a62 18621
8106cdd5 18622
ec6a6fbe
AK
18623{
18624 echo "cat >conf$$subs.awk <<_ACEOF" &&
18625 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18626 echo "_ACEOF"
18627} >conf$$subs.sh ||
18628 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18629$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18630 { (exit 1); exit 1; }; }
18631ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18632ac_delim='%!_!# '
18633for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18634 . ./conf$$subs.sh ||
18635 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18636$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18637 { (exit 1); exit 1; }; }
18638
18639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18640 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18641 break
18642 elif $ac_last_try; then
ec6a6fbe
AK
18643 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18644$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18645 { (exit 1); exit 1; }; }
18646 else
18647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18648 fi
18649done
ec6a6fbe
AK
18650rm -f conf$$subs.sh
18651
18652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18653cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18654_ACEOF
18655sed -n '
18656h
18657s/^/S["/; s/!.*/"]=/
18658p
18659g
18660s/^[^!]*!//
18661:repl
18662t repl
18663s/'"$ac_delim"'$//
18664t delim
18665:nl
18666h
18667s/\(.\{148\}\).*/\1/
18668t more1
18669s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18670p
18671n
18672b repl
18673:more1
18674s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18675p
18676g
18677s/.\{148\}//
18678t nl
18679:delim
18680h
18681s/\(.\{148\}\).*/\1/
18682t more2
18683s/["\\]/\\&/g; s/^/"/; s/$/"/
18684p
18685b
18686:more2
18687s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18688p
18689g
18690s/.\{148\}//
18691t delim
18692' <conf$$subs.awk | sed '
18693/^[^""]/{
18694 N
18695 s/\n//
18696}
18697' >>$CONFIG_STATUS || ac_write_fail=1
18698rm -f conf$$subs.awk
18699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18700_ACAWK
18701cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18702 for (key in S) S_is_set[key] = 1
18703 FS = "\a"
7a197a62 18704
ec6a6fbe
AK
18705}
18706{
18707 line = $ 0
18708 nfields = split(line, field, "@")
18709 substed = 0
18710 len = length(field[1])
18711 for (i = 2; i < nfields; i++) {
18712 key = field[i]
18713 keylen = length(key)
18714 if (S_is_set[key]) {
18715 value = S[key]
18716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18717 len += length(value) + length(field[++i])
18718 substed = 1
18719 } else
18720 len += 1 + keylen
18721 }
18722
18723 print line
18724}
fddafd51 18725
ec6a6fbe 18726_ACAWK
1995c9ff 18727_ACEOF
ec6a6fbe
AK
18728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18729if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18730 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18731else
18732 cat
18733fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18734 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18735$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18736 { (exit 1); exit 1; }; }
7a197a62
AK
18737_ACEOF
18738
7a197a62
AK
18739# VPATH may cause trouble with some makes, so we remove $(srcdir),
18740# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18741# trailing colons and then remove the whole line if VPATH becomes empty
18742# (actually we leave an empty line to preserve line numbers).
18743if test "x$srcdir" = x.; then
18744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18745s/:*\$(srcdir):*/:/
18746s/:*\${srcdir}:*/:/
18747s/:*@srcdir@:*/:/
18748s/^\([^=]*=[ ]*\):*/\1/
18749s/:*$//
18750s/^[^=]*=[ ]*$//
18751}'
18752fi
18753
ec6a6fbe 18754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18755fi # test -n "$CONFIG_FILES"
18756
ec6a6fbe
AK
18757# Set up the scripts for CONFIG_HEADERS section.
18758# No need to generate them if there are no CONFIG_HEADERS.
18759# This happens for instance with `./config.status Makefile'.
18760if test -n "$CONFIG_HEADERS"; then
18761cat >"$tmp/defines.awk" <<\_ACAWK ||
18762BEGIN {
18763_ACEOF
18764
18765# Transform confdefs.h into an awk script `defines.awk', embedded as
18766# here-document in config.status, that substitutes the proper values into
18767# config.h.in to produce config.h.
18768
18769# Create a delimiter string that does not exist in confdefs.h, to ease
18770# handling of long lines.
18771ac_delim='%!_!# '
18772for ac_last_try in false false :; do
18773 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18774 if test -z "$ac_t"; then
18775 break
18776 elif $ac_last_try; then
18777 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18778$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18779 { (exit 1); exit 1; }; }
18780 else
18781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18782 fi
18783done
18784
18785# For the awk script, D is an array of macro values keyed by name,
18786# likewise P contains macro parameters if any. Preserve backslash
18787# newline sequences.
18788
18789ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18790sed -n '
18791s/.\{148\}/&'"$ac_delim"'/g
18792t rset
18793:rset
18794s/^[ ]*#[ ]*define[ ][ ]*/ /
18795t def
18796d
18797:def
18798s/\\$//
18799t bsnl
18800s/["\\]/\\&/g
18801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18802D["\1"]=" \3"/p
18803s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18804d
18805:bsnl
18806s/["\\]/\\&/g
18807s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18808D["\1"]=" \3\\\\\\n"\\/p
18809t cont
18810s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18811t cont
18812d
18813:cont
18814n
18815s/.\{148\}/&'"$ac_delim"'/g
18816t clear
18817:clear
18818s/\\$//
18819t bsnlc
18820s/["\\]/\\&/g; s/^/"/; s/$/"/p
18821d
18822:bsnlc
18823s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18824b cont
18825' <confdefs.h | sed '
18826s/'"$ac_delim"'/"\\\
18827"/g' >>$CONFIG_STATUS || ac_write_fail=1
18828
18829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 for (key in D) D_is_set[key] = 1
18831 FS = "\a"
18832}
18833/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18834 line = \$ 0
18835 split(line, arg, " ")
18836 if (arg[1] == "#") {
18837 defundef = arg[2]
18838 mac1 = arg[3]
18839 } else {
18840 defundef = substr(arg[1], 2)
18841 mac1 = arg[2]
18842 }
18843 split(mac1, mac2, "(") #)
18844 macro = mac2[1]
18845 prefix = substr(line, 1, index(line, defundef) - 1)
18846 if (D_is_set[macro]) {
18847 # Preserve the white space surrounding the "#".
18848 print prefix "define", macro P[macro] D[macro]
18849 next
18850 } else {
18851 # Replace #undef with comments. This is necessary, for example,
18852 # in the case of _POSIX_SOURCE, which is predefined and required
18853 # on some systems where configure will not decide to define it.
18854 if (defundef == "undef") {
18855 print "/*", prefix defundef, macro, "*/"
18856 next
18857 }
18858 }
18859}
18860{ print }
18861_ACAWK
18862_ACEOF
18863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18864 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18865$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18866 { (exit 1); exit 1; }; }
18867fi # test -n "$CONFIG_HEADERS"
18868
7a197a62 18869
ec6a6fbe
AK
18870eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18871shift
18872for ac_tag
7a197a62
AK
18873do
18874 case $ac_tag in
18875 :[FHLC]) ac_mode=$ac_tag; continue;;
18876 esac
18877 case $ac_mode$ac_tag in
18878 :[FHL]*:*);;
ec6a6fbe
AK
18879 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18880$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
18881 { (exit 1); exit 1; }; };;
18882 :[FH]-) ac_tag=-:-;;
18883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18884 esac
18885 ac_save_IFS=$IFS
18886 IFS=:
18887 set x $ac_tag
18888 IFS=$ac_save_IFS
18889 shift
18890 ac_file=$1
18891 shift
18892
18893 case $ac_mode in
18894 :L) ac_source=$1;;
18895 :[FH])
18896 ac_file_inputs=
18897 for ac_f
18898 do
18899 case $ac_f in
18900 -) ac_f="$tmp/stdin";;
18901 *) # Look for the file first in the build tree, then in the source tree
18902 # (if the path is not absolute). The absolute path cannot be DOS-style,
18903 # because $ac_f cannot contain `:'.
18904 test -f "$ac_f" ||
18905 case $ac_f in
18906 [\\/$]*) false;;
18907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18908 esac ||
ec6a6fbe
AK
18909 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18910$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
18911 { (exit 1); exit 1; }; };;
18912 esac
ec6a6fbe
AK
18913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18914 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
18915 done
18916
18917 # Let's still pretend it is `configure' which instantiates (i.e., don't
18918 # use $as_me), people would be surprised to read:
18919 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
18920 configure_input='Generated from '`
18921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18922 `' by configure.'
7a197a62
AK
18923 if test x"$ac_file" != x-; then
18924 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
18925 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18926$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 18927 fi
ec6a6fbe
AK
18928 # Neutralize special characters interpreted by sed in replacement strings.
18929 case $configure_input in #(
18930 *\&* | *\|* | *\\* )
18931 ac_sed_conf_input=`$as_echo "$configure_input" |
18932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18933 *) ac_sed_conf_input=$configure_input;;
18934 esac
7a197a62
AK
18935
18936 case $ac_tag in
ec6a6fbe
AK
18937 *:-:* | *:-) cat >"$tmp/stdin" \
18938 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18939$as_echo "$as_me: error: could not create $ac_file" >&2;}
18940 { (exit 1); exit 1; }; } ;;
7a197a62
AK
18941 esac
18942 ;;
80992638 18943 esac
8106cdd5 18944
7a197a62 18945 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 18946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18947 X"$ac_file" : 'X\(//\)[^/]' \| \
18948 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 18949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18950$as_echo X"$ac_file" |
7a197a62
AK
18951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18952 s//\1/
18953 q
18954 }
18955 /^X\(\/\/\)[^/].*/{
18956 s//\1/
18957 q
18958 }
18959 /^X\(\/\/\)$/{
18960 s//\1/
18961 q
18962 }
18963 /^X\(\/\).*/{
18964 s//\1/
18965 q
18966 }
18967 s/.*/./; q'`
18968 { as_dir="$ac_dir"
18969 case $as_dir in #(
18970 -*) as_dir=./$as_dir;;
18971 esac
18972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 18973 as_dirs=
7a197a62
AK
18974 while :; do
18975 case $as_dir in #(
ec6a6fbe 18976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
18977 *) as_qdir=$as_dir;;
18978 esac
18979 as_dirs="'$as_qdir' $as_dirs"
18980 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 18981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
18982 X"$as_dir" : 'X\(//\)[^/]' \| \
18983 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 18984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18985$as_echo X"$as_dir" |
7a197a62
AK
18986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18987 s//\1/
18988 q
18989 }
18990 /^X\(\/\/\)[^/].*/{
18991 s//\1/
18992 q
18993 }
18994 /^X\(\/\/\)$/{
18995 s//\1/
18996 q
18997 }
18998 /^X\(\/\).*/{
18999 s//\1/
19000 q
19001 }
19002 s/.*/./; q'`
19003 test -d "$as_dir" && break
ad6254c5 19004 done
7a197a62 19005 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19006 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19007$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19008 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19009 ac_builddir=.
19010
7a197a62
AK
19011case "$ac_dir" in
19012.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19013*)
ec6a6fbe 19014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19015 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19017 case $ac_top_builddir_sub in
19018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19020 esac ;;
19021esac
19022ac_abs_top_builddir=$ac_pwd
19023ac_abs_builddir=$ac_pwd$ac_dir_suffix
19024# for backward compatibility:
19025ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19026
19027case $srcdir in
7a197a62 19028 .) # We are building in place.
ad6254c5 19029 ac_srcdir=.
7a197a62
AK
19030 ac_top_srcdir=$ac_top_builddir_sub
19031 ac_abs_top_srcdir=$ac_pwd ;;
19032 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19033 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19034 ac_top_srcdir=$srcdir
19035 ac_abs_top_srcdir=$srcdir ;;
19036 *) # Relative name.
19037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19038 ac_top_srcdir=$ac_top_build_prefix$srcdir
19039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19040esac
7a197a62 19041ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19042
ad6254c5 19043
7a197a62
AK
19044 case $ac_mode in
19045 :F)
19046 #
19047 # CONFIG_FILE
19048 #
ad6254c5
AK
19049
19050 case $INSTALL in
19051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19053 esac
fddafd51
ZK
19054 ac_MKDIR_P=$MKDIR_P
19055 case $MKDIR_P in
19056 [\\/$]* | ?:[\\/]* ) ;;
19057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19058 esac
7a197a62 19059_ACEOF
795ca3e5 19060
ec6a6fbe 19061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19062# If the template does not know about datarootdir, expand it.
19063# FIXME: This hack should be removed a few years after 2.60.
19064ac_datarootdir_hack=; ac_datarootdir_seen=
19065
ec6a6fbe
AK
19066ac_sed_dataroot='
19067/datarootdir/ {
7a197a62
AK
19068 p
19069 q
19070}
19071/@datadir@/p
19072/@docdir@/p
19073/@infodir@/p
19074/@localedir@/p
19075/@mandir@/p
ec6a6fbe
AK
19076'
19077case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19078*datarootdir*) ac_datarootdir_seen=yes;;
19079*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19080 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19081$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19082_ACEOF
ec6a6fbe 19083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19084 ac_datarootdir_hack='
19085 s&@datadir@&$datadir&g
19086 s&@docdir@&$docdir&g
19087 s&@infodir@&$infodir&g
19088 s&@localedir@&$localedir&g
19089 s&@mandir@&$mandir&g
19090 s&\\\${datarootdir}&$datarootdir&g' ;;
19091esac
19092_ACEOF
19093
19094# Neutralize VPATH when `$srcdir' = `.'.
19095# Shell code in configure.ac might set extrasub.
19096# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19098ac_sed_extra="$ac_vpsub
ad6254c5
AK
19099$extrasub
19100_ACEOF
ec6a6fbe 19101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19102:t
19103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19104s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19105s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19106s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19107s&@srcdir@&$ac_srcdir&;t t
19108s&@abs_srcdir@&$ac_abs_srcdir&;t t
19109s&@top_srcdir@&$ac_top_srcdir&;t t
19110s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19111s&@builddir@&$ac_builddir&;t t
19112s&@abs_builddir@&$ac_abs_builddir&;t t
19113s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19114s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19115s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19116$ac_datarootdir_hack
ec6a6fbe
AK
19117"
19118eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19119 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19120$as_echo "$as_me: error: could not create $ac_file" >&2;}
19121 { (exit 1); exit 1; }; }
7a197a62
AK
19122
19123test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19126 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19127which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19128$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19129which seems to be undefined. Please make sure it is defined." >&2;}
19130
19131 rm -f "$tmp/stdin"
72b2cb61 19132 case $ac_file in
ec6a6fbe
AK
19133 -) cat "$tmp/out" && rm -f "$tmp/out";;
19134 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19135 esac \
19136 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19137$as_echo "$as_me: error: could not create $ac_file" >&2;}
19138 { (exit 1); exit 1; }; }
7a197a62
AK
19139 ;;
19140 :H)
19141 #
19142 # CONFIG_HEADER
19143 #
72b2cb61 19144 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19145 {
19146 $as_echo "/* $configure_input */" \
19147 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19148 } >"$tmp/config.h" \
19149 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19150$as_echo "$as_me: error: could not create $ac_file" >&2;}
19151 { (exit 1); exit 1; }; }
19152 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19153 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19154$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19155 else
ec6a6fbe
AK
19156 rm -f "$ac_file"
19157 mv "$tmp/config.h" "$ac_file" \
19158 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19159$as_echo "$as_me: error: could not create $ac_file" >&2;}
19160 { (exit 1); exit 1; }; }
72b2cb61
AK
19161 fi
19162 else
ec6a6fbe
AK
19163 $as_echo "/* $configure_input */" \
19164 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19165 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19166$as_echo "$as_me: error: could not create -" >&2;}
19167 { (exit 1); exit 1; }; }
72b2cb61 19168 fi
7a197a62
AK
19169 ;;
19170
19171
19172 esac
19173
19174done # for ac_tag
795ca3e5 19175
795ca3e5 19176
ad6254c5
AK
19177{ (exit 0); exit 0; }
19178_ACEOF
795ca3e5 19179chmod +x $CONFIG_STATUS
ad6254c5
AK
19180ac_clean_files=$ac_clean_files_save
19181
ec6a6fbe
AK
19182test $ac_write_fail = 0 ||
19183 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19184$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19185 { (exit 1); exit 1; }; }
19186
ad6254c5
AK
19187
19188# configure is writing to config.log, and then calls config.status.
19189# config.status does its own redirection, appending to config.log.
19190# Unfortunately, on DOS this fails, as config.log is still kept open
19191# by configure, so config.status won't be able to write to it; its
19192# output is simply discarded. So we exec the FD to /dev/null,
19193# effectively closing config.log, so it can be properly (re)opened and
19194# appended to by config.status. When coming back to configure, we
19195# need to make the FD available again.
19196if test "$no_create" != yes; then
19197 ac_cs_success=:
19198 ac_config_status_args=
19199 test "$silent" = yes &&
19200 ac_config_status_args="$ac_config_status_args --quiet"
19201 exec 5>/dev/null
19202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19203 exec 5>>config.log
19204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19205 # would make configure fail if this is the last instruction.
19206 $ac_cs_success || { (exit 1); exit 1; }
19207fi
ec6a6fbe
AK
19208if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19209 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19210$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19211fi
795ca3e5 19212
2dc95e1c
AK
19213
19214if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19215 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19216$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19217fi
This page took 2.502739 seconds and 5 git commands to generate.