]> sourceware.org Git - lvm2.git/blame - configure
add not-yet-working udev options
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
649LIB_PTHREAD
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
654POOL
655PKGCONFIG
656OWNER
657MIRRORS
658LVM_RELEASE_DATE
659LVM_RELEASE
660LVM_PATCHLEVEL
661LVM_MINOR
662LVM_MAJOR
bf456146 663LVM_LIBAPI
ec6a6fbe 664LVM_VERSION
ec6a6fbe
AK
665LVM1_FALLBACK
666LVM1
667LOCALEDIR
668LIB_SUFFIX
669LDDEPS
670JOBS
671INTL_PACKAGE
672INTL
673HAVE_SELINUX
674HAVE_REALTIME
675HAVE_LIBDL
676GROUP
677FSADM
678DM_LIB_PATCHLEVEL
679DM_LIB_VERSION
680DM_IOCTLS
681DM_DEVICE_UID
682DM_DEVICE_MODE
683DM_DEVICE_GID
684DM_COMPAT
685DMEVENTD
686DEVMAPPER
687DEBUG
688COPTIMISE_FLAG
e2997b73 689CONFDIR
ec6a6fbe
AK
690CMDLIB
691CLVMD
692CLUSTER
693CLDWHOLEARCHIVE
694CLDNOWHOLEARCHIVE
695CLDFLAGS
696BUILD_DMEVENTD
572fefeb 697APPLIB
ec6a6fbe
AK
698MODPROBE_CMD
699MSGFMT
700LVM2CMD_LIB
572fefeb 701LVM2APP_LIB
ec6a6fbe
AK
702GENHTML
703LCOV
e2997b73
AK
704CPG_LIBS
705CPG_CFLAGS
706CONFDB_LIBS
707CONFDB_CFLAGS
708QUORUM_LIBS
709QUORUM_CFLAGS
710PKG_CONFIG
ec6a6fbe
AK
711POW_LIB
712LIBOBJS
713ALLOCA
714CSCOPE_CMD
715CFLOW_CMD
716RANLIB
717MKDIR_P
718SET_MAKE
719LN_S
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723EGREP
724GREP
725CPP
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AWK
734SED
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
ad6254c5 784ac_subst_files=''
ec6a6fbe
AK
785ac_user_opts='
786enable_option_checking
787enable_static_link
788with_user
789with_group
790with_device_uid
791with_device_gid
792with_device_mode
793enable_lvm1_fallback
794with_lvm1
795with_pool
796with_cluster
797with_snapshots
798with_mirrors
799enable_readline
800enable_realtime
801with_clvmd
802enable_debug
803with_optimisation
804enable_profiling
805enable_devmapper
a5f46f6a
AK
806enable_udev_sync
807enable_udev_rules
ec6a6fbe
AK
808enable_compat
809enable_ioctl
810enable_o_direct
572fefeb 811enable_applib
ec6a6fbe
AK
812enable_cmdlib
813enable_pkgconfig
814enable_fsadm
815enable_dmeventd
816enable_selinux
817enable_nls
818with_localedir
819with_confdir
820with_staticdir
821with_usrlibdir
822with_usrsbindir
a5f46f6a 823with_udev_prefix
ec6a6fbe
AK
824with_dmeventd_pidfile
825with_dmeventd_path
826with_interface
827'
7a197a62
AK
828 ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
25fbec5b 834LIBS
7a197a62 835CPPFLAGS
e2997b73
AK
836CPP
837PKG_CONFIG
838QUORUM_CFLAGS
839QUORUM_LIBS
840CONFDB_CFLAGS
841CONFDB_LIBS
842CPG_CFLAGS
843CPG_LIBS'
7a197a62 844
795ca3e5
AK
845
846# Initialize some variables set by options.
ad6254c5
AK
847ac_init_help=
848ac_init_version=false
ec6a6fbe
AK
849ac_unrecognized_opts=
850ac_unrecognized_sep=
795ca3e5
AK
851# The variables have the same names as the options, with
852# dashes changed to underlines.
ad6254c5 853cache_file=/dev/null
795ca3e5 854exec_prefix=NONE
795ca3e5 855no_create=
795ca3e5
AK
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
795ca3e5
AK
864verbose=
865x_includes=NONE
866x_libraries=NONE
ad6254c5
AK
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 873# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
7a197a62
AK
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
795ca3e5
AK
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
795ca3e5
AK
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
7a197a62
AK
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
795ca3e5 893
795ca3e5 894ac_prev=
7a197a62 895ac_dashdash=
795ca3e5
AK
896for ac_option
897do
795ca3e5
AK
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
7a197a62 900 eval $ac_prev=\$ac_option
795ca3e5
AK
901 ac_prev=
902 continue
903 fi
904
7a197a62
AK
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
795ca3e5
AK
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
7a197a62
AK
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
795ca3e5
AK
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 919 bindir=$ac_optarg ;;
795ca3e5
AK
920
921 -build | --build | --buil | --bui | --bu)
ad6254c5 922 ac_prev=build_alias ;;
795ca3e5 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 924 build_alias=$ac_optarg ;;
795ca3e5
AK
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
795ca3e5 935
7a197a62 936 -datadir | --datadir | --datadi | --datad)
795ca3e5 937 ac_prev=datadir ;;
7a197a62 938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 939 datadir=$ac_optarg ;;
795ca3e5 940
7a197a62
AK
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
795ca3e5 948 -disable-* | --disable-*)
ec6a6fbe 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 950 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 953 { (exit 1); exit 1; }; }
ec6a6fbe
AK
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
7a197a62
AK
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
795ca3e5
AK
974
975 -enable-* | --enable-*)
ec6a6fbe 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 977 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 980 { (exit 1); exit 1; }; }
ec6a6fbe
AK
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
ad6254c5 999 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
ad6254c5
AK
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
795ca3e5
AK
1011
1012 -host | --host | --hos | --ho)
ad6254c5 1013 ac_prev=host_alias ;;
795ca3e5 1014 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1015 host_alias=$ac_optarg ;;
795ca3e5 1016
7a197a62
AK
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
795ca3e5
AK
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1028 includedir=$ac_optarg ;;
795ca3e5
AK
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1033 infodir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1038 libdir=$ac_optarg ;;
795ca3e5
AK
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1045 libexecdir=$ac_optarg ;;
795ca3e5 1046
7a197a62
AK
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
795ca3e5 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1053 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1057 localstatedir=$ac_optarg ;;
795ca3e5
AK
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1062 mandir=$ac_optarg ;;
795ca3e5
AK
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1069 | --no-cr | --no-c | -n)
795ca3e5
AK
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1083 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1088 prefix=$ac_optarg ;;
795ca3e5
AK
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1095 program_prefix=$ac_optarg ;;
795ca3e5
AK
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1102 program_suffix=$ac_optarg ;;
795ca3e5
AK
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1119 program_transform_name=$ac_optarg ;;
795ca3e5 1120
7a197a62
AK
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
795ca3e5
AK
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
ad6254c5 1139 sbindir=$ac_optarg ;;
795ca3e5
AK
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
ad6254c5 1150 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
ad6254c5 1155 site=$ac_optarg ;;
795ca3e5
AK
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1160 srcdir=$ac_optarg ;;
795ca3e5
AK
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1167 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1170 ac_prev=target_alias ;;
795ca3e5 1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1172 target_alias=$ac_optarg ;;
795ca3e5
AK
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
ad6254c5
AK
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
795ca3e5
AK
1179
1180 -with-* | --with-*)
ec6a6fbe 1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1182 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1185 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1196
1197 -without-* | --without-*)
ec6a6fbe 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1199 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1202 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207"with_$ac_useropt"
1208"*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
795ca3e5
AK
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1223 x_includes=$ac_optarg ;;
795ca3e5
AK
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1230 x_libraries=$ac_optarg ;;
795ca3e5 1231
ec6a6fbe 1232 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1233Try \`$0 --help' for more information." >&2
1234 { (exit 1); exit 1; }; }
795ca3e5
AK
1235 ;;
1236
ad6254c5
AK
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1241 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1242 { (exit 1); exit 1; }; }
7a197a62 1243 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1244 export $ac_envvar ;;
1245
795ca3e5 1246 *)
ad6254c5 1247 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1252 ;;
1253
1254 esac
1255done
1256
1257if test -n "$ac_prev"; then
ad6254c5 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1259 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1260 { (exit 1); exit 1; }; }
795ca3e5 1261fi
795ca3e5 1262
ec6a6fbe
AK
1263if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1267 { (exit 1); exit 1; }; } ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
7a197a62
AK
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
795ca3e5 1277do
7a197a62 1278 eval ac_val=\$$ac_var
ec6a6fbe
AK
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
ad6254c5 1286 case $ac_val in
7a197a62
AK
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1289 esac
ec6a6fbe 1290 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1291 { (exit 1); exit 1; }; }
795ca3e5
AK
1292done
1293
ad6254c5
AK
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
ec6a6fbe 1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
8106cdd5 1311
ad6254c5
AK
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
795ca3e5 1316
795ca3e5 1317
7a197a62
AK
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1321 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1324 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1325 { (exit 1); exit 1; }; }
1326
1327
795ca3e5
AK
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
7a197a62 1331 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337$as_echo X"$as_myself" |
7a197a62
AK
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
795ca3e5 1355 srcdir=$ac_confdir
7a197a62 1356 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
7a197a62
AK
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1364 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1365 { (exit 1); exit 1; }; }
795ca3e5 1366fi
7a197a62
AK
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
ec6a6fbe 1369 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1370 { (exit 1); exit 1; }; }
7a197a62
AK
1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
ad6254c5
AK
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures this package to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
ad6254c5
AK
1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1418 [$ac_default_prefix]
ad6254c5 1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1420 [PREFIX]
ad6254c5
AK
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
ec6a6fbe
AK
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461
1462 cat <<\_ACEOF
1463
1464Optional Features:
ec6a6fbe 1465 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1468 --enable-static_link Use this to link the tools to their libraries
1469 statically. Default is dynamic linking
ad6254c5
AK
1470 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1471 device-mapper is missing from the kernel
1b523347 1472 --disable-readline Disable readline support
3d978351 1473 --disable-realtime Disable realtime clock support
ad6254c5 1474 --enable-debug Enable debugging
5556819a 1475 --enable-profiling Gather gcov profiling data
93bd259b 1476 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1477 --enable-udev_sync Enable synchronisation with udev processing
1478 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b
AK
1479 --enable-compat Enable support for old device-mapper versions
1480 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1481 --disable-o_direct Disable O_DIRECT
572fefeb 1482 --enable-applib Build application library
ad6254c5 1483 --enable-cmdlib Build shared command library
93bd259b 1484 --enable-pkgconfig Install pkgconfig support
ad6254c5 1485 --enable-fsadm Enable fsadm
15d91f5a 1486 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1487 --disable-selinux Disable selinux support
ad6254c5
AK
1488 --enable-nls Enable Native Language Support
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1493 --with-user=USER Set the owner of installed files [USER=root]
1494 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1495 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1496 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1497 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1498 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1499 TYPE=internal
1500 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1501 TYPE=internal
1502 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1503 TYPE=internal
1504 --with-snapshots=TYPE Snapshot support: internal/shared/none
1505 TYPE=internal
1506 --with-mirrors=TYPE Mirror support: internal/shared/none
1507 TYPE=internal
ec6a6fbe 1508 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1509 TYPE=none
d0191583
JM
1510 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1511 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1512 --with-confdir=DIR Configuration files in DIR [/etc]
1513 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1514 --with-usrlibdir=DIR
1515 --with-usrsbindir=DIR
a5f46f6a 1516 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
93bd259b 1517 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1518 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1519 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1520
1521Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
25fbec5b 1526 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
ad6254c5 1529 CPP C preprocessor
e2997b73
AK
1530 PKG_CONFIG path to pkg-config utility
1531 QUORUM_CFLAGS
1532 C compiler flags for QUORUM, overriding pkg-config
1533 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1534 CONFDB_CFLAGS
1535 C compiler flags for CONFDB, overriding pkg-config
1536 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1537 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1538 CPG_LIBS linker flags for CPG, overriding pkg-config
ad6254c5
AK
1539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
1543_ACEOF
7a197a62 1544ac_status=$?
ad6254c5
AK
1545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
ad6254c5 1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
ad6254c5
AK
1553 ac_builddir=.
1554
7a197a62
AK
1555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
ec6a6fbe 1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1559 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1570
1571case $srcdir in
7a197a62 1572 .) # We are building in place.
ad6254c5 1573 ac_srcdir=.
7a197a62
AK
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1577 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1584esac
7a197a62
AK
1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1595 else
ec6a6fbe 1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1599 done
1600fi
1601
7a197a62 1602test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1603if $ac_init_version; then
1604 cat <<\_ACEOF
7a197a62 1605configure
ec6a6fbe 1606generated by GNU Autoconf 2.63
ad6254c5 1607
7a197a62 1608Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16092002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
7a197a62 1613 exit
ad6254c5 1614fi
7a197a62 1615cat >config.log <<_ACEOF
ad6254c5
AK
1616This file contains any messages produced by compilers while
1617running configure, to aid debugging if configure makes a mistake.
1618
1619It was created by $as_me, which was
ec6a6fbe 1620generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1621
1622 $ $0 $@
1623
1624_ACEOF
7a197a62 1625exec 5>>config.log
ad6254c5
AK
1626{
1627cat <<_ASUNAME
1628## --------- ##
1629## Platform. ##
1630## --------- ##
1631
1632hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637
1638/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1640
1641/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1644/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1645/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648
1649_ASUNAME
1650
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
ec6a6fbe 1656 $as_echo "PATH: $as_dir"
ad6254c5 1657done
7a197a62 1658IFS=$as_save_IFS
ad6254c5
AK
1659
1660} >&5
1661
1662cat >&5 <<_ACEOF
1663
1664
1665## ----------- ##
1666## Core tests. ##
1667## ----------- ##
1668
1669_ACEOF
1670
1671
1672# Keep a trace of the command line.
1673# Strip out --no-create and --no-recursion so they do not pile up.
1674# Strip out --silent because we don't want to record it for future runs.
1675# Also quote any args containing shell meta-characters.
1676# Make two passes to allow for proper duplicate-argument suppression.
1677ac_configure_args=
1678ac_configure_args0=
1679ac_configure_args1=
ad6254c5
AK
1680ac_must_keep_next=false
1681for ac_pass in 1 2
1682do
1683 for ac_arg
1684 do
1685 case $ac_arg in
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 continue ;;
7a197a62 1690 *\'*)
ec6a6fbe 1691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1692 esac
1693 case $ac_pass in
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695 2)
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
8a2fc586 1698 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1699 else
8a2fc586
AK
1700 case $ac_arg in
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 esac
1708 ;;
1709 -* ) ac_must_keep_next=true ;;
1710 esac
ad6254c5 1711 fi
7a197a62 1712 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1713 ;;
1714 esac
1715 done
1716done
1717$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719
1720# When interrupted or exit'd, cleanup temporary files, and complete
1721# config.log. We remove comments because anyway the quotes in there
1722# would cause problems or look ugly.
7a197a62
AK
1723# WARNING: Use '\'' to represent an apostrophe within the trap.
1724# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1725trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1727 {
1728 echo
1729
1730 cat <<\_ASBOX
1731## ---------------- ##
1732## Cache variables. ##
1733## ---------------- ##
1734_ASBOX
1735 echo
1736 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1737(
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in #(
1741 *${as_nl}*)
1742 case $ac_var in #(
ec6a6fbe
AK
1743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1744$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1745 esac
1746 case $ac_var in #(
1747 _ | IFS | as_nl) ;; #(
ec6a6fbe 1748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
ad6254c5 1753 (set) 2>&1 |
7a197a62
AK
1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
ad6254c5 1756 sed -n \
7a197a62
AK
1757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 ;; #(
ad6254c5 1760 *)
7a197a62 1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1762 ;;
7a197a62
AK
1763 esac |
1764 sort
1765)
ad6254c5
AK
1766 echo
1767
1768 cat <<\_ASBOX
1769## ----------------- ##
1770## Output variables. ##
1771## ----------------- ##
1772_ASBOX
1773 echo
1774 for ac_var in $ac_subst_vars
1775 do
7a197a62
AK
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
ec6a6fbe 1778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1779 esac
ec6a6fbe 1780 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1781 done | sort
1782 echo
1783
1784 if test -n "$ac_subst_files"; then
1785 cat <<\_ASBOX
7a197a62
AK
1786## ------------------- ##
1787## File substitutions. ##
1788## ------------------- ##
ad6254c5
AK
1789_ASBOX
1790 echo
1791 for ac_var in $ac_subst_files
1792 do
7a197a62
AK
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
ec6a6fbe 1795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1796 esac
ec6a6fbe 1797 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1798 done | sort
1799 echo
1800 fi
1801
1802 if test -s confdefs.h; then
1803 cat <<\_ASBOX
1804## ----------- ##
1805## confdefs.h. ##
1806## ----------- ##
1807_ASBOX
1808 echo
7a197a62 1809 cat confdefs.h
ad6254c5
AK
1810 echo
1811 fi
1812 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1813 $as_echo "$as_me: caught signal $ac_signal"
1814 $as_echo "$as_me: exit $exit_status"
ad6254c5 1815 } >&5
7a197a62
AK
1816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1818 exit $exit_status
7a197a62 1819' 0
ad6254c5
AK
1820for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822done
1823ac_signal=0
1824
1825# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1826rm -f -r conftest* confdefs.h
ad6254c5
AK
1827
1828# Predefined preprocessor variables.
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_NAME "$PACKAGE_NAME"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_VERSION "$PACKAGE_VERSION"
1842_ACEOF
8106cdd5 1843
ad6254c5
AK
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_STRING "$PACKAGE_STRING"
1847_ACEOF
1848
1849
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852_ACEOF
1853
1854
1855# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1856# Prefer an explicitly selected file to automatically selected ones.
1857ac_site_file1=NONE
1858ac_site_file2=NONE
7a197a62 1859if test -n "$CONFIG_SITE"; then
ec6a6fbe 1860 ac_site_file1=$CONFIG_SITE
7a197a62 1861elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1862 ac_site_file1=$prefix/share/config.site
1863 ac_site_file2=$prefix/etc/config.site
7a197a62 1864else
ec6a6fbe
AK
1865 ac_site_file1=$ac_default_prefix/share/config.site
1866 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1867fi
ec6a6fbe 1868for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1869do
ec6a6fbe 1870 test "x$ac_site_file" = xNONE && continue
795ca3e5 1871 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1872 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1874 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1875 . "$ac_site_file"
1876 fi
1877done
1878
1879if test -r "$cache_file"; then
ad6254c5
AK
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
ec6a6fbe
AK
1883 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1885 case $cache_file in
7a197a62
AK
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
ad6254c5
AK
1888 esac
1889 fi
795ca3e5 1890else
ec6a6fbe
AK
1891 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1893 >$cache_file
1894fi
1895
1896# Check that the precious variables saved in the cache have kept the same
1897# value.
1898ac_cache_corrupted=false
7a197a62 1899for ac_var in $ac_precious_vars; do
ad6254c5
AK
1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1904 case $ac_old_set,$ac_new_set in
1905 set,)
ec6a6fbe
AK
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1908 ac_cache_corrupted=: ;;
1909 ,set)
ec6a6fbe
AK
1910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1912 ac_cache_corrupted=: ;;
1913 ,);;
1914 *)
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1916 # differences in whitespace do not lead to failure.
1917 ac_old_val_w=`echo x $ac_old_val`
1918 ac_new_val_w=`echo x $ac_new_val`
1919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 ac_cache_corrupted=:
1923 else
1924 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1925$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1926 eval $ac_var=\$ac_old_val
1927 fi
1928 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1929$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1930 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1931$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1932 fi;;
1933 esac
1934 # Pass precious variables to config.status.
1935 if test "$ac_new_set" = set; then
1936 case $ac_new_val in
ec6a6fbe 1937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1938 *) ac_arg=$ac_var=$ac_new_val ;;
1939 esac
1940 case " $ac_configure_args " in
1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 esac
1944 fi
1945done
1946if $ac_cache_corrupted; then
ec6a6fbe
AK
1947 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1953 { (exit 1); exit 1; }; }
795ca3e5
AK
1954fi
1955
ad6254c5
AK
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
7a197a62
AK
1972ac_ext=c
1973ac_cpp='$CPP $CPPFLAGS'
1974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1977
795ca3e5
AK
1978
1979
7a197a62 1980ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1981
1982
80992638 1983################################################################################
795ca3e5 1984ac_aux_dir=
7a197a62
AK
1985for ac_dir in autoconf "$srcdir"/autoconf; do
1986 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 break
7a197a62 1990 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 break
7a197a62 1994 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 break
795ca3e5
AK
1998 fi
1999done
2000if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2001 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2002$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2003 { (exit 1); exit 1; }; }
795ca3e5 2004fi
7a197a62
AK
2005
2006# These three variables are undocumented and unsupported,
2007# and are intended to be withdrawn in a future Autoconf release.
2008# They can cause serious problems if a builder's source tree is in a directory
2009# whose full name contains unusual characters.
2010ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2013
8ce0cbda
AK
2014
2015
ad6254c5 2016################################################################################
8ce0cbda 2017# Make sure we can run config.sub.
7a197a62 2018$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2019 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2021 { (exit 1); exit 1; }; }
2022
ec6a6fbe
AK
2023{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2024$as_echo_n "checking build system type... " >&6; }
ad6254c5 2025if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2026 $as_echo_n "(cached) " >&6
ad6254c5 2027else
7a197a62
AK
2028 ac_build_alias=$build_alias
2029test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2032 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2034 { (exit 1); exit 1; }; }
7a197a62 2035ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2036 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2038 { (exit 1); exit 1; }; }
2039
2040fi
ec6a6fbe
AK
2041{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2043case $ac_cv_build in
2044*-*-*) ;;
ec6a6fbe
AK
2045*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2047 { (exit 1); exit 1; }; };;
2048esac
ad6254c5 2049build=$ac_cv_build
7a197a62
AK
2050ac_save_IFS=$IFS; IFS='-'
2051set x $ac_cv_build
2052shift
2053build_cpu=$1
2054build_vendor=$2
2055shift; shift
2056# Remember, the first character of IFS is used to create $*,
2057# except with old shells:
2058build_os=$*
2059IFS=$ac_save_IFS
2060case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2061
2062
ec6a6fbe
AK
2063{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2064$as_echo_n "checking host system type... " >&6; }
ad6254c5 2065if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2066 $as_echo_n "(cached) " >&6
ad6254c5 2067else
7a197a62
AK
2068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2070else
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2074 { (exit 1); exit 1; }; }
7a197a62 2075fi
ad6254c5
AK
2076
2077fi
ec6a6fbe
AK
2078{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2080case $ac_cv_host in
2081*-*-*) ;;
ec6a6fbe
AK
2082*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2084 { (exit 1); exit 1; }; };;
2085esac
ad6254c5 2086host=$ac_cv_host
7a197a62
AK
2087ac_save_IFS=$IFS; IFS='-'
2088set x $ac_cv_host
2089shift
2090host_cpu=$1
2091host_vendor=$2
2092shift; shift
2093# Remember, the first character of IFS is used to create $*,
2094# except with old shells:
2095host_os=$*
2096IFS=$ac_save_IFS
2097case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2098
2099
ec6a6fbe
AK
2100{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2101$as_echo_n "checking target system type... " >&6; }
ad6254c5 2102if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2103 $as_echo_n "(cached) " >&6
ad6254c5 2104else
7a197a62
AK
2105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2107else
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2109 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2111 { (exit 1); exit 1; }; }
7a197a62 2112fi
8ce0cbda 2113
ad6254c5 2114fi
ec6a6fbe
AK
2115{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2117case $ac_cv_target in
2118*-*-*) ;;
ec6a6fbe
AK
2119*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2121 { (exit 1); exit 1; }; };;
2122esac
ad6254c5 2123target=$ac_cv_target
7a197a62
AK
2124ac_save_IFS=$IFS; IFS='-'
2125set x $ac_cv_target
2126shift
2127target_cpu=$1
2128target_vendor=$2
2129shift; shift
2130# Remember, the first character of IFS is used to create $*,
2131# except with old shells:
2132target_os=$*
2133IFS=$ac_save_IFS
2134case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2135
8ce0cbda 2136
ad6254c5
AK
2137# The aliases save the names the user supplied, while $host etc.
2138# will get canonicalized.
2139test -n "$target_alias" &&
8ce0cbda
AK
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2141 NONENONEs,x,x, &&
2142 program_prefix=${target_alias}-
2143
8ce0cbda
AK
2144case "$host_os" in
2145 linux*)
7f54ef36 2146 CFLAGS="$CFLAGS"
8ce0cbda
AK
2147 COPTIMISE_FLAG="-O2"
2148 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2149 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2150 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2151 LDDEPS="$LDDEPS .export.sym"
2152 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2153 LIB_SUFFIX=so
8ce0cbda
AK
2154 DEVMAPPER=yes
2155 ODIRECT=yes
d0191583 2156 DM_IOCTLS=yes
8ce0cbda 2157 SELINUX=yes
8b1a3214 2158 REALTIME=yes
8ce0cbda 2159 CLUSTER=internal
93bd259b 2160 FSADM=yes
d0191583 2161 ;;
8ce0cbda
AK
2162 darwin*)
2163 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2164 COPTIMISE_FLAG="-O2"
2165 CLDFLAGS="$CLDFLAGS"
2166 CLDWHOLEARCHIVE="-all_load"
2167 CLDNOWHOLEARCHIVE=
d0191583 2168 LIB_SUFFIX=dylib
a653923f 2169 DEVMAPPER=yes
8ce0cbda 2170 ODIRECT=no
d0191583 2171 DM_IOCTLS=no
8ce0cbda 2172 SELINUX=no
8b1a3214 2173 REALTIME=no
8ce0cbda 2174 CLUSTER=none
d0191583
JM
2175 FSADM=no
2176 ;;
8ce0cbda
AK
2177esac
2178
80992638 2179################################################################################
ec6a6fbe
AK
2180{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2181$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2182if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2183 $as_echo_n "(cached) " >&6
5951ef33
AK
2184else
2185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2186 for ac_i in 1 2 3 4 5 6 7; do
2187 ac_script="$ac_script$as_nl$ac_script"
2188 done
ec6a6fbe 2189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2190 $as_unset ac_script || ac_script=
ec6a6fbe 2191 if test -z "$SED"; then
5951ef33 2192 ac_path_SED_found=false
ec6a6fbe
AK
2193 # Loop through the user's path and test for each of PROGNAME-LIST
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2195for as_dir in $PATH
2196do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_prog in sed gsed; do
ec6a6fbe
AK
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2202 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2203# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2204 # Check for GNU $ac_path_SED
2205case `"$ac_path_SED" --version 2>&1` in
2206*GNU*)
2207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2208*)
2209 ac_count=0
ec6a6fbe 2210 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2211 while :
2212 do
2213 cat "conftest.in" "conftest.in" >"conftest.tmp"
2214 mv "conftest.tmp" "conftest.in"
2215 cp "conftest.in" "conftest.nl"
ec6a6fbe 2216 $as_echo '' >> "conftest.nl"
5951ef33
AK
2217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2219 ac_count=`expr $ac_count + 1`
2220 if test $ac_count -gt ${ac_path_SED_max-0}; then
2221 # Best one so far, save it but keep looking for a better one
2222 ac_cv_path_SED="$ac_path_SED"
2223 ac_path_SED_max=$ac_count
2224 fi
2225 # 10*(2^10) chars as input seems more than enough
2226 test $ac_count -gt 10 && break
2227 done
2228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2229esac
2230
ec6a6fbe
AK
2231 $ac_path_SED_found && break 3
2232 done
5951ef33
AK
2233 done
2234done
5951ef33 2235IFS=$as_save_IFS
ec6a6fbe
AK
2236 if test -z "$ac_cv_path_SED"; then
2237 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2238$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2239 { (exit 1); exit 1; }; }
ec6a6fbe 2240 fi
5951ef33
AK
2241else
2242 ac_cv_path_SED=$SED
2243fi
2244
2245fi
ec6a6fbe
AK
2246{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2247$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2248 SED="$ac_cv_path_SED"
2249 rm -f conftest.sed
2250
ad6254c5 2251for ac_prog in gawk mawk nawk awk
795ca3e5 2252do
ad6254c5 2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2254set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2257if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2258 $as_echo_n "(cached) " >&6
795ca3e5
AK
2259else
2260 if test -n "$AWK"; then
2261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2262else
ad6254c5
AK
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2270 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2272 break 2
2273 fi
2274done
2275done
7a197a62 2276IFS=$as_save_IFS
ad6254c5 2277
795ca3e5
AK
2278fi
2279fi
ad6254c5 2280AWK=$ac_cv_prog_AWK
795ca3e5 2281if test -n "$AWK"; then
ec6a6fbe
AK
2282 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2283$as_echo "$AWK" >&6; }
795ca3e5 2284else
ec6a6fbe
AK
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286$as_echo "no" >&6; }
795ca3e5
AK
2287fi
2288
7a197a62 2289
ad6254c5
AK
2290 test -n "$AWK" && break
2291done
2292
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2300set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2302$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2303if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2304 $as_echo_n "(cached) " >&6
ad6254c5
AK
2305else
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2318 break 2
2319 fi
2320done
8106cdd5 2321done
7a197a62 2322IFS=$as_save_IFS
8106cdd5 2323
ad6254c5
AK
2324fi
2325fi
2326CC=$ac_cv_prog_CC
2327if test -n "$CC"; then
ec6a6fbe
AK
2328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2329$as_echo "$CC" >&6; }
ad6254c5 2330else
ec6a6fbe
AK
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332$as_echo "no" >&6; }
ad6254c5
AK
2333fi
2334
7a197a62 2335
ad6254c5
AK
2336fi
2337if test -z "$ac_cv_prog_CC"; then
2338 ac_ct_CC=$CC
2339 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2340set dummy gcc; ac_word=$2
ec6a6fbe
AK
2341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2344 $as_echo_n "(cached) " >&6
ad6254c5
AK
2345else
2346 if test -n "$ac_ct_CC"; then
2347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2356 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2358 break 2
2359 fi
2360done
2361done
7a197a62 2362IFS=$as_save_IFS
ad6254c5
AK
2363
2364fi
2365fi
2366ac_ct_CC=$ac_cv_prog_ac_ct_CC
2367if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2368 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2369$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2370else
ec6a6fbe
AK
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372$as_echo "no" >&6; }
ad6254c5
AK
2373fi
2374
7a197a62
AK
2375 if test "x$ac_ct_CC" = x; then
2376 CC=""
2377 else
2378 case $cross_compiling:$ac_tool_warned in
2379yes:)
ec6a6fbe
AK
2380{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2382ac_tool_warned=yes ;;
2383esac
2384 CC=$ac_ct_CC
2385 fi
ad6254c5
AK
2386else
2387 CC="$ac_cv_prog_CC"
2388fi
2389
2390if test -z "$CC"; then
7a197a62
AK
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2393set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2395$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2396if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2397 $as_echo_n "(cached) " >&6
8106cdd5
AK
2398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
ad6254c5
AK
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2409 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2411 break 2
2412 fi
2413done
2414done
7a197a62 2415IFS=$as_save_IFS
ad6254c5 2416
8106cdd5
AK
2417fi
2418fi
ad6254c5 2419CC=$ac_cv_prog_CC
8106cdd5 2420if test -n "$CC"; then
ec6a6fbe
AK
2421 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2422$as_echo "$CC" >&6; }
ad6254c5 2423else
ec6a6fbe
AK
2424 { $as_echo "$as_me:$LINENO: result: no" >&5
2425$as_echo "no" >&6; }
ad6254c5
AK
2426fi
2427
8106cdd5 2428
7a197a62 2429 fi
ad6254c5 2430fi
795ca3e5
AK
2431if test -z "$CC"; then
2432 # Extract the first word of "cc", so it can be a program name with args.
2433set dummy cc; ac_word=$2
ec6a6fbe
AK
2434{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2436if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2437 $as_echo_n "(cached) " >&6
795ca3e5
AK
2438else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441else
795ca3e5 2442 ac_prog_rejected=no
ad6254c5
AK
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2451 ac_prog_rejected=yes
2452 continue
2453 fi
2454 ac_cv_prog_CC="cc"
ec6a6fbe 2455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2456 break 2
2457 fi
2458done
2459done
7a197a62 2460IFS=$as_save_IFS
ad6254c5 2461
795ca3e5
AK
2462if test $ac_prog_rejected = yes; then
2463 # We found a bogon in the path, so make sure we never use it.
2464 set dummy $ac_cv_prog_CC
2465 shift
ad6254c5 2466 if test $# != 0; then
795ca3e5
AK
2467 # We chose a different compiler from the bogus one.
2468 # However, it has the same basename, so the bogon will be chosen
2469 # first if we set CC to just the basename; use the full file name.
2470 shift
ad6254c5 2471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2472 fi
2473fi
2474fi
2475fi
ad6254c5 2476CC=$ac_cv_prog_CC
795ca3e5 2477if test -n "$CC"; then
ec6a6fbe
AK
2478 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2479$as_echo "$CC" >&6; }
795ca3e5 2480else
ec6a6fbe
AK
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
2482$as_echo "no" >&6; }
795ca3e5
AK
2483fi
2484
7a197a62 2485
ad6254c5
AK
2486fi
2487if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
7a197a62 2489 for ac_prog in cl.exe
ad6254c5
AK
2490 do
2491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2493{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2494$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2495if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2496 $as_echo_n "(cached) " >&6
795ca3e5
AK
2497else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500else
ad6254c5
AK
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2510 break 2
2511 fi
2512done
2513done
7a197a62 2514IFS=$as_save_IFS
ad6254c5 2515
795ca3e5
AK
2516fi
2517fi
ad6254c5 2518CC=$ac_cv_prog_CC
795ca3e5 2519if test -n "$CC"; then
ec6a6fbe
AK
2520 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2521$as_echo "$CC" >&6; }
795ca3e5 2522else
ec6a6fbe
AK
2523 { $as_echo "$as_me:$LINENO: result: no" >&5
2524$as_echo "no" >&6; }
795ca3e5 2525fi
ad6254c5 2526
7a197a62 2527
ad6254c5
AK
2528 test -n "$CC" && break
2529 done
2530fi
2531if test -z "$CC"; then
2532 ac_ct_CC=$CC
7a197a62 2533 for ac_prog in cl.exe
ad6254c5
AK
2534do
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2540 $as_echo_n "(cached) " >&6
ad6254c5
AK
2541else
2542 if test -n "$ac_ct_CC"; then
2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2552 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2554 break 2
795ca3e5 2555 fi
ad6254c5
AK
2556done
2557done
7a197a62 2558IFS=$as_save_IFS
ad6254c5
AK
2559
2560fi
2561fi
2562ac_ct_CC=$ac_cv_prog_ac_ct_CC
2563if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2564 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2565$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2566else
ec6a6fbe
AK
2567 { $as_echo "$as_me:$LINENO: result: no" >&5
2568$as_echo "no" >&6; }
795ca3e5
AK
2569fi
2570
7a197a62 2571
ad6254c5
AK
2572 test -n "$ac_ct_CC" && break
2573done
795ca3e5 2574
7a197a62
AK
2575 if test "x$ac_ct_CC" = x; then
2576 CC=""
2577 else
2578 case $cross_compiling:$ac_tool_warned in
2579yes:)
ec6a6fbe
AK
2580{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2582ac_tool_warned=yes ;;
2583esac
2584 CC=$ac_ct_CC
2585 fi
ad6254c5
AK
2586fi
2587
2588fi
2589
2590
ec6a6fbe
AK
2591test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2594See \`config.log' for more details." >&5
ec6a6fbe 2595$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2596See \`config.log' for more details." >&2;}
ec6a6fbe 2597 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2598
2599# Provide some information about the compiler.
ec6a6fbe
AK
2600$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2601set X $ac_compile
2602ac_compiler=$2
7a197a62
AK
2603{ (ac_try="$ac_compiler --version >&5"
2604case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607esac
ec6a6fbe
AK
2608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609$as_echo "$ac_try_echo") >&5
7a197a62 2610 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2611 ac_status=$?
ec6a6fbe 2612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2613 (exit $ac_status); }
7a197a62
AK
2614{ (ac_try="$ac_compiler -v >&5"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
ec6a6fbe
AK
2619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2620$as_echo "$ac_try_echo") >&5
7a197a62 2621 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2622 ac_status=$?
ec6a6fbe 2623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2624 (exit $ac_status); }
7a197a62
AK
2625{ (ac_try="$ac_compiler -V >&5"
2626case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629esac
ec6a6fbe
AK
2630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2631$as_echo "$ac_try_echo") >&5
7a197a62 2632 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2633 ac_status=$?
ec6a6fbe 2634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2635 (exit $ac_status); }
2636
2637cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643
2644int
2645main ()
2646{
2647
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652ac_clean_files_save=$ac_clean_files
ec6a6fbe 2653ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2654# Try to create an executable without -o first, disregard a.out.
2655# It will help us diagnose broken compilers, and finding out an intuition
2656# of exeext.
ec6a6fbe
AK
2657{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2658$as_echo_n "checking for C compiler default output file name... " >&6; }
2659ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2660
2661# The possible output files:
2662ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2663
7a197a62
AK
2664ac_rmfiles=
2665for ac_file in $ac_files
2666do
2667 case $ac_file in
ec6a6fbe 2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2669 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2670 esac
2671done
2672rm -f $ac_rmfiles
2673
2674if { (ac_try="$ac_link_default"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
ec6a6fbe
AK
2679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680$as_echo "$ac_try_echo") >&5
7a197a62 2681 (eval "$ac_link_default") 2>&5
ad6254c5 2682 ac_status=$?
ec6a6fbe 2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2684 (exit $ac_status); }; then
7a197a62
AK
2685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687# in a Makefile. We should not override ac_cv_exeext if it was cached,
2688# so that the user can short-circuit this test for compilers unknown to
2689# Autoconf.
25fbec5b 2690for ac_file in $ac_files ''
ad6254c5
AK
2691do
2692 test -f "$ac_file" || continue
2693 case $ac_file in
ec6a6fbe 2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2695 ;;
ad6254c5 2696 [ab].out )
8a2fc586
AK
2697 # We found the default executable, but exeext='' is most
2698 # certainly right.
2699 break;;
ad6254c5 2700 *.* )
7a197a62
AK
2701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2702 then :; else
2703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704 fi
2705 # We set ac_cv_exeext here because the later test for it is not
2706 # safe: cross compilers may not add the suffix if given an `-o'
2707 # argument, so we may need to know it at that point already.
2708 # Even if this section looks crufty: it has the advantage of
2709 # actually working.
8a2fc586 2710 break;;
ad6254c5 2711 * )
8a2fc586 2712 break;;
ad6254c5
AK
2713 esac
2714done
7a197a62
AK
2715test "$ac_cv_exeext" = no && ac_cv_exeext=
2716
ad6254c5 2717else
25fbec5b
AK
2718 ac_file=''
2719fi
2720
ec6a6fbe
AK
2721{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2722$as_echo "$ac_file" >&6; }
25fbec5b 2723if test -z "$ac_file"; then
ec6a6fbe 2724 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
ec6a6fbe
AK
2727{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2730See \`config.log' for more details." >&5
ec6a6fbe 2731$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2732See \`config.log' for more details." >&2;}
ec6a6fbe 2733 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2734fi
2735
2736ac_exeext=$ac_cv_exeext
ad6254c5 2737
7a197a62 2738# Check that the compiler produces executables we can run. If not, either
ad6254c5 2739# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2740{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2741$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2742# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2743# If not cross compiling, check that we can run a simple program.
2744if test "$cross_compiling" != yes; then
2745 if { ac_try='./$ac_file'
7a197a62
AK
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
ec6a6fbe
AK
2750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2751$as_echo "$ac_try_echo") >&5
7a197a62 2752 (eval "$ac_try") 2>&5
ad6254c5 2753 ac_status=$?
ec6a6fbe 2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2755 (exit $ac_status); }; }; then
2756 cross_compiling=no
795ca3e5 2757 else
ad6254c5
AK
2758 if test "$cross_compiling" = maybe; then
2759 cross_compiling=yes
2760 else
ec6a6fbe
AK
2761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2764If you meant to cross compile, use \`--host'.
2765See \`config.log' for more details." >&5
ec6a6fbe 2766$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2767If you meant to cross compile, use \`--host'.
2768See \`config.log' for more details." >&2;}
ec6a6fbe 2769 { (exit 1); exit 1; }; }; }
ad6254c5 2770 fi
795ca3e5 2771 fi
80992638 2772fi
ec6a6fbe
AK
2773{ $as_echo "$as_me:$LINENO: result: yes" >&5
2774$as_echo "yes" >&6; }
ad6254c5 2775
ec6a6fbe 2776rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2777ac_clean_files=$ac_clean_files_save
7a197a62 2778# Check that the compiler produces executables we can run. If not, either
ad6254c5 2779# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2780{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2781$as_echo_n "checking whether we are cross compiling... " >&6; }
2782{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2783$as_echo "$cross_compiling" >&6; }
7a197a62 2784
ec6a6fbe
AK
2785{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2786$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2787if { (ac_try="$ac_link"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
ec6a6fbe
AK
2792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2793$as_echo "$ac_try_echo") >&5
7a197a62 2794 (eval "$ac_link") 2>&5
ad6254c5 2795 ac_status=$?
ec6a6fbe 2796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2797 (exit $ac_status); }; then
2798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2799# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2800# work properly (i.e., refer to `conftest.exe'), while it won't with
2801# `rm'.
2802for ac_file in conftest.exe conftest conftest.*; do
2803 test -f "$ac_file" || continue
2804 case $ac_file in
ec6a6fbe 2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2807 break;;
ad6254c5
AK
2808 * ) break;;
2809 esac
2810done
80992638 2811else
ec6a6fbe
AK
2812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2815See \`config.log' for more details." >&5
ec6a6fbe 2816$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2817See \`config.log' for more details." >&2;}
ec6a6fbe 2818 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2819fi
2820
2821rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2822{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2823$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2824
2825rm -f conftest.$ac_ext
2826EXEEXT=$ac_cv_exeext
2827ac_exeext=$EXEEXT
ec6a6fbe
AK
2828{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2829$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2830if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2831 $as_echo_n "(cached) " >&6
795ca3e5 2832else
ad6254c5 2833 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839
2840int
2841main ()
2842{
2843
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848rm -f conftest.o conftest.obj
7a197a62
AK
2849if { (ac_try="$ac_compile"
2850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
ec6a6fbe
AK
2854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855$as_echo "$ac_try_echo") >&5
7a197a62 2856 (eval "$ac_compile") 2>&5
ad6254c5 2857 ac_status=$?
ec6a6fbe 2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2859 (exit $ac_status); }; then
7a197a62
AK
2860 for ac_file in conftest.o conftest.obj conftest.*; do
2861 test -f "$ac_file" || continue;
ad6254c5 2862 case $ac_file in
ec6a6fbe 2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2865 break;;
2866 esac
2867done
2868else
ec6a6fbe 2869 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
ec6a6fbe
AK
2872{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2875See \`config.log' for more details." >&5
ec6a6fbe 2876$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2877See \`config.log' for more details." >&2;}
ec6a6fbe 2878 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2879fi
2880
2881rm -f conftest.$ac_cv_objext conftest.$ac_ext
2882fi
ec6a6fbe
AK
2883{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2884$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2885OBJEXT=$ac_cv_objext
2886ac_objext=$OBJEXT
ec6a6fbe
AK
2887{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2889if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2890 $as_echo_n "(cached) " >&6
ad6254c5
AK
2891else
2892 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2893/* confdefs.h. */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h. */
2898
2899int
2900main ()
2901{
2902#ifndef __GNUC__
2903 choke me
2904#endif
80992638 2905
ad6254c5
AK
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910rm -f conftest.$ac_objext
7a197a62
AK
2911if { (ac_try="$ac_compile"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
ec6a6fbe
AK
2916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917$as_echo "$ac_try_echo") >&5
7a197a62 2918 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2919 ac_status=$?
8a2fc586
AK
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
ec6a6fbe 2923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2924 (exit $ac_status); } && {
2925 test -z "$ac_c_werror_flag" ||
2926 test ! -s conftest.err
2927 } && test -s conftest.$ac_objext; then
ad6254c5 2928 ac_compiler_gnu=yes
80992638 2929else
ec6a6fbe 2930 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
7a197a62 2933 ac_compiler_gnu=no
8106cdd5 2934fi
7a197a62
AK
2935
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2937ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2938
ad6254c5 2939fi
ec6a6fbe
AK
2940{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2942if test $ac_compiler_gnu = yes; then
2943 GCC=yes
2944else
2945 GCC=
2946fi
ad6254c5
AK
2947ac_test_CFLAGS=${CFLAGS+set}
2948ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2949{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2950$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2951if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2952 $as_echo_n "(cached) " >&6
795ca3e5 2953else
7a197a62
AK
2954 ac_save_c_werror_flag=$ac_c_werror_flag
2955 ac_c_werror_flag=yes
2956 ac_cv_prog_cc_g=no
2957 CFLAGS="-g"
2958 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
2964
2965int
2966main ()
2967{
2968
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext
7a197a62
AK
2974if { (ac_try="$ac_compile"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
ec6a6fbe
AK
2979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980$as_echo "$ac_try_echo") >&5
7a197a62 2981 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2982 ac_status=$?
8a2fc586
AK
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
ec6a6fbe 2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
7a197a62
AK
2991 ac_cv_prog_cc_g=yes
2992else
ec6a6fbe 2993 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 CFLAGS=""
2997 cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
3003
3004int
3005main ()
3006{
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
ec6a6fbe
AK
3018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3019$as_echo "$ac_try_echo") >&5
7a197a62 3020 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3021 ac_status=$?
7a197a62
AK
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
ec6a6fbe 3025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3026 (exit $ac_status); } && {
3027 test -z "$ac_c_werror_flag" ||
3028 test ! -s conftest.err
3029 } && test -s conftest.$ac_objext; then
7a197a62
AK
3030 :
3031else
ec6a6fbe 3032 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
3043
3044int
3045main ()
3046{
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext
3053if { (ac_try="$ac_compile"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
ec6a6fbe
AK
3058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059$as_echo "$ac_try_echo") >&5
7a197a62 3060 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3061 ac_status=$?
7a197a62
AK
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
ec6a6fbe 3065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3066 (exit $ac_status); } && {
3067 test -z "$ac_c_werror_flag" ||
3068 test ! -s conftest.err
3069 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3070 ac_cv_prog_cc_g=yes
3071else
ec6a6fbe 3072 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3073sed 's/^/| /' conftest.$ac_ext >&5
80992638 3074
7a197a62
AK
3075
3076fi
3077
3078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079fi
3080
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3082fi
7a197a62
AK
3083
3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3086fi
ec6a6fbe
AK
3087{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3088$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3089if test "$ac_test_CFLAGS" = set; then
ad6254c5 3090 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3091elif test $ac_cv_prog_cc_g = yes; then
3092 if test "$GCC" = yes; then
3093 CFLAGS="-g -O2"
3094 else
3095 CFLAGS="-g"
3096 fi
3097else
3098 if test "$GCC" = yes; then
3099 CFLAGS="-O2"
3100 else
3101 CFLAGS=
3102 fi
3103fi
ec6a6fbe
AK
3104{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3105$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3106if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3107 $as_echo_n "(cached) " >&6
ad6254c5 3108else
7a197a62 3109 ac_cv_prog_cc_c89=no
ad6254c5
AK
3110ac_save_CC=$CC
3111cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117#include <stdarg.h>
3118#include <stdio.h>
3119#include <sys/types.h>
3120#include <sys/stat.h>
3121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122struct buf { int x; };
3123FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124static char *e (p, i)
3125 char **p;
3126 int i;
3127{
3128 return p[i];
3129}
3130static char *f (char * (*g) (char **, int), char **p, ...)
3131{
3132 char *s;
3133 va_list v;
3134 va_start (v,p);
3135 s = g (p, va_arg (v,int));
3136 va_end (v);
3137 return s;
3138}
8a2fc586
AK
3139
3140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3143 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3146 that's true only with -std. */
8a2fc586
AK
3147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148
7a197a62
AK
3149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3151#define FOO(x) 'x'
3152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153
ad6254c5
AK
3154int test (int i, double x);
3155struct s1 {int (*f) (int a);};
3156struct s2 {int (*f) (double a);};
3157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158int argc;
3159char **argv;
3160int
3161main ()
3162{
3163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3164 ;
3165 return 0;
3166}
3167_ACEOF
7a197a62
AK
3168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3170do
3171 CC="$ac_save_CC $ac_arg"
3172 rm -f conftest.$ac_objext
7a197a62
AK
3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
ec6a6fbe
AK
3178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179$as_echo "$ac_try_echo") >&5
7a197a62 3180 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3181 ac_status=$?
8a2fc586
AK
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
ec6a6fbe 3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
7a197a62 3190 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3191else
ec6a6fbe 3192 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
7a197a62 3195
ad6254c5 3196fi
7a197a62
AK
3197
3198rm -f core conftest.err conftest.$ac_objext
3199 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3200done
7a197a62 3201rm -f conftest.$ac_ext
ad6254c5
AK
3202CC=$ac_save_CC
3203
3204fi
7a197a62
AK
3205# AC_CACHE_VAL
3206case "x$ac_cv_prog_cc_c89" in
3207 x)
ec6a6fbe
AK
3208 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3209$as_echo "none needed" >&6; } ;;
7a197a62 3210 xno)
ec6a6fbe
AK
3211 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3212$as_echo "unsupported" >&6; } ;;
ad6254c5 3213 *)
7a197a62 3214 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3216$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3217esac
3218
ad6254c5 3219
ad6254c5
AK
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3225
d0191583
JM
3226
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3233{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3234$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3235# On Suns, sometimes $CPP names a directory.
3236if test -n "$CPP" && test -d "$CPP"; then
3237 CPP=
3238fi
3239if test -z "$CPP"; then
3240 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3241 $as_echo_n "(cached) " >&6
ad6254c5 3242else
d0191583
JM
3243 # Double quotes because CPP needs to be expanded
3244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245 do
3246 ac_preproc_ok=false
3247for ac_c_preproc_warn_flag in '' yes
ad6254c5 3248do
d0191583
JM
3249 # Use a header file that comes with gcc, so configuring glibc
3250 # with a fresh cross-compiler works.
3251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252 # <limits.h> exists even on freestanding compilers.
3253 # On the NeXT, cc -E runs the code through the compiler's parser,
3254 # not just through cpp. "Syntax error" is here to catch this case.
3255 cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
3260/* end confdefs.h. */
3261#ifdef __STDC__
3262# include <limits.h>
3263#else
3264# include <assert.h>
3265#endif
3266 Syntax error
3267_ACEOF
3268if { (ac_try="$ac_cpp conftest.$ac_ext"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
ad6254c5 3272esac
ec6a6fbe
AK
3273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274$as_echo "$ac_try_echo") >&5
d0191583
JM
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
ec6a6fbe 3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 }; then
3285 :
3286else
ec6a6fbe 3287 $as_echo "$as_me: failed program was:" >&5
d0191583 3288sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3289
d0191583
JM
3290 # Broken: fails on valid input.
3291continue
795ca3e5 3292fi
795ca3e5 3293
d0191583 3294rm -f conftest.err conftest.$ac_ext
795ca3e5 3295
d0191583
JM
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <ac_nonexistent.h>
3305_ACEOF
3306if { (ac_try="$ac_cpp conftest.$ac_ext"
3307case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
ec6a6fbe
AK
3311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312$as_echo "$ac_try_echo") >&5
d0191583
JM
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
ec6a6fbe 3318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3319 (exit $ac_status); } >/dev/null && {
3320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3321 test ! -s conftest.err
3322 }; then
3323 # Broken: success on invalid input.
3324continue
3325else
ec6a6fbe 3326 $as_echo "$as_me: failed program was:" >&5
d0191583 3327sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3328
d0191583
JM
3329 # Passes both tests.
3330ac_preproc_ok=:
3331break
3332fi
795ca3e5 3333
d0191583
JM
3334rm -f conftest.err conftest.$ac_ext
3335
3336done
3337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338rm -f conftest.err conftest.$ac_ext
3339if $ac_preproc_ok; then
3340 break
795ca3e5
AK
3341fi
3342
d0191583
JM
3343 done
3344 ac_cv_prog_CPP=$CPP
3345
3346fi
3347 CPP=$ac_cv_prog_CPP
795ca3e5 3348else
d0191583
JM
3349 ac_cv_prog_CPP=$CPP
3350fi
ec6a6fbe
AK
3351{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3352$as_echo "$CPP" >&6; }
d0191583
JM
3353ac_preproc_ok=false
3354for ac_c_preproc_warn_flag in '' yes
3355do
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
ad6254c5 3364_ACEOF
d0191583
JM
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#ifdef __STDC__
3369# include <limits.h>
3370#else
3371# include <assert.h>
3372#endif
3373 Syntax error
3374_ACEOF
3375if { (ac_try="$ac_cpp conftest.$ac_ext"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
7a197a62 3379esac
ec6a6fbe
AK
3380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381$as_echo "$ac_try_echo") >&5
d0191583
JM
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
ec6a6fbe 3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 :
795ca3e5 3393else
ec6a6fbe 3394 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398continue
795ca3e5
AK
3399fi
3400
d0191583
JM
3401rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
3413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
ec6a6fbe
AK
3418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419$as_echo "$ac_try_echo") >&5
d0191583
JM
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
ec6a6fbe 3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 }; then
3430 # Broken: success on invalid input.
3431continue
795ca3e5 3432else
ec6a6fbe 3433 $as_echo "$as_me: failed program was:" >&5
d0191583 3434sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3435
d0191583
JM
3436 # Passes both tests.
3437ac_preproc_ok=:
3438break
795ca3e5 3439fi
d0191583
JM
3440
3441rm -f conftest.err conftest.$ac_ext
3442
3443done
3444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445rm -f conftest.err conftest.$ac_ext
3446if $ac_preproc_ok; then
3447 :
8106cdd5 3448else
ec6a6fbe
AK
3449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3452See \`config.log' for more details." >&5
ec6a6fbe 3453$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3454See \`config.log' for more details." >&2;}
ec6a6fbe 3455 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3456fi
3457
d0191583
JM
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
7a197a62 3464
ec6a6fbe
AK
3465{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3467if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3468 $as_echo_n "(cached) " >&6
ad6254c5 3469else
ec6a6fbe 3470 if test -z "$GREP"; then
d0191583 3471 ac_path_GREP_found=false
ec6a6fbe
AK
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
d0191583 3478 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3482# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3483 # Check for GNU $ac_path_GREP
3484case `"$ac_path_GREP" --version 2>&1` in
3485*GNU*)
3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3487*)
3488 ac_count=0
ec6a6fbe 3489 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3490 while :
3491 do
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
ec6a6fbe 3495 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 ac_count=`expr $ac_count + 1`
3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_GREP="$ac_path_GREP"
3502 ac_path_GREP_max=$ac_count
3503 fi
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3506 done
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508esac
3509
ec6a6fbe
AK
3510 $ac_path_GREP_found && break 3
3511 done
d0191583 3512 done
ad6254c5 3513done
7a197a62 3514IFS=$as_save_IFS
ec6a6fbe
AK
3515 if test -z "$ac_cv_path_GREP"; then
3516 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3517$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3518 { (exit 1); exit 1; }; }
ec6a6fbe 3519 fi
80992638 3520else
d0191583 3521 ac_cv_path_GREP=$GREP
8106cdd5 3522fi
8106cdd5 3523
80992638 3524fi
ec6a6fbe
AK
3525{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3526$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3527 GREP="$ac_cv_path_GREP"
795ca3e5 3528
d0191583 3529
ec6a6fbe
AK
3530{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3531$as_echo_n "checking for egrep... " >&6; }
d0191583 3532if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3533 $as_echo_n "(cached) " >&6
8a2fc586 3534else
d0191583
JM
3535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3536 then ac_cv_path_EGREP="$GREP -E"
3537 else
ec6a6fbe 3538 if test -z "$EGREP"; then
d0191583 3539 ac_path_EGREP_found=false
ec6a6fbe
AK
3540 # Loop through the user's path and test for each of PROGNAME-LIST
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
d0191583 3546 for ac_prog in egrep; do
ec6a6fbe
AK
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3549 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3550# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3551 # Check for GNU $ac_path_EGREP
3552case `"$ac_path_EGREP" --version 2>&1` in
3553*GNU*)
3554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3555*)
3556 ac_count=0
ec6a6fbe 3557 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3558 while :
3559 do
3560 cat "conftest.in" "conftest.in" >"conftest.tmp"
3561 mv "conftest.tmp" "conftest.in"
3562 cp "conftest.in" "conftest.nl"
ec6a6fbe 3563 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3566 ac_count=`expr $ac_count + 1`
3567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3568 # Best one so far, save it but keep looking for a better one
3569 ac_cv_path_EGREP="$ac_path_EGREP"
3570 ac_path_EGREP_max=$ac_count
3571 fi
3572 # 10*(2^10) chars as input seems more than enough
3573 test $ac_count -gt 10 && break
3574 done
3575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3576esac
8a2fc586 3577
ec6a6fbe
AK
3578 $ac_path_EGREP_found && break 3
3579 done
d0191583 3580 done
8a2fc586 3581done
7a197a62 3582IFS=$as_save_IFS
ec6a6fbe
AK
3583 if test -z "$ac_cv_path_EGREP"; then
3584 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3585$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3586 { (exit 1); exit 1; }; }
ec6a6fbe 3587 fi
d0191583
JM
3588else
3589 ac_cv_path_EGREP=$EGREP
3590fi
ad6254c5 3591
d0191583
JM
3592 fi
3593fi
ec6a6fbe
AK
3594{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3595$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3596 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3597
3598
d0191583 3599if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3600 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3601$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3602if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3603 $as_echo_n "(cached) " >&6
8106cdd5 3604else
d0191583 3605 ac_pattern="Autoconf.*'x'"
ad6254c5 3606 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
d0191583
JM
3612#include <sgtty.h>
3613Autoconf TIOCGETP
ad6254c5 3614_ACEOF
d0191583
JM
3615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3617 ac_cv_prog_gcc_traditional=yes
8106cdd5 3618else
d0191583 3619 ac_cv_prog_gcc_traditional=no
80992638 3620fi
d0191583 3621rm -f conftest*
ad6254c5 3622
8106cdd5 3623
d0191583
JM
3624 if test $ac_cv_prog_gcc_traditional = no; then
3625 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
d0191583
JM
3631#include <termio.h>
3632Autoconf TCGETA
ad6254c5 3633_ACEOF
d0191583
JM
3634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3635 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3636 ac_cv_prog_gcc_traditional=yes
7a197a62 3637fi
d0191583 3638rm -f conftest*
795ca3e5 3639
d0191583 3640 fi
795ca3e5 3641fi
ec6a6fbe
AK
3642{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3643$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3644 if test $ac_cv_prog_gcc_traditional = yes; then
3645 CC="$CC -traditional"
3646 fi
795ca3e5
AK
3647fi
3648
d0191583
JM
3649# Find a good install program. We prefer a C program (faster),
3650# so one script is as good as another. But avoid the broken or
3651# incompatible versions:
3652# SysV /etc/install, /usr/sbin/install
3653# SunOS /usr/etc/install
3654# IRIX /sbin/install
3655# AIX /bin/install
3656# AmigaOS /C/install, which installs bootblocks on floppy discs
3657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3660# OS/2's system install, which has a completely different semantic
3661# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3662# Reject install programs that cannot install multiple files.
3663{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3664$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3665if test -z "$INSTALL"; then
3666if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3667 $as_echo_n "(cached) " >&6
ad6254c5 3668else
d0191583
JM
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 # Account for people who put trailing slashes in PATH elements.
3675case $as_dir/ in
3676 ./ | .// | /cC/* | \
3677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3678 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3679 /usr/ucb/* ) ;;
3680 *)
3681 # OSF1 and SCO ODT 3.0 have their own names for install.
3682 # Don't use installbsd from OSF since it installs stuff as root
3683 # by default.
3684 for ac_prog in ginstall scoinst install; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3687 if test $ac_prog = install &&
3688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3689 # AIX install. It has an incompatible calling convention.
3690 :
3691 elif test $ac_prog = install &&
3692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3693 # program-specific install script used by HP pwplus--don't use.
3694 :
3695 else
ec6a6fbe
AK
3696 rm -rf conftest.one conftest.two conftest.dir
3697 echo one > conftest.one
3698 echo two > conftest.two
3699 mkdir conftest.dir
3700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3701 test -s conftest.one && test -s conftest.two &&
3702 test -s conftest.dir/conftest.one &&
3703 test -s conftest.dir/conftest.two
3704 then
3705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3706 break 3
3707 fi
d0191583
JM
3708 fi
3709 fi
3710 done
3711 done
3712 ;;
3713esac
ec6a6fbe 3714
d0191583
JM
3715done
3716IFS=$as_save_IFS
80992638 3717
ec6a6fbe 3718rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3719
3720fi
3721 if test "${ac_cv_path_install+set}" = set; then
3722 INSTALL=$ac_cv_path_install
7a197a62 3723 else
d0191583
JM
3724 # As a last resort, use the slow shell script. Don't cache a
3725 # value for INSTALL within a source directory, because that will
3726 # break other packages using the cache if that directory is
3727 # removed, or if the value is a relative name.
3728 INSTALL=$ac_install_sh
7a197a62 3729 fi
d0191583 3730fi
ec6a6fbe
AK
3731{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3732$as_echo "$INSTALL" >&6; }
ad6254c5 3733
d0191583
JM
3734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735# It thinks the first close brace ends the variable substitution.
3736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3737
d0191583 3738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3739
d0191583
JM
3740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741
ec6a6fbe
AK
3742{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3743$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3744LN_S=$as_ln_s
3745if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3746 { $as_echo "$as_me:$LINENO: result: yes" >&5
3747$as_echo "yes" >&6; }
d0191583 3748else
ec6a6fbe
AK
3749 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3750$as_echo "no, using $LN_S" >&6; }
795ca3e5 3751fi
d0191583 3752
ec6a6fbe
AK
3753{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3754$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3755set x ${MAKE-make}
3756ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3757if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3758 $as_echo_n "(cached) " >&6
7a197a62 3759else
d0191583
JM
3760 cat >conftest.make <<\_ACEOF
3761SHELL = /bin/sh
3762all:
3763 @echo '@@@%%%=$(MAKE)=@@@%%%'
3764_ACEOF
3765# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3766case `${MAKE-make} -f conftest.make 2>/dev/null` in
3767 *@@@%%%=?*=@@@%%%*)
3768 eval ac_cv_prog_make_${ac_make}_set=yes;;
3769 *)
3770 eval ac_cv_prog_make_${ac_make}_set=no;;
3771esac
3772rm -f conftest.make
ad6254c5 3773fi
d0191583 3774if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3775 { $as_echo "$as_me:$LINENO: result: yes" >&5
3776$as_echo "yes" >&6; }
d0191583
JM
3777 SET_MAKE=
3778else
ec6a6fbe
AK
3779 { $as_echo "$as_me:$LINENO: result: no" >&5
3780$as_echo "no" >&6; }
d0191583 3781 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3782fi
8106cdd5 3783
ec6a6fbe
AK
3784{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3785$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3786if test -z "$MKDIR_P"; then
3787 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3788 $as_echo_n "(cached) " >&6
5556819a
AK
3789else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3792do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_prog in mkdir gmkdir; do
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3799 'mkdir (GNU coreutils) '* | \
3800 'mkdir (coreutils) '* | \
3801 'mkdir (fileutils) '4.1*)
3802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3803 break 3;;
3804 esac
3805 done
3806 done
3807done
3808IFS=$as_save_IFS
3809
3810fi
3811
3812 if test "${ac_cv_path_mkdir+set}" = set; then
3813 MKDIR_P="$ac_cv_path_mkdir -p"
3814 else
3815 # As a last resort, use the slow shell script. Don't cache a
3816 # value for MKDIR_P within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the value is a relative name.
3819 test -d ./--version && rmdir ./--version
3820 MKDIR_P="$ac_install_sh -d"
3821 fi
3822fi
ec6a6fbe
AK
3823{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3824$as_echo "$MKDIR_P" >&6; }
5556819a 3825
d0191583
JM
3826if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3828set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3830$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3831if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3832 $as_echo_n "(cached) " >&6
d0191583
JM
3833else
3834 if test -n "$RANLIB"; then
3835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3846 break 2
3847 fi
3848done
3849done
3850IFS=$as_save_IFS
8106cdd5 3851
795ca3e5 3852fi
d0191583
JM
3853fi
3854RANLIB=$ac_cv_prog_RANLIB
3855if test -n "$RANLIB"; then
ec6a6fbe
AK
3856 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3857$as_echo "$RANLIB" >&6; }
d0191583 3858else
ec6a6fbe
AK
3859 { $as_echo "$as_me:$LINENO: result: no" >&5
3860$as_echo "no" >&6; }
d0191583
JM
3861fi
3862
8106cdd5 3863
ad6254c5 3864fi
d0191583
JM
3865if test -z "$ac_cv_prog_RANLIB"; then
3866 ac_ct_RANLIB=$RANLIB
3867 # Extract the first word of "ranlib", so it can be a program name with args.
3868set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3869{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3871if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3872 $as_echo_n "(cached) " >&6
ad6254c5 3873else
d0191583
JM
3874 if test -n "$ac_ct_RANLIB"; then
3875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
8106cdd5 3879do
d0191583
JM
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3886 break 2
3887 fi
3888done
3889done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3895if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3896 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3897$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3898else
ec6a6fbe
AK
3899 { $as_echo "$as_me:$LINENO: result: no" >&5
3900$as_echo "no" >&6; }
d0191583 3901fi
ad6254c5 3902
d0191583
JM
3903 if test "x$ac_ct_RANLIB" = x; then
3904 RANLIB=":"
3905 else
3906 case $cross_compiling:$ac_tool_warned in
3907yes:)
ec6a6fbe
AK
3908{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3910ac_tool_warned=yes ;;
3911esac
3912 RANLIB=$ac_ct_RANLIB
3913 fi
3914else
3915 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3916fi
7a197a62 3917
d0191583
JM
3918# Extract the first word of "cflow", so it can be a program name with args.
3919set dummy cflow; ac_word=$2
ec6a6fbe
AK
3920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3922if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3923 $as_echo_n "(cached) " >&6
d0191583
JM
3924else
3925 case $CFLOW_CMD in
3926 [\\/]* | ?:[\\/]*)
3927 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3928 ;;
3929 *)
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3939 break 2
3940 fi
3941done
3942done
3943IFS=$as_save_IFS
ad6254c5 3944
d0191583 3945 ;;
7a197a62 3946esac
d0191583
JM
3947fi
3948CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3949if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3950 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3951$as_echo "$CFLOW_CMD" >&6; }
80992638 3952else
ec6a6fbe
AK
3953 { $as_echo "$as_me:$LINENO: result: no" >&5
3954$as_echo "no" >&6; }
795ca3e5 3955fi
7a197a62 3956
ad6254c5 3957
d0191583
JM
3958# Extract the first word of "cscope", so it can be a program name with args.
3959set dummy cscope; ac_word=$2
ec6a6fbe
AK
3960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3962if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3963 $as_echo_n "(cached) " >&6
d0191583
JM
3964else
3965 case $CSCOPE_CMD in
3966 [\\/]* | ?:[\\/]*)
3967 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3968 ;;
3969 *)
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3979 break 2
3980 fi
795ca3e5 3981done
d0191583
JM
3982done
3983IFS=$as_save_IFS
795ca3e5 3984
d0191583
JM
3985 ;;
3986esac
ad6254c5 3987fi
d0191583
JM
3988CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3989if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3990 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3991$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3992else
ec6a6fbe
AK
3993 { $as_echo "$as_me:$LINENO: result: no" >&5
3994$as_echo "no" >&6; }
795ca3e5 3995fi
ad6254c5 3996
7a197a62 3997
ad6254c5 3998
d0191583
JM
3999################################################################################
4000
4001
4002
4003
4004
4005ac_header_dirent=no
4006for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4007 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4008{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4009$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4011 $as_echo_n "(cached) " >&6
d0191583 4012else
ad6254c5 4013 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4014/* confdefs.h. */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h. */
d0191583
JM
4019#include <sys/types.h>
4020#include <$ac_hdr>
4021
4022int
4023main ()
4024{
4025if ((DIR *) 0)
4026return 0;
4027 ;
4028 return 0;
4029}
ad6254c5 4030_ACEOF
d0191583
JM
4031rm -f conftest.$ac_objext
4032if { (ac_try="$ac_compile"
7a197a62
AK
4033case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
ec6a6fbe
AK
4037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4038$as_echo "$ac_try_echo") >&5
d0191583 4039 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
ec6a6fbe 4044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4045 (exit $ac_status); } && {
4046 test -z "$ac_c_werror_flag" ||
25fbec5b 4047 test ! -s conftest.err
d0191583
JM
4048 } && test -s conftest.$ac_objext; then
4049 eval "$as_ac_Header=yes"
ad6254c5 4050else
ec6a6fbe 4051 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4052sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4053
d0191583 4054 eval "$as_ac_Header=no"
795ca3e5 4055fi
7a197a62 4056
d0191583 4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4058fi
ec6a6fbe
AK
4059ac_res=`eval 'as_val=${'$as_ac_Header'}
4060 $as_echo "$as_val"'`
4061 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4062$as_echo "$ac_res" >&6; }
4063as_val=`eval 'as_val=${'$as_ac_Header'}
4064 $as_echo "$as_val"'`
4065 if test "x$as_val" = x""yes; then
d0191583 4066 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4067#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4068_ACEOF
795ca3e5 4069
d0191583
JM
4070ac_header_dirent=$ac_hdr; break
4071fi
ad6254c5 4072
d0191583
JM
4073done
4074# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4075if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4076 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4077$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4078if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4079 $as_echo_n "(cached) " >&6
ad6254c5 4080else
d0191583
JM
4081 ac_func_search_save_LIBS=$LIBS
4082cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
ad6254c5 4088
d0191583
JM
4089/* Override any GCC internal prototype to avoid an error.
4090 Use char because int might match the return type of a GCC
4091 builtin and then its argument prototype would still apply. */
4092#ifdef __cplusplus
4093extern "C"
4094#endif
4095char opendir ();
4096int
4097main ()
4098{
4099return opendir ();
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104for ac_lib in '' dir; do
4105 if test -z "$ac_lib"; then
4106 ac_res="none required"
4107 else
4108 ac_res=-l$ac_lib
4109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4110 fi
4111 rm -f conftest.$ac_objext conftest$ac_exeext
4112if { (ac_try="$ac_link"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
ec6a6fbe
AK
4117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4118$as_echo "$ac_try_echo") >&5
d0191583
JM
4119 (eval "$ac_link") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
ec6a6fbe 4124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4125 (exit $ac_status); } && {
4126 test -z "$ac_c_werror_flag" ||
4127 test ! -s conftest.err
ec6a6fbe
AK
4128 } && test -s conftest$ac_exeext && {
4129 test "$cross_compiling" = yes ||
4130 $as_test_x conftest$ac_exeext
4131 }; then
d0191583
JM
4132 ac_cv_search_opendir=$ac_res
4133else
ec6a6fbe 4134 $as_echo "$as_me: failed program was:" >&5
d0191583 4135sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4136
ad6254c5 4137
795ca3e5 4138fi
ad6254c5 4139
ec6a6fbe 4140rm -rf conftest.dSYM
d0191583
JM
4141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4142 conftest$ac_exeext
4143 if test "${ac_cv_search_opendir+set}" = set; then
4144 break
7a197a62 4145fi
d0191583
JM
4146done
4147if test "${ac_cv_search_opendir+set}" = set; then
4148 :
7a197a62 4149else
d0191583 4150 ac_cv_search_opendir=no
7a197a62 4151fi
d0191583
JM
4152rm conftest.$ac_ext
4153LIBS=$ac_func_search_save_LIBS
7a197a62 4154fi
ec6a6fbe
AK
4155{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4156$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4157ac_res=$ac_cv_search_opendir
4158if test "$ac_res" != no; then
4159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4160
d0191583 4161fi
7a197a62 4162
7a197a62 4163else
ec6a6fbe
AK
4164 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4165$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4166if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4167 $as_echo_n "(cached) " >&6
7a197a62 4168else
d0191583
JM
4169 ac_func_search_save_LIBS=$LIBS
4170cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h. */
7a197a62 4176
d0191583
JM
4177/* Override any GCC internal prototype to avoid an error.
4178 Use char because int might match the return type of a GCC
4179 builtin and then its argument prototype would still apply. */
4180#ifdef __cplusplus
4181extern "C"
4182#endif
4183char opendir ();
4184int
4185main ()
4186{
4187return opendir ();
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192for ac_lib in '' x; do
4193 if test -z "$ac_lib"; then
4194 ac_res="none required"
4195 else
4196 ac_res=-l$ac_lib
4197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4198 fi
4199 rm -f conftest.$ac_objext conftest$ac_exeext
4200if { (ac_try="$ac_link"
4201case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
ec6a6fbe
AK
4205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206$as_echo "$ac_try_echo") >&5
d0191583
JM
4207 (eval "$ac_link") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
ec6a6fbe 4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
ec6a6fbe
AK
4216 } && test -s conftest$ac_exeext && {
4217 test "$cross_compiling" = yes ||
4218 $as_test_x conftest$ac_exeext
4219 }; then
d0191583
JM
4220 ac_cv_search_opendir=$ac_res
4221else
ec6a6fbe 4222 $as_echo "$as_me: failed program was:" >&5
d0191583 4223sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4224
4225
4226fi
4227
ec6a6fbe 4228rm -rf conftest.dSYM
d0191583
JM
4229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4230 conftest$ac_exeext
4231 if test "${ac_cv_search_opendir+set}" = set; then
4232 break
7a197a62 4233fi
d0191583
JM
4234done
4235if test "${ac_cv_search_opendir+set}" = set; then
4236 :
7a197a62 4237else
d0191583 4238 ac_cv_search_opendir=no
7a197a62 4239fi
d0191583
JM
4240rm conftest.$ac_ext
4241LIBS=$ac_func_search_save_LIBS
4242fi
ec6a6fbe
AK
4243{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4244$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4245ac_res=$ac_cv_search_opendir
4246if test "$ac_res" != no; then
4247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4248
7a197a62 4249fi
7a197a62 4250
d0191583 4251fi
7a197a62 4252
ec6a6fbe
AK
4253{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4254$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4255if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4256 $as_echo_n "(cached) " >&6
7a197a62
AK
4257else
4258 cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264#include <stdlib.h>
4265#include <stdarg.h>
4266#include <string.h>
4267#include <float.h>
4268
4269int
4270main ()
4271{
4272
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext
4278if { (ac_try="$ac_compile"
4279case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
ec6a6fbe
AK
4283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284$as_echo "$ac_try_echo") >&5
7a197a62
AK
4285 (eval "$ac_compile") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
ec6a6fbe 4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4291 (exit $ac_status); } && {
4292 test -z "$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 } && test -s conftest.$ac_objext; then
7a197a62
AK
4295 ac_cv_header_stdc=yes
4296else
ec6a6fbe 4297 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_cv_header_stdc=no
4301fi
4302
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304
4305if test $ac_cv_header_stdc = yes; then
4306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4307 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313#include <string.h>
8106cdd5 4314
ad6254c5
AK
4315_ACEOF
4316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 $EGREP "memchr" >/dev/null 2>&1; then
4318 :
4319else
4320 ac_cv_header_stdc=no
80992638 4321fi
ad6254c5 4322rm -f conftest*
795ca3e5
AK
4323
4324fi
4325
ad6254c5
AK
4326if test $ac_cv_header_stdc = yes; then
4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
80992638 4334#include <stdlib.h>
ad6254c5
AK
4335
4336_ACEOF
80992638 4337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4338 $EGREP "free" >/dev/null 2>&1; then
4339 :
795ca3e5 4340else
ad6254c5 4341 ac_cv_header_stdc=no
795ca3e5 4342fi
80992638 4343rm -f conftest*
8106cdd5 4344
795ca3e5
AK
4345fi
4346
ad6254c5
AK
4347if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then
4350 :
795ca3e5 4351else
ad6254c5 4352 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4353/* confdefs.h. */
4354_ACEOF
4355cat confdefs.h >>conftest.$ac_ext
4356cat >>conftest.$ac_ext <<_ACEOF
4357/* end confdefs.h. */
4358#include <ctype.h>
7a197a62 4359#include <stdlib.h>
ad6254c5
AK
4360#if ((' ' & 0x0FF) == 0x020)
4361# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4362# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4363#else
4364# define ISLOWER(c) \
8a2fc586
AK
4365 (('a' <= (c) && (c) <= 'i') \
4366 || ('j' <= (c) && (c) <= 'r') \
4367 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4368# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4369#endif
ad6254c5
AK
4370
4371#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4372int
4373main ()
4374{
4375 int i;
4376 for (i = 0; i < 256; i++)
4377 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4378 || toupper (i) != TOUPPER (i))
7a197a62
AK
4379 return 2;
4380 return 0;
ad6254c5
AK
4381}
4382_ACEOF
4383rm -f conftest$ac_exeext
7a197a62
AK
4384if { (ac_try="$ac_link"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
ec6a6fbe
AK
4389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4390$as_echo "$ac_try_echo") >&5
7a197a62 4391 (eval "$ac_link") 2>&5
ad6254c5 4392 ac_status=$?
ec6a6fbe 4393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4395 { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
ec6a6fbe
AK
4399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400$as_echo "$ac_try_echo") >&5
7a197a62 4401 (eval "$ac_try") 2>&5
ad6254c5 4402 ac_status=$?
ec6a6fbe 4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4404 (exit $ac_status); }; }; then
4405 :
795ca3e5 4406else
ec6a6fbe
AK
4407 $as_echo "$as_me: program exited with status $ac_status" >&5
4408$as_echo "$as_me: failed program was:" >&5
ad6254c5 4409sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4410
ad6254c5
AK
4411( exit $ac_status )
4412ac_cv_header_stdc=no
80992638 4413fi
ec6a6fbe 4414rm -rf conftest.dSYM
7a197a62 4415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4416fi
7a197a62
AK
4417
4418
ad6254c5
AK
4419fi
4420fi
ec6a6fbe
AK
4421{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4422$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4423if test $ac_cv_header_stdc = yes; then
4424
4425cat >>confdefs.h <<\_ACEOF
4426#define STDC_HEADERS 1
4427_ACEOF
795ca3e5
AK
4428
4429fi
4430
ec6a6fbe
AK
4431{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4432$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4433if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4434 $as_echo_n "(cached) " >&6
8106cdd5 4435else
ad6254c5 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 <sys/types.h>
ad6254c5
AK
4443#include <sys/wait.h>
4444#ifndef WEXITSTATUS
7a197a62 4445# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4446#endif
4447#ifndef WIFEXITED
4448# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4449#endif
4450
4451int
4452main ()
4453{
4454 int s;
4455 wait (&s);
4456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461rm -f conftest.$ac_objext
7a197a62
AK
4462if { (ac_try="$ac_compile"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
ec6a6fbe
AK
4467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468$as_echo "$ac_try_echo") >&5
7a197a62 4469 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4470 ac_status=$?
8a2fc586
AK
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
ec6a6fbe 4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4479 ac_cv_header_sys_wait_h=yes
4480else
ec6a6fbe 4481 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
7a197a62 4484 ac_cv_header_sys_wait_h=no
8106cdd5 4485fi
7a197a62
AK
4486
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4488fi
ec6a6fbe
AK
4489{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4490$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4491if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4492
ad6254c5
AK
4493cat >>confdefs.h <<\_ACEOF
4494#define HAVE_SYS_WAIT_H 1
4495_ACEOF
795ca3e5
AK
4496
4497fi
4498
ec6a6fbe
AK
4499{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4500$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4501if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4502 $as_echo_n "(cached) " >&6
795ca3e5 4503else
ad6254c5 4504 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
795ca3e5
AK
4510#include <sys/types.h>
4511#include <sys/time.h>
4512#include <time.h>
ad6254c5
AK
4513
4514int
4515main ()
4516{
4517if ((struct tm *) 0)
4518return 0;
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523rm -f conftest.$ac_objext
7a197a62
AK
4524if { (ac_try="$ac_compile"
4525case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
ec6a6fbe
AK
4529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530$as_echo "$ac_try_echo") >&5
7a197a62 4531 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4532 ac_status=$?
8a2fc586
AK
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
ec6a6fbe 4536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4541 ac_cv_header_time=yes
4542else
ec6a6fbe 4543 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
7a197a62 4546 ac_cv_header_time=no
795ca3e5 4547fi
7a197a62
AK
4548
4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4550fi
ec6a6fbe
AK
4551{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4552$as_echo "$ac_cv_header_time" >&6; }
80992638 4553if test $ac_cv_header_time = yes; then
ad6254c5
AK
4554
4555cat >>confdefs.h <<\_ACEOF
795ca3e5 4556#define TIME_WITH_SYS_TIME 1
ad6254c5 4557_ACEOF
b896caa1 4558
8106cdd5 4559fi
b896caa1 4560
b896caa1 4561
d0191583
JM
4562# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4573 inttypes.h stdint.h unistd.h
4574do
ec6a6fbe
AK
4575as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4577$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4579 $as_echo_n "(cached) " >&6
d0191583
JM
4580else
4581 cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
4587$ac_includes_default
4588
4589#include <$ac_header>
4590_ACEOF
4591rm -f conftest.$ac_objext
4592if { (ac_try="$ac_compile"
4593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
ec6a6fbe
AK
4597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598$as_echo "$ac_try_echo") >&5
d0191583
JM
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
ec6a6fbe 4604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4605 (exit $ac_status); } && {
4606 test -z "$ac_c_werror_flag" ||
4607 test ! -s conftest.err
4608 } && test -s conftest.$ac_objext; then
4609 eval "$as_ac_Header=yes"
4610else
ec6a6fbe 4611 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 eval "$as_ac_Header=no"
4615fi
4616
4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618fi
ec6a6fbe
AK
4619ac_res=`eval 'as_val=${'$as_ac_Header'}
4620 $as_echo "$as_val"'`
4621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4622$as_echo "$ac_res" >&6; }
4623as_val=`eval 'as_val=${'$as_ac_Header'}
4624 $as_echo "$as_val"'`
4625 if test "x$as_val" = x""yes; then
d0191583 4626 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4628_ACEOF
4629
4630fi
4631
4632done
4633
b896caa1 4634
b896caa1
AK
4635
4636
795ca3e5 4637
8106cdd5 4638
80992638 4639
795ca3e5 4640
a38df97f 4641
80992638 4642
d0191583
JM
4643
4644
4645
4646
4647
4648for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4649 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4650do
ec6a6fbe 4651as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4654$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4656 $as_echo_n "(cached) " >&6
d0191583 4657fi
ec6a6fbe
AK
4658ac_res=`eval 'as_val=${'$as_ac_Header'}
4659 $as_echo "$as_val"'`
4660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4661$as_echo "$ac_res" >&6; }
ad6254c5 4662else
d0191583 4663 # Is the header compilable?
ec6a6fbe
AK
4664{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4665$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4666cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
4672$ac_includes_default
ad6254c5
AK
4673#include <$ac_header>
4674_ACEOF
4675rm -f conftest.$ac_objext
7a197a62
AK
4676if { (ac_try="$ac_compile"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
ec6a6fbe
AK
4681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682$as_echo "$ac_try_echo") >&5
7a197a62 4683 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4684 ac_status=$?
8a2fc586
AK
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
ec6a6fbe 4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
d0191583 4693 ac_header_compiler=yes
ad6254c5 4694else
ec6a6fbe 4695 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4696sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4697
d0191583 4698 ac_header_compiler=no
ad6254c5 4699fi
7a197a62
AK
4700
4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4702{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4703$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4704
4705# Is the header present?
ec6a6fbe
AK
4706{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4707$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714#include <$ac_header>
4715_ACEOF
4716if { (ac_try="$ac_cpp conftest.$ac_ext"
4717case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720esac
ec6a6fbe
AK
4721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722$as_echo "$ac_try_echo") >&5
d0191583
JM
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
ec6a6fbe 4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 }; then
4733 ac_header_preproc=yes
4734else
ec6a6fbe 4735 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_header_preproc=no
4739fi
4740
4741rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4742{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4743$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4744
4745# So? What about this header?
4746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4747 yes:no: )
ec6a6fbe
AK
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4749$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4751$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4752 ac_header_preproc=yes
4753 ;;
4754 no:yes:* )
ec6a6fbe
AK
4755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4756$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4758$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4760$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4762$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4766$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4767
4768 ;;
4769esac
ec6a6fbe
AK
4770{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4771$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4773 $as_echo_n "(cached) " >&6
d0191583
JM
4774else
4775 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4776fi
ec6a6fbe
AK
4777ac_res=`eval 'as_val=${'$as_ac_Header'}
4778 $as_echo "$as_val"'`
4779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4780$as_echo "$ac_res" >&6; }
d0191583
JM
4781
4782fi
ec6a6fbe
AK
4783as_val=`eval 'as_val=${'$as_ac_Header'}
4784 $as_echo "$as_val"'`
4785 if test "x$as_val" = x""yes; then
ad6254c5 4786 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4788_ACEOF
a38df97f 4789
d0191583 4790else
ec6a6fbe
AK
4791 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4792$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4793 { (exit 1); exit 1; }; }
80992638
AK
4794fi
4795
ad6254c5
AK
4796done
4797
7d1552c9 4798
d0191583
JM
4799case "$host_os" in
4800 linux*)
7d1552c9 4801
80992638 4802
5a52dca9 4803
d0191583 4804for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4805do
ec6a6fbe 4806as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4809$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4811 $as_echo_n "(cached) " >&6
ad6254c5 4812fi
ec6a6fbe
AK
4813ac_res=`eval 'as_val=${'$as_ac_Header'}
4814 $as_echo "$as_val"'`
4815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4816$as_echo "$ac_res" >&6; }
ad6254c5
AK
4817else
4818 # Is the header compilable?
ec6a6fbe
AK
4819{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4820$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4821cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827$ac_includes_default
4828#include <$ac_header>
4829_ACEOF
4830rm -f conftest.$ac_objext
7a197a62
AK
4831if { (ac_try="$ac_compile"
4832case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835esac
ec6a6fbe
AK
4836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837$as_echo "$ac_try_echo") >&5
7a197a62 4838 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4839 ac_status=$?
8a2fc586
AK
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
ec6a6fbe 4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
fc54be10
AK
4848 ac_header_compiler=yes
4849else
ec6a6fbe 4850 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 ac_header_compiler=no
4854fi
4855
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4857{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4859
4860# Is the header present?
ec6a6fbe
AK
4861{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4863cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#include <$ac_header>
4870_ACEOF
7a197a62
AK
4871if { (ac_try="$ac_cpp conftest.$ac_ext"
4872case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875esac
ec6a6fbe
AK
4876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4877$as_echo "$ac_try_echo") >&5
7a197a62 4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
ec6a6fbe 4883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4884 (exit $ac_status); } >/dev/null && {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 }; then
ad6254c5
AK
4888 ac_header_preproc=yes
4889else
ec6a6fbe 4890 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_preproc=no
4894fi
7a197a62 4895
ad6254c5 4896rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4897{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4899
4900# So? What about this header?
8a2fc586
AK
4901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4902 yes:no: )
ec6a6fbe
AK
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4906$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4907 ac_header_preproc=yes
ad6254c5 4908 ;;
8a2fc586 4909 no:yes:* )
ec6a6fbe
AK
4910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4911$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4913$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4915$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4917$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4921$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4922
ad6254c5
AK
4923 ;;
4924esac
ec6a6fbe
AK
4925{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4926$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4928 $as_echo_n "(cached) " >&6
ad6254c5 4929else
8a2fc586 4930 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4931fi
ec6a6fbe
AK
4932ac_res=`eval 'as_val=${'$as_ac_Header'}
4933 $as_echo "$as_val"'`
4934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4935$as_echo "$ac_res" >&6; }
ad6254c5
AK
4936
4937fi
ec6a6fbe
AK
4938as_val=`eval 'as_val=${'$as_ac_Header'}
4939 $as_echo "$as_val"'`
4940 if test "x$as_val" = x""yes; then
ad6254c5 4941 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4943_ACEOF
b896caa1 4944
d8ac0fbc 4945else
ec6a6fbe
AK
4946 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4947$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4948 { (exit 1); exit 1; }; }
80992638
AK
4949fi
4950
ad6254c5 4951done
d0191583
JM
4952 ;;
4953 darwin*)
d8ac0fbc 4954
d8ac0fbc 4955
d0191583 4956for ac_header in machine/endian.h sys/disk.h
ad6254c5 4957do
ec6a6fbe 4958as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4961$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4963 $as_echo_n "(cached) " >&6
ad6254c5 4964fi
ec6a6fbe
AK
4965ac_res=`eval 'as_val=${'$as_ac_Header'}
4966 $as_echo "$as_val"'`
4967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4968$as_echo "$ac_res" >&6; }
ad6254c5
AK
4969else
4970 # Is the header compilable?
ec6a6fbe
AK
4971{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4972$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4973cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979$ac_includes_default
4980#include <$ac_header>
4981_ACEOF
4982rm -f conftest.$ac_objext
7a197a62
AK
4983if { (ac_try="$ac_compile"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
ec6a6fbe
AK
4988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989$as_echo "$ac_try_echo") >&5
7a197a62 4990 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4991 ac_status=$?
8a2fc586
AK
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
ec6a6fbe 4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5000 ac_header_compiler=yes
5001else
ec6a6fbe 5002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
7a197a62 5005 ac_header_compiler=no
ad6254c5 5006fi
7a197a62
AK
5007
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5009{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5010$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5011
5012# Is the header present?
ec6a6fbe
AK
5013{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5014$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5015cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
5021#include <$ac_header>
5022_ACEOF
7a197a62
AK
5023if { (ac_try="$ac_cpp conftest.$ac_ext"
5024case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027esac
ec6a6fbe
AK
5028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029$as_echo "$ac_try_echo") >&5
7a197a62 5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
ec6a6fbe 5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 }; then
ad6254c5
AK
5040 ac_header_preproc=yes
5041else
ec6a6fbe 5042 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 ac_header_preproc=no
5046fi
7a197a62 5047
ad6254c5 5048rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5049{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5050$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5051
5052# So? What about this header?
8a2fc586
AK
5053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5054 yes:no: )
ec6a6fbe
AK
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5056$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5058$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5059 ac_header_preproc=yes
ad6254c5 5060 ;;
8a2fc586 5061 no:yes:* )
ec6a6fbe
AK
5062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5063$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5065$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5067$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5069$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5071$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5073$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5074
ad6254c5
AK
5075 ;;
5076esac
ec6a6fbe
AK
5077{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5078$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5080 $as_echo_n "(cached) " >&6
ad6254c5 5081else
8a2fc586 5082 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5083fi
ec6a6fbe
AK
5084ac_res=`eval 'as_val=${'$as_ac_Header'}
5085 $as_echo "$as_val"'`
5086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5087$as_echo "$ac_res" >&6; }
ad6254c5
AK
5088
5089fi
ec6a6fbe
AK
5090as_val=`eval 'as_val=${'$as_ac_Header'}
5091 $as_echo "$as_val"'`
5092 if test "x$as_val" = x""yes; then
ad6254c5 5093 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5095_ACEOF
4922197a 5096
4922197a 5097else
ec6a6fbe
AK
5098 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5099$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5100 { (exit 1); exit 1; }; }
80992638
AK
5101fi
5102
ad6254c5 5103done
d0191583
JM
5104 ;;
5105esac
4922197a 5106
4922197a 5107
4922197a 5108
ad6254c5
AK
5109
5110
d0191583
JM
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5124 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5125 sys/types.h unistd.h
ad6254c5 5126do
ec6a6fbe 5127as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5130$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5132 $as_echo_n "(cached) " >&6
ad6254c5 5133fi
ec6a6fbe
AK
5134ac_res=`eval 'as_val=${'$as_ac_Header'}
5135 $as_echo "$as_val"'`
5136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5137$as_echo "$ac_res" >&6; }
795ca3e5 5138else
ad6254c5 5139 # Is the header compilable?
ec6a6fbe
AK
5140{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5141$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5142cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5143/* confdefs.h. */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148$ac_includes_default
5149#include <$ac_header>
5150_ACEOF
5151rm -f conftest.$ac_objext
7a197a62
AK
5152if { (ac_try="$ac_compile"
5153case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156esac
ec6a6fbe
AK
5157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5158$as_echo "$ac_try_echo") >&5
7a197a62 5159 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5160 ac_status=$?
8a2fc586
AK
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
ec6a6fbe 5164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5169 ac_header_compiler=yes
5170else
ec6a6fbe 5171 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
7a197a62 5174 ac_header_compiler=no
ad6254c5 5175fi
7a197a62
AK
5176
5177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5179$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5180
5181# Is the header present?
ec6a6fbe
AK
5182{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5183$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5184cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5185/* confdefs.h. */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h. */
5190#include <$ac_header>
5191_ACEOF
7a197a62
AK
5192if { (ac_try="$ac_cpp conftest.$ac_ext"
5193case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196esac
ec6a6fbe
AK
5197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198$as_echo "$ac_try_echo") >&5
7a197a62 5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
ec6a6fbe 5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5205 (exit $ac_status); } >/dev/null && {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 }; then
ad6254c5
AK
5209 ac_header_preproc=yes
5210else
ec6a6fbe 5211 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_header_preproc=no
5215fi
7a197a62 5216
ad6254c5 5217rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5219$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5220
5221# So? What about this header?
8a2fc586
AK
5222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5223 yes:no: )
ec6a6fbe
AK
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5225$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5227$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5228 ac_header_preproc=yes
ad6254c5 5229 ;;
8a2fc586 5230 no:yes:* )
ec6a6fbe
AK
5231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5232$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5234$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5236$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5238$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5240$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5242$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5243
ad6254c5
AK
5244 ;;
5245esac
ec6a6fbe
AK
5246{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5247$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5249 $as_echo_n "(cached) " >&6
ad6254c5 5250else
8a2fc586 5251 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5252fi
ec6a6fbe
AK
5253ac_res=`eval 'as_val=${'$as_ac_Header'}
5254 $as_echo "$as_val"'`
5255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5256$as_echo "$ac_res" >&6; }
80992638 5257
ad6254c5 5258fi
ec6a6fbe
AK
5259as_val=`eval 'as_val=${'$as_ac_Header'}
5260 $as_echo "$as_val"'`
5261 if test "x$as_val" = x""yes; then
ad6254c5 5262 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5264_ACEOF
795ca3e5 5265
795ca3e5 5266else
ec6a6fbe
AK
5267 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5268$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5269 { (exit 1); exit 1; }; }
80992638
AK
5270fi
5271
ad6254c5 5272done
ad6254c5 5273
795ca3e5 5274
d0191583
JM
5275
5276for ac_header in termios.h sys/statvfs.h
ad6254c5 5277do
ec6a6fbe 5278as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5281$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5283 $as_echo_n "(cached) " >&6
ad6254c5 5284fi
ec6a6fbe
AK
5285ac_res=`eval 'as_val=${'$as_ac_Header'}
5286 $as_echo "$as_val"'`
5287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5288$as_echo "$ac_res" >&6; }
ad6254c5
AK
5289else
5290 # Is the header compilable?
ec6a6fbe
AK
5291{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5292$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5293cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5294/* confdefs.h. */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h. */
5299$ac_includes_default
5300#include <$ac_header>
5301_ACEOF
5302rm -f conftest.$ac_objext
7a197a62
AK
5303if { (ac_try="$ac_compile"
5304case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
ec6a6fbe
AK
5308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5309$as_echo "$ac_try_echo") >&5
7a197a62 5310 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5311 ac_status=$?
8a2fc586
AK
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
ec6a6fbe 5315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5316 (exit $ac_status); } && {
5317 test -z "$ac_c_werror_flag" ||
5318 test ! -s conftest.err
5319 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5320 ac_header_compiler=yes
5321else
ec6a6fbe 5322 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
7a197a62 5325 ac_header_compiler=no
ad6254c5 5326fi
7a197a62
AK
5327
5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5329{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5331
5332# Is the header present?
ec6a6fbe
AK
5333{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5335cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5336/* confdefs.h. */
5337_ACEOF
5338cat confdefs.h >>conftest.$ac_ext
5339cat >>conftest.$ac_ext <<_ACEOF
5340/* end confdefs.h. */
5341#include <$ac_header>
5342_ACEOF
7a197a62
AK
5343if { (ac_try="$ac_cpp conftest.$ac_ext"
5344case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347esac
ec6a6fbe
AK
5348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5349$as_echo "$ac_try_echo") >&5
7a197a62 5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
ec6a6fbe 5355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5356 (exit $ac_status); } >/dev/null && {
5357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 }; then
ad6254c5
AK
5360 ac_header_preproc=yes
5361else
ec6a6fbe 5362 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_header_preproc=no
5366fi
7a197a62 5367
ad6254c5 5368rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5369{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5371
5372# So? What about this header?
8a2fc586
AK
5373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374 yes:no: )
ec6a6fbe
AK
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5379 ac_header_preproc=yes
ad6254c5 5380 ;;
8a2fc586 5381 no:yes:* )
ec6a6fbe
AK
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5385$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5389$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5394
ad6254c5
AK
5395 ;;
5396esac
ec6a6fbe
AK
5397{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5398$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5400 $as_echo_n "(cached) " >&6
ad6254c5 5401else
8a2fc586 5402 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5403fi
ec6a6fbe
AK
5404ac_res=`eval 'as_val=${'$as_ac_Header'}
5405 $as_echo "$as_val"'`
5406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5407$as_echo "$ac_res" >&6; }
b896caa1 5408
ad6254c5 5409fi
ec6a6fbe
AK
5410as_val=`eval 'as_val=${'$as_ac_Header'}
5411 $as_echo "$as_val"'`
5412 if test "x$as_val" = x""yes; then
ad6254c5 5413 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5415_ACEOF
5416
80992638
AK
5417fi
5418
ad6254c5 5419done
d0191583 5420
d3c8211f 5421
80992638 5422################################################################################
ec6a6fbe
AK
5423{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5424$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5425if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5426 $as_echo_n "(cached) " >&6
d3c8211f 5427else
ad6254c5 5428 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434
5435int
5436main ()
5437{
5438/* FIXME: Include the comments suggested by Paul. */
5439#ifndef __cplusplus
5440 /* Ultrix mips cc rejects this. */
5441 typedef int charset[2];
25fbec5b 5442 const charset cs;
ad6254c5 5443 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5444 char const *const *pcpcc;
5445 char **ppc;
ad6254c5
AK
5446 /* NEC SVR4.0.2 mips cc rejects this. */
5447 struct point {int x, y;};
5448 static struct point const zero = {0,0};
5449 /* AIX XL C 1.02.0.0 rejects this.
5450 It does not let you subtract one const X* pointer from another in
5451 an arm of an if-expression whose if-part is not a constant
5452 expression */
5453 const char *g = "string";
25fbec5b 5454 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5455 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5456 ++pcpcc;
5457 ppc = (char**) pcpcc;
5458 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5459 { /* SCO 3.2v4 cc rejects this. */
5460 char *t;
5461 char const *s = 0 ? (char *) 0 : (char const *) 0;
5462
5463 *t++ = 0;
7a197a62 5464 if (s) return 0;
ad6254c5
AK
5465 }
5466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5467 int x[] = {25, 17};
5468 const int *foo = &x[0];
5469 ++foo;
5470 }
5471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5472 typedef const int *iptr;
5473 iptr p = 0;
5474 ++p;
5475 }
5476 { /* AIX XL C 1.02.0.0 rejects this saying
5477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5478 struct s { int j; const int *ap[3]; };
5479 struct s *b; b->j = 5;
5480 }
5481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5482 const int foo = 10;
7a197a62 5483 if (!foo) return 0;
ad6254c5 5484 }
25fbec5b 5485 return !cs[0] && !zero.x;
ad6254c5
AK
5486#endif
5487
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
7a197a62
AK
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
ec6a6fbe
AK
5498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499$as_echo "$ac_try_echo") >&5
7a197a62 5500 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5501 ac_status=$?
8a2fc586
AK
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
ec6a6fbe 5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5510 ac_cv_c_const=yes
5511else
ec6a6fbe 5512 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
7a197a62 5515 ac_cv_c_const=no
ad6254c5 5516fi
7a197a62
AK
5517
5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5519fi
ec6a6fbe
AK
5520{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5521$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5522if test $ac_cv_c_const = no; then
80992638 5523
ad6254c5 5524cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5525#define const /**/
ad6254c5 5526_ACEOF
80992638 5527
d3c8211f 5528fi
d3c8211f 5529
ec6a6fbe
AK
5530{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5531$as_echo_n "checking for inline... " >&6; }
ad6254c5 5532if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5533 $as_echo_n "(cached) " >&6
8ef2b021 5534else
ad6254c5
AK
5535 ac_cv_c_inline=no
5536for ac_kw in inline __inline__ __inline; do
5537 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5538/* confdefs.h. */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h. */
5543#ifndef __cplusplus
5544typedef int foo_t;
5545static $ac_kw foo_t static_foo () {return 0; }
5546$ac_kw foo_t foo () {return 0; }
5547#endif
80992638 5548
ad6254c5
AK
5549_ACEOF
5550rm -f conftest.$ac_objext
7a197a62
AK
5551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
ec6a6fbe
AK
5556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557$as_echo "$ac_try_echo") >&5
7a197a62 5558 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5559 ac_status=$?
8a2fc586
AK
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
ec6a6fbe 5563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest.$ac_objext; then
7a197a62 5568 ac_cv_c_inline=$ac_kw
ad6254c5 5569else
ec6a6fbe 5570 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5571sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5572
7a197a62 5573
8ce0cbda 5574fi
7a197a62
AK
5575
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 test "$ac_cv_c_inline" != no && break
ad6254c5 5578done
8ce0cbda 5579
8ce0cbda 5580fi
ec6a6fbe
AK
5581{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5582$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5583
5584
ad6254c5
AK
5585case $ac_cv_c_inline in
5586 inline | yes) ;;
8a2fc586
AK
5587 *)
5588 case $ac_cv_c_inline in
5589 no) ac_val=;;
5590 *) ac_val=$ac_cv_c_inline;;
5591 esac
5592 cat >>confdefs.h <<_ACEOF
5593#ifndef __cplusplus
5594#define inline $ac_val
5595#endif
c1c065a3 5596_ACEOF
d0191583
JM
5597 ;;
5598esac
5599
ec6a6fbe
AK
5600{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5601$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5602if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5603 $as_echo_n "(cached) " >&6
d0191583
JM
5604else
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611$ac_includes_default
5612int
5613main ()
5614{
5615static struct stat ac_aggr;
5616if (ac_aggr.st_rdev)
5617return 0;
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
ec6a6fbe
AK
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_member_struct_stat_st_rdev=yes
5641else
5642 $as_echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h. */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h. */
5651$ac_includes_default
5652int
5653main ()
5654{
5655static struct stat ac_aggr;
5656if (sizeof ac_aggr.st_rdev)
5657return 0;
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext
5663if { (ac_try="$ac_compile"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5669$as_echo "$ac_try_echo") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 ac_cv_member_struct_stat_st_rdev=yes
5681else
5682 $as_echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_cv_member_struct_stat_st_rdev=no
5686fi
5687
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689fi
5690
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692fi
5693{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5694$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5695if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5696
5697cat >>confdefs.h <<_ACEOF
5698#define HAVE_STRUCT_STAT_ST_RDEV 1
5699_ACEOF
5700
5701
5702fi
5703
5704{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5705$as_echo_n "checking for off_t... " >&6; }
5706if test "${ac_cv_type_off_t+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5708else
5709 ac_cv_type_off_t=no
5710cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h. */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h. */
5716$ac_includes_default
5717int
5718main ()
5719{
5720if (sizeof (off_t))
5721 return 0;
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext
5727if { (ac_try="$ac_compile"
5728case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733$as_echo "$ac_try_echo") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h. */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h. */
5750$ac_includes_default
5751int
5752main ()
5753{
5754if (sizeof ((off_t)))
5755 return 0;
5756 ;
5757 return 0;
5758}
5759_ACEOF
5760rm -f conftest.$ac_objext
5761if { (ac_try="$ac_compile"
5762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767$as_echo "$ac_try_echo") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest.$ac_objext; then
5778 :
5779else
5780 $as_echo "$as_me: failed program was:" >&5
5781sed 's/^/| /' conftest.$ac_ext >&5
5782
5783 ac_cv_type_off_t=yes
5784fi
5785
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787else
5788 $as_echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791
5792fi
5793
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795fi
5796{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797$as_echo "$ac_cv_type_off_t" >&6; }
5798if test "x$ac_cv_type_off_t" = x""yes; then
5799 :
5800else
5801
5802cat >>confdefs.h <<_ACEOF
5803#define off_t long int
5804_ACEOF
5805
5806fi
5807
5808{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5809$as_echo_n "checking for pid_t... " >&6; }
5810if test "${ac_cv_type_pid_t+set}" = set; then
5811 $as_echo_n "(cached) " >&6
5812else
5813 ac_cv_type_pid_t=no
5814cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820$ac_includes_default
5821int
5822main ()
5823{
5824if (sizeof (pid_t))
5825 return 0;
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (ac_try="$ac_compile"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837$as_echo "$ac_try_echo") >&5
d0191583
JM
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
ec6a6fbe 5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
ec6a6fbe 5848 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854$ac_includes_default
5855int
5856main ()
5857{
ec6a6fbe
AK
5858if (sizeof ((pid_t)))
5859 return 0;
d0191583
JM
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (ac_try="$ac_compile"
5866case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
ec6a6fbe
AK
5870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871$as_echo "$ac_try_echo") >&5
d0191583
JM
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
ec6a6fbe 5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
ec6a6fbe 5882 :
d0191583 5883else
ec6a6fbe 5884 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
ec6a6fbe 5887 ac_cv_type_pid_t=yes
d0191583
JM
5888fi
5889
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5891else
5892 $as_echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895
d0191583
JM
5896fi
5897
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899fi
ec6a6fbe
AK
5900{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5901$as_echo "$ac_cv_type_pid_t" >&6; }
5902if test "x$ac_cv_type_pid_t" = x""yes; then
5903 :
5904else
d0191583
JM
5905
5906cat >>confdefs.h <<_ACEOF
ec6a6fbe 5907#define pid_t int
d0191583
JM
5908_ACEOF
5909
d0191583 5910fi
8ce0cbda 5911
ec6a6fbe
AK
5912{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5913$as_echo_n "checking return type of signal handlers... " >&6; }
5914if test "${ac_cv_type_signal+set}" = set; then
5915 $as_echo_n "(cached) " >&6
ad6254c5 5916else
b145d876
ZK
5917 cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
ec6a6fbe
AK
5923#include <sys/types.h>
5924#include <signal.h>
5925
b145d876
ZK
5926int
5927main ()
5928{
ec6a6fbe 5929return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext
7a197a62
AK
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
ec6a6fbe
AK
5940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941$as_echo "$ac_try_echo") >&5
7a197a62 5942 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5943 ac_status=$?
8a2fc586
AK
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
ec6a6fbe 5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
ec6a6fbe 5952 ac_cv_type_signal=int
b145d876 5953else
ec6a6fbe 5954 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
ec6a6fbe 5957 ac_cv_type_signal=void
ad6254c5 5958fi
b145d876
ZK
5959
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961fi
ec6a6fbe
AK
5962{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5963$as_echo "$ac_cv_type_signal" >&6; }
80992638 5964
ad6254c5 5965cat >>confdefs.h <<_ACEOF
ec6a6fbe 5966#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5967_ACEOF
199e490e 5968
b896caa1 5969
ec6a6fbe
AK
5970{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5971$as_echo_n "checking for size_t... " >&6; }
5972if test "${ac_cv_type_size_t+set}" = set; then
5973 $as_echo_n "(cached) " >&6
ad6254c5 5974else
ec6a6fbe
AK
5975 ac_cv_type_size_t=no
5976cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982$ac_includes_default
5983int
5984main ()
5985{
ec6a6fbe
AK
5986if (sizeof (size_t))
5987 return 0;
ad6254c5
AK
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992rm -f conftest.$ac_objext
7a197a62
AK
5993if { (ac_try="$ac_compile"
5994case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
ec6a6fbe
AK
5998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999$as_echo "$ac_try_echo") >&5
7a197a62 6000 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6001 ac_status=$?
8a2fc586
AK
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
ec6a6fbe 6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
d0191583
JM
6010 cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h. */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h. */
ec6a6fbe 6016$ac_includes_default
d0191583
JM
6017int
6018main ()
6019{
ec6a6fbe
AK
6020if (sizeof ((size_t)))
6021 return 0;
d0191583
JM
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext
6027if { (ac_try="$ac_compile"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
ec6a6fbe
AK
6032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6033$as_echo "$ac_try_echo") >&5
d0191583
JM
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
ec6a6fbe 6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
ec6a6fbe 6044 :
d0191583 6045else
ec6a6fbe 6046 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
ec6a6fbe
AK
6049 ac_cv_type_size_t=yes
6050fi
6051
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053else
6054 $as_echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
d0191583
JM
6058fi
6059
6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061fi
ec6a6fbe
AK
6062{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6063$as_echo "$ac_cv_type_size_t" >&6; }
6064if test "x$ac_cv_type_size_t" = x""yes; then
6065 :
6066else
d0191583
JM
6067
6068cat >>confdefs.h <<_ACEOF
ec6a6fbe 6069#define size_t unsigned int
d0191583
JM
6070_ACEOF
6071
ec6a6fbe 6072fi
d0191583 6073
ec6a6fbe
AK
6074{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6075$as_echo_n "checking for mode_t... " >&6; }
6076if test "${ac_cv_type_mode_t+set}" = set; then
6077 $as_echo_n "(cached) " >&6
8106cdd5 6078else
ec6a6fbe
AK
6079 ac_cv_type_mode_t=no
6080cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
6086$ac_includes_default
6087int
6088main ()
6089{
ec6a6fbe
AK
6090if (sizeof (mode_t))
6091 return 0;
ad6254c5
AK
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext
7a197a62
AK
6097if { (ac_try="$ac_compile"
6098case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
ec6a6fbe
AK
6102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103$as_echo "$ac_try_echo") >&5
7a197a62 6104 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6105 ac_status=$?
8a2fc586
AK
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
ec6a6fbe 6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
b145d876
ZK
6114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120$ac_includes_default
6121int
6122main ()
6123{
ec6a6fbe
AK
6124if (sizeof ((mode_t)))
6125 return 0;
ad6254c5
AK
6126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext
7a197a62
AK
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
ec6a6fbe
AK
6136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137$as_echo "$ac_try_echo") >&5
7a197a62 6138 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6139 ac_status=$?
8a2fc586
AK
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
ec6a6fbe 6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6148 :
6149else
6150 $as_echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 ac_cv_type_mode_t=yes
6154fi
6155
6156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6157else
ec6a6fbe 6158 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
ec6a6fbe 6161
80992638 6162fi
7a197a62
AK
6163
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6165fi
ec6a6fbe
AK
6166{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6167$as_echo "$ac_cv_type_mode_t" >&6; }
6168if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6169 :
6170else
80992638 6171
ad6254c5
AK
6172cat >>confdefs.h <<_ACEOF
6173#define mode_t int
6174_ACEOF
6175
6176fi
6177
ec6a6fbe
AK
6178{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6179$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6180if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6181 $as_echo_n "(cached) " >&6
ad6254c5
AK
6182else
6183 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
6189$ac_includes_default
6190int
6191main ()
6192{
6193static struct stat ac_aggr;
6194if (ac_aggr.st_rdev)
6195return 0;
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200rm -f conftest.$ac_objext
7a197a62
AK
6201if { (ac_try="$ac_compile"
6202case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205esac
ec6a6fbe
AK
6206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6207$as_echo "$ac_try_echo") >&5
7a197a62 6208 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6209 ac_status=$?
8a2fc586
AK
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
ec6a6fbe 6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6218 ac_cv_member_struct_stat_st_rdev=yes
6219else
ec6a6fbe 6220 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
7a197a62 6223 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6224/* confdefs.h. */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h. */
6229$ac_includes_default
6230int
6231main ()
6232{
6233static struct stat ac_aggr;
6234if (sizeof ac_aggr.st_rdev)
6235return 0;
6236 ;
6237 return 0;
6238}
6239_ACEOF
6240rm -f conftest.$ac_objext
7a197a62
AK
6241if { (ac_try="$ac_compile"
6242case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
ec6a6fbe
AK
6246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6247$as_echo "$ac_try_echo") >&5
7a197a62 6248 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6249 ac_status=$?
8a2fc586
AK
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
ec6a6fbe 6253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6258 ac_cv_member_struct_stat_st_rdev=yes
6259else
ec6a6fbe 6260 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
7a197a62 6263 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6264fi
7a197a62
AK
6265
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6267fi
7a197a62
AK
6268
6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6270fi
ec6a6fbe
AK
6271{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6272$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6273if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6274
6275cat >>confdefs.h <<_ACEOF
6276#define HAVE_STRUCT_STAT_ST_RDEV 1
6277_ACEOF
6278
6279
ad6254c5
AK
6280fi
6281
ec6a6fbe
AK
6282{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6283$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6284if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6285 $as_echo_n "(cached) " >&6
ad6254c5
AK
6286else
6287 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6288/* confdefs.h. */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h. */
6293#include <sys/types.h>
6294#include <time.h>
6295
6296int
6297main ()
6298{
25fbec5b
AK
6299struct tm tm;
6300 int *p = &tm.tm_sec;
ec6a6fbe 6301 return !p;
ad6254c5
AK
6302 ;
6303 return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext
7a197a62
AK
6307if { (ac_try="$ac_compile"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
ec6a6fbe
AK
6312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313$as_echo "$ac_try_echo") >&5
7a197a62 6314 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6315 ac_status=$?
8a2fc586
AK
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
ec6a6fbe 6319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6320 (exit $ac_status); } && {
6321 test -z "$ac_c_werror_flag" ||
6322 test ! -s conftest.err
6323 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6324 ac_cv_struct_tm=time.h
6325else
ec6a6fbe 6326 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
7a197a62 6329 ac_cv_struct_tm=sys/time.h
ad6254c5 6330fi
7a197a62
AK
6331
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6333fi
ec6a6fbe
AK
6334{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6335$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6336if test $ac_cv_struct_tm = sys/time.h; then
6337
6338cat >>confdefs.h <<\_ACEOF
6339#define TM_IN_SYS_TIME 1
6340_ACEOF
6341
6342fi
809fae91 6343
795ca3e5 6344
80992638 6345################################################################################
ad6254c5
AK
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
d0191583
JM
6360
6361
6362
6363for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6364 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6365 uname
ad6254c5 6366do
ec6a6fbe
AK
6367as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6368{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6369$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6371 $as_echo_n "(cached) " >&6
795ca3e5 6372else
ad6254c5 6373 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
8a2fc586
AK
6379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6381#define $ac_func innocuous_$ac_func
6382
ad6254c5
AK
6383/* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char $ac_func (); below.
6385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6386 <limits.h> exists even on freestanding compilers. */
8a2fc586 6387
ad6254c5
AK
6388#ifdef __STDC__
6389# include <limits.h>
6390#else
6391# include <assert.h>
6392#endif
8a2fc586
AK
6393
6394#undef $ac_func
6395
7a197a62
AK
6396/* Override any GCC internal prototype to avoid an error.
6397 Use char because int might match the return type of a GCC
6398 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6399#ifdef __cplusplus
6400extern "C"
ad6254c5 6401#endif
ad6254c5
AK
6402char $ac_func ();
6403/* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
7a197a62 6406#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6407choke me
ad6254c5
AK
6408#endif
6409
6410int
6411main ()
6412{
7a197a62 6413return $ac_func ();
ad6254c5
AK
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6419if { (ac_try="$ac_link"
6420case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423esac
ec6a6fbe
AK
6424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425$as_echo "$ac_try_echo") >&5
7a197a62 6426 (eval "$ac_link") 2>conftest.er1
ad6254c5 6427 ac_status=$?
8a2fc586
AK
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
ec6a6fbe 6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
ec6a6fbe
AK
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6438 }; then
fc54be10
AK
6439 eval "$as_ac_var=yes"
6440else
ec6a6fbe 6441 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 eval "$as_ac_var=no"
6445fi
6446
ec6a6fbe 6447rm -rf conftest.dSYM
25fbec5b 6448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6449 conftest$ac_exeext conftest.$ac_ext
6450fi
ec6a6fbe
AK
6451ac_res=`eval 'as_val=${'$as_ac_var'}
6452 $as_echo "$as_val"'`
6453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6454$as_echo "$ac_res" >&6; }
6455as_val=`eval 'as_val=${'$as_ac_var'}
6456 $as_echo "$as_val"'`
6457 if test "x$as_val" = x""yes; then
ad6254c5 6458 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6459#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6460_ACEOF
6461
6462else
ec6a6fbe
AK
6463 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6464$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6465 { (exit 1); exit 1; }; }
6466fi
6467done
795ca3e5 6468
ad6254c5
AK
6469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6470# for constant arguments. Useless!
ec6a6fbe
AK
6471{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6472$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6473if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6474 $as_echo_n "(cached) " >&6
ad6254c5
AK
6475else
6476 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482#include <alloca.h>
6483int
6484main ()
6485{
6486char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6487 if (p) return 0;
ad6254c5
AK
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6493if { (ac_try="$ac_link"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
ec6a6fbe
AK
6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499$as_echo "$ac_try_echo") >&5
7a197a62 6500 (eval "$ac_link") 2>conftest.er1
ad6254c5 6501 ac_status=$?
8a2fc586
AK
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
ec6a6fbe 6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
ec6a6fbe
AK
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6512 }; then
ad6254c5
AK
6513 ac_cv_working_alloca_h=yes
6514else
ec6a6fbe 6515 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6516sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6517
7a197a62 6518 ac_cv_working_alloca_h=no
ad6254c5 6519fi
7a197a62 6520
ec6a6fbe 6521rm -rf conftest.dSYM
25fbec5b 6522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6523 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6524fi
ec6a6fbe
AK
6525{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6526$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6527if test $ac_cv_working_alloca_h = yes; then
6528
6529cat >>confdefs.h <<\_ACEOF
6530#define HAVE_ALLOCA_H 1
6531_ACEOF
6532
6533fi
6534
ec6a6fbe
AK
6535{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6536$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6537if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6538 $as_echo_n "(cached) " >&6
ad6254c5
AK
6539else
6540 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546#ifdef __GNUC__
6547# define alloca __builtin_alloca
6548#else
6549# ifdef _MSC_VER
6550# include <malloc.h>
6551# define alloca _alloca
6552# else
25fbec5b 6553# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6554# include <alloca.h>
6555# else
6556# ifdef _AIX
6557 #pragma alloca
6558# else
6559# ifndef alloca /* predefined by HP cc +Olibcalls */
6560char *alloca ();
6561# endif
6562# endif
6563# endif
6564# endif
6565#endif
6566
6567int
6568main ()
6569{
6570char *p = (char *) alloca (1);
7a197a62 6571 if (p) return 0;
ad6254c5
AK
6572 ;
6573 return 0;
6574}
6575_ACEOF
6576rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6577if { (ac_try="$ac_link"
6578case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581esac
ec6a6fbe
AK
6582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583$as_echo "$ac_try_echo") >&5
7a197a62 6584 (eval "$ac_link") 2>conftest.er1
ad6254c5 6585 ac_status=$?
8a2fc586
AK
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
ec6a6fbe 6589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
ec6a6fbe
AK
6593 } && test -s conftest$ac_exeext && {
6594 test "$cross_compiling" = yes ||
6595 $as_test_x conftest$ac_exeext
6596 }; then
ad6254c5
AK
6597 ac_cv_func_alloca_works=yes
6598else
ec6a6fbe 6599 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
7a197a62 6602 ac_cv_func_alloca_works=no
ad6254c5 6603fi
7a197a62 6604
ec6a6fbe 6605rm -rf conftest.dSYM
25fbec5b 6606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6607 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6608fi
ec6a6fbe
AK
6609{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6610$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6611
6612if test $ac_cv_func_alloca_works = yes; then
6613
6614cat >>confdefs.h <<\_ACEOF
6615#define HAVE_ALLOCA 1
6616_ACEOF
6617
6618else
6619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6620# that cause trouble. Some versions do not even contain alloca or
6621# contain a buggy version. If you still want to use their alloca,
6622# use ar to extract alloca.o from them instead of compiling alloca.c.
6623
7a197a62 6624ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6625
6626cat >>confdefs.h <<\_ACEOF
6627#define C_ALLOCA 1
6628_ACEOF
6629
6630
ec6a6fbe
AK
6631{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6632$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6633if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6634 $as_echo_n "(cached) " >&6
ad6254c5
AK
6635else
6636 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6637/* confdefs.h. */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h. */
7a197a62 6642#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6643webecray
6644#else
6645wenotbecray
6646#endif
6647
6648_ACEOF
795ca3e5 6649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6650 $EGREP "webecray" >/dev/null 2>&1; then
6651 ac_cv_os_cray=yes
6652else
6653 ac_cv_os_cray=no
795ca3e5
AK
6654fi
6655rm -f conftest*
6656
795ca3e5 6657fi
ec6a6fbe
AK
6658{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6659$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6660if test $ac_cv_os_cray = yes; then
6661 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6664$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6666 $as_echo_n "(cached) " >&6
ad6254c5
AK
6667else
6668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6669/* confdefs.h. */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h. */
8a2fc586
AK
6674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6676#define $ac_func innocuous_$ac_func
6677
ad6254c5
AK
6678/* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char $ac_func (); below.
6680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681 <limits.h> exists even on freestanding compilers. */
8a2fc586 6682
ad6254c5
AK
6683#ifdef __STDC__
6684# include <limits.h>
6685#else
6686# include <assert.h>
6687#endif
8a2fc586
AK
6688
6689#undef $ac_func
6690
7a197a62
AK
6691/* Override any GCC internal prototype to avoid an error.
6692 Use char because int might match the return type of a GCC
6693 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6694#ifdef __cplusplus
6695extern "C"
ad6254c5 6696#endif
ad6254c5
AK
6697char $ac_func ();
6698/* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
7a197a62 6701#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6702choke me
ad6254c5
AK
6703#endif
6704
6705int
6706main ()
6707{
7a197a62 6708return $ac_func ();
ad6254c5
AK
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6714if { (ac_try="$ac_link"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
ec6a6fbe
AK
6719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720$as_echo "$ac_try_echo") >&5
7a197a62 6721 (eval "$ac_link") 2>conftest.er1
ad6254c5 6722 ac_status=$?
8a2fc586
AK
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
ec6a6fbe 6726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
ec6a6fbe
AK
6730 } && test -s conftest$ac_exeext && {
6731 test "$cross_compiling" = yes ||
6732 $as_test_x conftest$ac_exeext
6733 }; then
ad6254c5
AK
6734 eval "$as_ac_var=yes"
6735else
ec6a6fbe 6736 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6737sed 's/^/| /' conftest.$ac_ext >&5
6738
7a197a62 6739 eval "$as_ac_var=no"
ad6254c5 6740fi
7a197a62 6741
ec6a6fbe 6742rm -rf conftest.dSYM
25fbec5b 6743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6744 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6745fi
ec6a6fbe
AK
6746ac_res=`eval 'as_val=${'$as_ac_var'}
6747 $as_echo "$as_val"'`
6748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6749$as_echo "$ac_res" >&6; }
6750as_val=`eval 'as_val=${'$as_ac_var'}
6751 $as_echo "$as_val"'`
6752 if test "x$as_val" = x""yes; then
80992638 6753
ad6254c5
AK
6754cat >>confdefs.h <<_ACEOF
6755#define CRAY_STACKSEG_END $ac_func
6756_ACEOF
6757
6758 break
6759fi
6760
6761 done
6762fi
6763
ec6a6fbe
AK
6764{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6765$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6766if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6767 $as_echo_n "(cached) " >&6
ad6254c5
AK
6768else
6769 if test "$cross_compiling" = yes; then
6770 ac_cv_c_stack_direction=0
6771else
6772 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
7a197a62 6778$ac_includes_default
ad6254c5
AK
6779int
6780find_stack_direction ()
6781{
6782 static char *addr = 0;
6783 auto char dummy;
6784 if (addr == 0)
6785 {
6786 addr = &dummy;
6787 return find_stack_direction ();
6788 }
6789 else
6790 return (&dummy > addr) ? 1 : -1;
6791}
6792
6793int
6794main ()
6795{
7a197a62 6796 return find_stack_direction () < 0;
ad6254c5
AK
6797}
6798_ACEOF
6799rm -f conftest$ac_exeext
7a197a62
AK
6800if { (ac_try="$ac_link"
6801case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
ec6a6fbe
AK
6805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806$as_echo "$ac_try_echo") >&5
7a197a62 6807 (eval "$ac_link") 2>&5
ad6254c5 6808 ac_status=$?
ec6a6fbe 6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6811 { (case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814esac
ec6a6fbe
AK
6815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816$as_echo "$ac_try_echo") >&5
7a197a62 6817 (eval "$ac_try") 2>&5
ad6254c5 6818 ac_status=$?
ec6a6fbe 6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6820 (exit $ac_status); }; }; then
6821 ac_cv_c_stack_direction=1
6822else
ec6a6fbe
AK
6823 $as_echo "$as_me: program exited with status $ac_status" >&5
6824$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827( exit $ac_status )
6828ac_cv_c_stack_direction=-1
6829fi
ec6a6fbe 6830rm -rf conftest.dSYM
7a197a62 6831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6832fi
7a197a62
AK
6833
6834
ad6254c5 6835fi
ec6a6fbe
AK
6836{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6837$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6838
6839cat >>confdefs.h <<_ACEOF
6840#define STACK_DIRECTION $ac_cv_c_stack_direction
6841_ACEOF
6842
6843
6844fi
6845
ec6a6fbe
AK
6846{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6847$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6848if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6849 $as_echo_n "(cached) " >&6
ad6254c5
AK
6850else
6851 if test "$cross_compiling" = yes; then
6852 ac_cv_func_closedir_void=yes
6853else
6854 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860$ac_includes_default
6861#include <$ac_header_dirent>
6862#ifndef __cplusplus
6863int closedir ();
6864#endif
6865
6866int
6867main ()
6868{
7a197a62 6869return closedir (opendir (".")) != 0;
ad6254c5
AK
6870 ;
6871 return 0;
6872}
6873_ACEOF
6874rm -f conftest$ac_exeext
7a197a62
AK
6875if { (ac_try="$ac_link"
6876case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
ec6a6fbe
AK
6880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881$as_echo "$ac_try_echo") >&5
7a197a62 6882 (eval "$ac_link") 2>&5
ad6254c5 6883 ac_status=$?
ec6a6fbe 6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6886 { (case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889esac
ec6a6fbe
AK
6890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6891$as_echo "$ac_try_echo") >&5
7a197a62 6892 (eval "$ac_try") 2>&5
ad6254c5 6893 ac_status=$?
ec6a6fbe 6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_closedir_void=no
6897else
ec6a6fbe
AK
6898 $as_echo "$as_me: program exited with status $ac_status" >&5
6899$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902( exit $ac_status )
6903ac_cv_func_closedir_void=yes
6904fi
ec6a6fbe 6905rm -rf conftest.dSYM
7a197a62 6906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6907fi
7a197a62
AK
6908
6909
ad6254c5 6910fi
ec6a6fbe
AK
6911{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6912$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6913if test $ac_cv_func_closedir_void = yes; then
6914
6915cat >>confdefs.h <<\_ACEOF
6916#define CLOSEDIR_VOID 1
6917_ACEOF
6918
6919fi
6920
6921
7a197a62 6922for ac_header in vfork.h
ad6254c5 6923do
ec6a6fbe 6924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6927$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6929 $as_echo_n "(cached) " >&6
ad6254c5 6930fi
ec6a6fbe
AK
6931ac_res=`eval 'as_val=${'$as_ac_Header'}
6932 $as_echo "$as_val"'`
6933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6934$as_echo "$ac_res" >&6; }
ad6254c5
AK
6935else
6936 # Is the header compilable?
ec6a6fbe
AK
6937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6939cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
6945$ac_includes_default
6946#include <$ac_header>
6947_ACEOF
6948rm -f conftest.$ac_objext
7a197a62
AK
6949if { (ac_try="$ac_compile"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
ec6a6fbe
AK
6954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955$as_echo "$ac_try_echo") >&5
7a197a62 6956 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6957 ac_status=$?
8a2fc586
AK
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
ec6a6fbe 6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6966 ac_header_compiler=yes
6967else
ec6a6fbe 6968 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
7a197a62 6971 ac_header_compiler=no
ad6254c5 6972fi
7a197a62
AK
6973
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6977
6978# Is the header present?
ec6a6fbe
AK
6979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6981cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h. */
6987#include <$ac_header>
6988_ACEOF
7a197a62
AK
6989if { (ac_try="$ac_cpp conftest.$ac_ext"
6990case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993esac
ec6a6fbe
AK
6994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995$as_echo "$ac_try_echo") >&5
7a197a62 6996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
ec6a6fbe 7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7002 (exit $ac_status); } >/dev/null && {
7003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 }; then
ad6254c5
AK
7006 ac_header_preproc=yes
7007else
ec6a6fbe 7008 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_header_preproc=no
7012fi
7a197a62 7013
ad6254c5 7014rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7017
7018# So? What about this header?
8a2fc586
AK
7019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020 yes:no: )
ec6a6fbe
AK
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7025 ac_header_preproc=yes
ad6254c5 7026 ;;
8a2fc586 7027 no:yes:* )
ec6a6fbe
AK
7028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7040
ad6254c5
AK
7041 ;;
7042esac
ec6a6fbe
AK
7043{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7044$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7046 $as_echo_n "(cached) " >&6
ad6254c5 7047else
8a2fc586 7048 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7049fi
ec6a6fbe
AK
7050ac_res=`eval 'as_val=${'$as_ac_Header'}
7051 $as_echo "$as_val"'`
7052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7053$as_echo "$ac_res" >&6; }
ad6254c5 7054
795ca3e5 7055fi
ec6a6fbe
AK
7056as_val=`eval 'as_val=${'$as_ac_Header'}
7057 $as_echo "$as_val"'`
7058 if test "x$as_val" = x""yes; then
ad6254c5 7059 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7061_ACEOF
7062
7063fi
7064
7065done
795ca3e5 7066
ad6254c5
AK
7067
7068
7069for ac_func in fork vfork
7070do
ec6a6fbe
AK
7071as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7073$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7075 $as_echo_n "(cached) " >&6
795ca3e5 7076else
ad6254c5 7077 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7078/* confdefs.h. */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h. */
8a2fc586
AK
7083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7085#define $ac_func innocuous_$ac_func
7086
ad6254c5
AK
7087/* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func (); below.
7089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 <limits.h> exists even on freestanding compilers. */
8a2fc586 7091
ad6254c5
AK
7092#ifdef __STDC__
7093# include <limits.h>
7094#else
7095# include <assert.h>
795ca3e5 7096#endif
8a2fc586
AK
7097
7098#undef $ac_func
7099
7a197a62
AK
7100/* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
795ca3e5 7103#ifdef __cplusplus
ad6254c5 7104extern "C"
ad6254c5 7105#endif
ad6254c5
AK
7106char $ac_func ();
7107/* The GNU C library defines this for functions which it implements
7108 to always fail with ENOSYS. Some functions are actually named
7109 something starting with __ and the normal name is an alias. */
7a197a62 7110#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7111choke me
795ca3e5
AK
7112#endif
7113
ad6254c5
AK
7114int
7115main ()
7116{
7a197a62 7117return $ac_func ();
ad6254c5
AK
7118 ;
7119 return 0;
7120}
7121_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7123if { (ac_try="$ac_link"
7124case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127esac
ec6a6fbe
AK
7128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129$as_echo "$ac_try_echo") >&5
7a197a62 7130 (eval "$ac_link") 2>conftest.er1
ad6254c5 7131 ac_status=$?
8a2fc586
AK
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
ec6a6fbe 7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
ec6a6fbe
AK
7139 } && test -s conftest$ac_exeext && {
7140 test "$cross_compiling" = yes ||
7141 $as_test_x conftest$ac_exeext
7142 }; then
ad6254c5 7143 eval "$as_ac_var=yes"
795ca3e5 7144else
ec6a6fbe 7145 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7a197a62 7148 eval "$as_ac_var=no"
795ca3e5 7149fi
7a197a62 7150
ec6a6fbe 7151rm -rf conftest.dSYM
25fbec5b 7152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7153 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7154fi
ec6a6fbe
AK
7155ac_res=`eval 'as_val=${'$as_ac_var'}
7156 $as_echo "$as_val"'`
7157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7158$as_echo "$ac_res" >&6; }
7159as_val=`eval 'as_val=${'$as_ac_var'}
7160 $as_echo "$as_val"'`
7161 if test "x$as_val" = x""yes; then
ad6254c5 7162 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7163#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7164_ACEOF
7165
7166fi
7167done
7168
7169if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7170 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7171$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7172if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7173 $as_echo_n "(cached) " >&6
ad6254c5
AK
7174else
7175 if test "$cross_compiling" = yes; then
7176 ac_cv_func_fork_works=cross
7177else
7178 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
7184$ac_includes_default
7185int
7186main ()
7187{
7188
7189 /* By Ruediger Kuhlmann. */
7190 return fork () < 0;
7191
7192 ;
7193 return 0;
7194}
ad6254c5
AK
7195_ACEOF
7196rm -f conftest$ac_exeext
7a197a62
AK
7197if { (ac_try="$ac_link"
7198case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
ec6a6fbe
AK
7202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203$as_echo "$ac_try_echo") >&5
7a197a62 7204 (eval "$ac_link") 2>&5
ad6254c5 7205 ac_status=$?
ec6a6fbe 7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7208 { (case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211esac
ec6a6fbe
AK
7212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7213$as_echo "$ac_try_echo") >&5
7a197a62 7214 (eval "$ac_try") 2>&5
ad6254c5 7215 ac_status=$?
ec6a6fbe 7216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7217 (exit $ac_status); }; }; then
7218 ac_cv_func_fork_works=yes
7219else
ec6a6fbe
AK
7220 $as_echo "$as_me: program exited with status $ac_status" >&5
7221$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224( exit $ac_status )
7225ac_cv_func_fork_works=no
7226fi
ec6a6fbe 7227rm -rf conftest.dSYM
7a197a62 7228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7229fi
7a197a62
AK
7230
7231
ad6254c5 7232fi
ec6a6fbe
AK
7233{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7234$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7235
7236else
7237 ac_cv_func_fork_works=$ac_cv_func_fork
7238fi
7239if test "x$ac_cv_func_fork_works" = xcross; then
7240 case $host in
7241 *-*-amigaos* | *-*-msdosdjgpp*)
7242 # Override, as these systems have only a dummy fork() stub
7243 ac_cv_func_fork_works=no
7244 ;;
7245 *)
7246 ac_cv_func_fork_works=yes
7247 ;;
7248 esac
ec6a6fbe
AK
7249 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7250$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7251fi
7252ac_cv_func_vfork_works=$ac_cv_func_vfork
7253if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7254 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7255$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7256if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7257 $as_echo_n "(cached) " >&6
ad6254c5
AK
7258else
7259 if test "$cross_compiling" = yes; then
7260 ac_cv_func_vfork_works=cross
7261else
7262 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
7268/* Thanks to Paul Eggert for this test. */
7a197a62 7269$ac_includes_default
ad6254c5 7270#include <sys/wait.h>
25fbec5b 7271#ifdef HAVE_VFORK_H
ad6254c5
AK
7272# include <vfork.h>
7273#endif
7274/* On some sparc systems, changes by the child to local and incoming
7275 argument registers are propagated back to the parent. The compiler
7276 is told about this with #include <vfork.h>, but some compilers
7277 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7278 static variable whose address is put into a register that is
7279 clobbered by the vfork. */
7280static void
7281#ifdef __cplusplus
7282sparc_address_test (int arg)
7283# else
7284sparc_address_test (arg) int arg;
7285#endif
7286{
7287 static pid_t child;
7288 if (!child) {
7289 child = vfork ();
7290 if (child < 0) {
7291 perror ("vfork");
7292 _exit(2);
7293 }
7294 if (!child) {
7295 arg = getpid();
7296 write(-1, "", 0);
7297 _exit (arg);
7298 }
7299 }
7300}
7301
7302int
7303main ()
7304{
7305 pid_t parent = getpid ();
7306 pid_t child;
7307
7308 sparc_address_test (0);
7309
7310 child = vfork ();
7311
7312 if (child == 0) {
7313 /* Here is another test for sparc vfork register problems. This
7314 test uses lots of local variables, at least as many local
7315 variables as main has allocated so far including compiler
7316 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7317 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7318 reuse the register of parent for one of the local variables,
7319 since it will think that parent can't possibly be used any more
7320 in this routine. Assigning to the local variable will thus
7321 munge parent in the parent process. */
7322 pid_t
7323 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7324 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7325 /* Convince the compiler that p..p7 are live; otherwise, it might
7326 use the same hardware register for all 8 local variables. */
7327 if (p != p1 || p != p2 || p != p3 || p != p4
7328 || p != p5 || p != p6 || p != p7)
7329 _exit(1);
7330
7331 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7332 from child file descriptors. If the child closes a descriptor
7333 before it execs or exits, this munges the parent's descriptor
7334 as well. Test for this by closing stdout in the child. */
7335 _exit(close(fileno(stdout)) != 0);
7336 } else {
7337 int status;
7338 struct stat st;
7339
7340 while (wait(&status) != child)
7341 ;
7a197a62 7342 return (
ad6254c5
AK
7343 /* Was there some problem with vforking? */
7344 child < 0
7345
7346 /* Did the child fail? (This shouldn't happen.) */
7347 || status
7348
7349 /* Did the vfork/compiler bug occur? */
7350 || parent != getpid()
7351
7352 /* Did the file descriptor bug occur? */
7353 || fstat(fileno(stdout), &st) != 0
7354 );
7355 }
7356}
7357_ACEOF
7358rm -f conftest$ac_exeext
7a197a62
AK
7359if { (ac_try="$ac_link"
7360case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363esac
ec6a6fbe
AK
7364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7365$as_echo "$ac_try_echo") >&5
7a197a62 7366 (eval "$ac_link") 2>&5
ad6254c5 7367 ac_status=$?
ec6a6fbe 7368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7370 { (case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373esac
ec6a6fbe
AK
7374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375$as_echo "$ac_try_echo") >&5
7a197a62 7376 (eval "$ac_try") 2>&5
ad6254c5 7377 ac_status=$?
ec6a6fbe 7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7379 (exit $ac_status); }; }; then
7380 ac_cv_func_vfork_works=yes
7381else
ec6a6fbe
AK
7382 $as_echo "$as_me: program exited with status $ac_status" >&5
7383$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7384sed 's/^/| /' conftest.$ac_ext >&5
7385
7386( exit $ac_status )
7387ac_cv_func_vfork_works=no
7388fi
ec6a6fbe 7389rm -rf conftest.dSYM
7a197a62 7390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7391fi
7a197a62
AK
7392
7393
ad6254c5 7394fi
ec6a6fbe
AK
7395{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7396$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7397
7398fi;
7399if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7400 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7401 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7402$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7403fi
7404
7405if test "x$ac_cv_func_vfork_works" = xyes; then
7406
7407cat >>confdefs.h <<\_ACEOF
7408#define HAVE_WORKING_VFORK 1
7409_ACEOF
7410
7411else
7412
7413cat >>confdefs.h <<\_ACEOF
7414#define vfork fork
7415_ACEOF
7416
7417fi
7418if test "x$ac_cv_func_fork_works" = xyes; then
7419
7420cat >>confdefs.h <<\_ACEOF
7421#define HAVE_WORKING_FORK 1
7422_ACEOF
7423
7424fi
7425
ec6a6fbe
AK
7426{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7427$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7428if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7429 $as_echo_n "(cached) " >&6
ad6254c5
AK
7430else
7431 rm -f conftest.sym conftest.file
7432echo >conftest.file
7433if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7434 if test "$cross_compiling" = yes; then
7435 ac_cv_func_lstat_dereferences_slashed_symlink=no
7436else
7437 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443$ac_includes_default
7444int
7445main ()
7446{
7447struct stat sbuf;
7448 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7449 That is better in the sense that it means we will not
7450 have to compile and use the lstat wrapper. */
7a197a62 7451 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest$ac_exeext
7a197a62
AK
7457if { (ac_try="$ac_link"
7458case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461esac
ec6a6fbe
AK
7462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463$as_echo "$ac_try_echo") >&5
7a197a62 7464 (eval "$ac_link") 2>&5
ad6254c5 7465 ac_status=$?
ec6a6fbe 7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7468 { (case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471esac
ec6a6fbe
AK
7472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473$as_echo "$ac_try_echo") >&5
7a197a62 7474 (eval "$ac_try") 2>&5
ad6254c5 7475 ac_status=$?
ec6a6fbe 7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7477 (exit $ac_status); }; }; then
7478 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7479else
ec6a6fbe
AK
7480 $as_echo "$as_me: program exited with status $ac_status" >&5
7481$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
7484( exit $ac_status )
7485ac_cv_func_lstat_dereferences_slashed_symlink=no
7486fi
ec6a6fbe 7487rm -rf conftest.dSYM
7a197a62 7488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7489fi
7a197a62
AK
7490
7491
ad6254c5
AK
7492else
7493 # If the `ln -s' command failed, then we probably don't even
7494 # have an lstat function.
7495 ac_cv_func_lstat_dereferences_slashed_symlink=no
7496fi
7497rm -f conftest.sym conftest.file
7498
7499fi
ec6a6fbe
AK
7500{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7501$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7502
7503test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7504
7505cat >>confdefs.h <<_ACEOF
7506#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7507_ACEOF
7508
7509
7510if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7511 case " $LIBOBJS " in
8a2fc586 7512 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7513 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7514 ;;
8a2fc586
AK
7515esac
7516
ad6254c5
AK
7517fi
7518
ec6a6fbe
AK
7519{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7520$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7521if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7522 $as_echo_n "(cached) " >&6
ad6254c5
AK
7523else
7524 if test "$cross_compiling" = yes; then
7525 ac_cv_func_lstat_empty_string_bug=yes
7526else
7527 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
7533$ac_includes_default
7534int
7535main ()
7536{
7537struct stat sbuf;
7a197a62 7538 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7539 ;
7540 return 0;
7541}
7542_ACEOF
7543rm -f conftest$ac_exeext
7a197a62
AK
7544if { (ac_try="$ac_link"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
ec6a6fbe
AK
7549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550$as_echo "$ac_try_echo") >&5
7a197a62 7551 (eval "$ac_link") 2>&5
ad6254c5 7552 ac_status=$?
ec6a6fbe 7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7555 { (case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558esac
ec6a6fbe
AK
7559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560$as_echo "$ac_try_echo") >&5
7a197a62 7561 (eval "$ac_try") 2>&5
ad6254c5 7562 ac_status=$?
ec6a6fbe 7563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7564 (exit $ac_status); }; }; then
7a197a62 7565 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7566else
ec6a6fbe
AK
7567 $as_echo "$as_me: program exited with status $ac_status" >&5
7568$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
7571( exit $ac_status )
7a197a62 7572ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7573fi
ec6a6fbe 7574rm -rf conftest.dSYM
7a197a62 7575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7576fi
7a197a62
AK
7577
7578
ad6254c5 7579fi
ec6a6fbe
AK
7580{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7581$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7582if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7583 case " $LIBOBJS " in
8a2fc586 7584 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7585 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7586 ;;
8a2fc586
AK
7587esac
7588
ad6254c5
AK
7589
7590cat >>confdefs.h <<_ACEOF
7591#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7592_ACEOF
7593
7594fi
7595
7596
7597for ac_header in stdlib.h
7598do
ec6a6fbe 7599as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7602$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7604 $as_echo_n "(cached) " >&6
ad6254c5 7605fi
ec6a6fbe
AK
7606ac_res=`eval 'as_val=${'$as_ac_Header'}
7607 $as_echo "$as_val"'`
7608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7609$as_echo "$ac_res" >&6; }
ad6254c5
AK
7610else
7611 # Is the header compilable?
ec6a6fbe
AK
7612{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7613$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7614cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7615/* confdefs.h. */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h. */
7620$ac_includes_default
7621#include <$ac_header>
7622_ACEOF
7623rm -f conftest.$ac_objext
7a197a62
AK
7624if { (ac_try="$ac_compile"
7625case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628esac
ec6a6fbe
AK
7629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630$as_echo "$ac_try_echo") >&5
7a197a62 7631 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7632 ac_status=$?
8a2fc586
AK
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
ec6a6fbe 7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7637 (exit $ac_status); } && {
7638 test -z "$ac_c_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7641 ac_header_compiler=yes
7642else
ec6a6fbe 7643 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7644sed 's/^/| /' conftest.$ac_ext >&5
7645
7a197a62 7646 ac_header_compiler=no
ad6254c5 7647fi
7a197a62
AK
7648
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7650{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7651$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7652
7653# Is the header present?
ec6a6fbe
AK
7654{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7655$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7656cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7657/* confdefs.h. */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h. */
7662#include <$ac_header>
7663_ACEOF
7a197a62
AK
7664if { (ac_try="$ac_cpp conftest.$ac_ext"
7665case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668esac
ec6a6fbe
AK
7669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7670$as_echo "$ac_try_echo") >&5
7a197a62 7671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
ec6a6fbe 7676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7677 (exit $ac_status); } >/dev/null && {
7678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 }; then
ad6254c5
AK
7681 ac_header_preproc=yes
7682else
ec6a6fbe 7683 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_header_preproc=no
7687fi
7a197a62 7688
ad6254c5 7689rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7690{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7692
7693# So? What about this header?
8a2fc586
AK
7694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7695 yes:no: )
ec6a6fbe
AK
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7699$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7700 ac_header_preproc=yes
ad6254c5 7701 ;;
8a2fc586 7702 no:yes:* )
ec6a6fbe
AK
7703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7708$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7710$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7714$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7715
ad6254c5
AK
7716 ;;
7717esac
ec6a6fbe
AK
7718{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7719$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7721 $as_echo_n "(cached) " >&6
ad6254c5 7722else
8a2fc586 7723 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7724fi
ec6a6fbe
AK
7725ac_res=`eval 'as_val=${'$as_ac_Header'}
7726 $as_echo "$as_val"'`
7727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7728$as_echo "$ac_res" >&6; }
ad6254c5
AK
7729
7730fi
ec6a6fbe
AK
7731as_val=`eval 'as_val=${'$as_ac_Header'}
7732 $as_echo "$as_val"'`
7733 if test "x$as_val" = x""yes; then
ad6254c5 7734 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7736_ACEOF
7737
7738fi
7739
7740done
7741
ec6a6fbe
AK
7742{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7743$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7744if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7745 $as_echo_n "(cached) " >&6
ad6254c5
AK
7746else
7747 if test "$cross_compiling" = yes; then
7748 ac_cv_func_malloc_0_nonnull=no
7749else
7750 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
25fbec5b 7756#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7757# include <stdlib.h>
7758#else
7759char *malloc ();
7760#endif
7761
7762int
7763main ()
7764{
7a197a62 7765return ! malloc (0);
ad6254c5
AK
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest$ac_exeext
7a197a62
AK
7771if { (ac_try="$ac_link"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
ec6a6fbe
AK
7776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777$as_echo "$ac_try_echo") >&5
7a197a62 7778 (eval "$ac_link") 2>&5
ad6254c5 7779 ac_status=$?
ec6a6fbe 7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
ec6a6fbe
AK
7786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787$as_echo "$ac_try_echo") >&5
7a197a62 7788 (eval "$ac_try") 2>&5
ad6254c5 7789 ac_status=$?
ec6a6fbe 7790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7791 (exit $ac_status); }; }; then
7792 ac_cv_func_malloc_0_nonnull=yes
7793else
ec6a6fbe
AK
7794 $as_echo "$as_me: program exited with status $ac_status" >&5
7795$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
7798( exit $ac_status )
7799ac_cv_func_malloc_0_nonnull=no
7800fi
ec6a6fbe 7801rm -rf conftest.dSYM
7a197a62 7802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7803fi
7a197a62
AK
7804
7805
ad6254c5 7806fi
ec6a6fbe
AK
7807{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7808$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7809if test $ac_cv_func_malloc_0_nonnull = yes; then
7810
7811cat >>confdefs.h <<\_ACEOF
7812#define HAVE_MALLOC 1
7813_ACEOF
7814
7815else
7816 cat >>confdefs.h <<\_ACEOF
7817#define HAVE_MALLOC 0
7818_ACEOF
7819
7a197a62 7820 case " $LIBOBJS " in
8a2fc586 7821 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7822 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7823 ;;
8a2fc586
AK
7824esac
7825
ad6254c5
AK
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define malloc rpl_malloc
7829_ACEOF
7830
7831fi
7832
7833
7834
ec6a6fbe
AK
7835{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7836$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7837if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7838 $as_echo_n "(cached) " >&6
ad6254c5
AK
7839else
7840 if test "$cross_compiling" = yes; then
7841 ac_cv_func_memcmp_working=no
7842else
7843 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7844/* confdefs.h. */
7845_ACEOF
7846cat confdefs.h >>conftest.$ac_ext
7847cat >>conftest.$ac_ext <<_ACEOF
7848/* end confdefs.h. */
8a2fc586 7849$ac_includes_default
ad6254c5
AK
7850int
7851main ()
7852{
7853
7854 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7855 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7856 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7857 return 1;
ad6254c5
AK
7858
7859 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7860 or more and with at least one buffer not starting on a 4-byte boundary.
7861 William Lewis provided this test program. */
7862 {
7863 char foo[21];
7864 char bar[21];
7865 int i;
7866 for (i = 0; i < 4; i++)
7867 {
8a2fc586
AK
7868 char *a = foo + i;
7869 char *b = bar + i;
7870 strcpy (a, "--------01111111");
7871 strcpy (b, "--------10000000");
7872 if (memcmp (a, b, 16) >= 0)
7a197a62 7873 return 1;
ad6254c5 7874 }
7a197a62 7875 return 0;
ad6254c5
AK
7876 }
7877
7878 ;
7879 return 0;
7880}
7881_ACEOF
7882rm -f conftest$ac_exeext
7a197a62
AK
7883if { (ac_try="$ac_link"
7884case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887esac
ec6a6fbe
AK
7888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889$as_echo "$ac_try_echo") >&5
7a197a62 7890 (eval "$ac_link") 2>&5
ad6254c5 7891 ac_status=$?
ec6a6fbe 7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897esac
ec6a6fbe
AK
7898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899$as_echo "$ac_try_echo") >&5
7a197a62 7900 (eval "$ac_try") 2>&5
ad6254c5 7901 ac_status=$?
ec6a6fbe 7902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7903 (exit $ac_status); }; }; then
7904 ac_cv_func_memcmp_working=yes
7905else
ec6a6fbe
AK
7906 $as_echo "$as_me: program exited with status $ac_status" >&5
7907$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910( exit $ac_status )
7911ac_cv_func_memcmp_working=no
7912fi
ec6a6fbe 7913rm -rf conftest.dSYM
7a197a62 7914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7915fi
7a197a62
AK
7916
7917
ad6254c5 7918fi
ec6a6fbe
AK
7919{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7920$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7921test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7922 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7923 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7924 ;;
8a2fc586
AK
7925esac
7926
ad6254c5
AK
7927
7928
7929
7930for ac_header in stdlib.h unistd.h
7931do
ec6a6fbe 7932as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7935$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7937 $as_echo_n "(cached) " >&6
ad6254c5 7938fi
ec6a6fbe
AK
7939ac_res=`eval 'as_val=${'$as_ac_Header'}
7940 $as_echo "$as_val"'`
7941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7942$as_echo "$ac_res" >&6; }
ad6254c5
AK
7943else
7944 # Is the header compilable?
ec6a6fbe
AK
7945{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7946$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7947cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953$ac_includes_default
7954#include <$ac_header>
7955_ACEOF
7956rm -f conftest.$ac_objext
7a197a62
AK
7957if { (ac_try="$ac_compile"
7958case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961esac
ec6a6fbe
AK
7962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7963$as_echo "$ac_try_echo") >&5
7a197a62 7964 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7965 ac_status=$?
8a2fc586
AK
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
ec6a6fbe 7969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7974 ac_header_compiler=yes
7975else
ec6a6fbe 7976 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7977sed 's/^/| /' conftest.$ac_ext >&5
7978
7a197a62 7979 ac_header_compiler=no
ad6254c5 7980fi
7a197a62
AK
7981
7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7983{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7984$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7985
7986# Is the header present?
ec6a6fbe
AK
7987{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7988$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7989cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7990/* confdefs.h. */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h. */
7995#include <$ac_header>
7996_ACEOF
7a197a62
AK
7997if { (ac_try="$ac_cpp conftest.$ac_ext"
7998case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
ec6a6fbe
AK
8002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003$as_echo "$ac_try_echo") >&5
7a197a62 8004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
ec6a6fbe 8009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8010 (exit $ac_status); } >/dev/null && {
8011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 }; then
ad6254c5
AK
8014 ac_header_preproc=yes
8015else
ec6a6fbe 8016 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8017sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 ac_header_preproc=no
8020fi
7a197a62 8021
ad6254c5 8022rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8023{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8024$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8025
8026# So? What about this header?
8a2fc586
AK
8027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8028 yes:no: )
ec6a6fbe
AK
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8030$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8032$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8033 ac_header_preproc=yes
ad6254c5 8034 ;;
8a2fc586 8035 no:yes:* )
ec6a6fbe
AK
8036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8037$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8039$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8041$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8043$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8045$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8047$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8048
ad6254c5
AK
8049 ;;
8050esac
ec6a6fbe
AK
8051{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8052$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8054 $as_echo_n "(cached) " >&6
ad6254c5 8055else
8a2fc586 8056 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8057fi
ec6a6fbe
AK
8058ac_res=`eval 'as_val=${'$as_ac_Header'}
8059 $as_echo "$as_val"'`
8060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8061$as_echo "$ac_res" >&6; }
ad6254c5
AK
8062
8063fi
ec6a6fbe
AK
8064as_val=`eval 'as_val=${'$as_ac_Header'}
8065 $as_echo "$as_val"'`
8066 if test "x$as_val" = x""yes; then
ad6254c5 8067 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8069_ACEOF
8070
8071fi
8072
8073done
8074
8075
8076for ac_func in getpagesize
8077do
ec6a6fbe
AK
8078as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8079{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8080$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8082 $as_echo_n "(cached) " >&6
ad6254c5
AK
8083else
8084 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8a2fc586
AK
8090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8092#define $ac_func innocuous_$ac_func
8093
ad6254c5
AK
8094/* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func (); below.
8096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097 <limits.h> exists even on freestanding compilers. */
8a2fc586 8098
ad6254c5
AK
8099#ifdef __STDC__
8100# include <limits.h>
8101#else
8102# include <assert.h>
8103#endif
8a2fc586
AK
8104
8105#undef $ac_func
8106
7a197a62
AK
8107/* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8110#ifdef __cplusplus
8111extern "C"
ad6254c5 8112#endif
ad6254c5
AK
8113char $ac_func ();
8114/* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
7a197a62 8117#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8118choke me
ad6254c5
AK
8119#endif
8120
8121int
8122main ()
8123{
7a197a62 8124return $ac_func ();
ad6254c5
AK
8125 ;
8126 return 0;
8127}
8128_ACEOF
8129rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8130if { (ac_try="$ac_link"
8131case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
ec6a6fbe
AK
8135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136$as_echo "$ac_try_echo") >&5
7a197a62 8137 (eval "$ac_link") 2>conftest.er1
ad6254c5 8138 ac_status=$?
8a2fc586
AK
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
ec6a6fbe 8142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
ec6a6fbe
AK
8146 } && test -s conftest$ac_exeext && {
8147 test "$cross_compiling" = yes ||
8148 $as_test_x conftest$ac_exeext
8149 }; then
ad6254c5
AK
8150 eval "$as_ac_var=yes"
8151else
ec6a6fbe 8152 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
7a197a62 8155 eval "$as_ac_var=no"
ad6254c5 8156fi
7a197a62 8157
ec6a6fbe 8158rm -rf conftest.dSYM
25fbec5b 8159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8160 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8161fi
ec6a6fbe
AK
8162ac_res=`eval 'as_val=${'$as_ac_var'}
8163 $as_echo "$as_val"'`
8164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8165$as_echo "$ac_res" >&6; }
8166as_val=`eval 'as_val=${'$as_ac_var'}
8167 $as_echo "$as_val"'`
8168 if test "x$as_val" = x""yes; then
ad6254c5 8169 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8170#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8171_ACEOF
8172
8173fi
8174done
8175
ec6a6fbe
AK
8176{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8177$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8178if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8179 $as_echo_n "(cached) " >&6
ad6254c5
AK
8180else
8181 if test "$cross_compiling" = yes; then
8182 ac_cv_func_mmap_fixed_mapped=no
8183else
8184 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190$ac_includes_default
8191/* malloc might have been renamed as rpl_malloc. */
8192#undef malloc
8193
8194/* Thanks to Mike Haertel and Jim Avera for this test.
8195 Here is a matrix of mmap possibilities:
8196 mmap private not fixed
8197 mmap private fixed at somewhere currently unmapped
8198 mmap private fixed at somewhere already mapped
8199 mmap shared not fixed
8200 mmap shared fixed at somewhere currently unmapped
8201 mmap shared fixed at somewhere already mapped
8202 For private mappings, we should verify that changes cannot be read()
8203 back from the file, nor mmap's back from the file at a different
8204 address. (There have been systems where private was not correctly
8205 implemented like the infamous i386 svr4.0, and systems where the
8206 VM page cache was not coherent with the file system buffer cache
8207 like early versions of FreeBSD and possibly contemporary NetBSD.)
8208 For shared mappings, we should conversely verify that changes get
8209 propagated back to all the places they're supposed to be.
8210
8211 Grep wants private fixed already mapped.
8212 The main things grep needs to know about mmap are:
8213 * does it exist and is it safe to write into the mmap'd area
8214 * how to use it (BSD variants) */
8215
8216#include <fcntl.h>
8217#include <sys/mman.h>
8218
25fbec5b 8219#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8220char *malloc ();
8221#endif
8222
8223/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8224#ifndef HAVE_GETPAGESIZE
ad6254c5 8225/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8226# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8227# define HAVE_SYS_PARAM_H 1
8228# endif
8229
8230# ifdef _SC_PAGESIZE
8231# define getpagesize() sysconf(_SC_PAGESIZE)
8232# else /* no _SC_PAGESIZE */
25fbec5b 8233# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8234# include <sys/param.h>
8235# ifdef EXEC_PAGESIZE
8236# define getpagesize() EXEC_PAGESIZE
8237# else /* no EXEC_PAGESIZE */
8238# ifdef NBPG
8239# define getpagesize() NBPG * CLSIZE
8240# ifndef CLSIZE
8241# define CLSIZE 1
8242# endif /* no CLSIZE */
8243# else /* no NBPG */
8244# ifdef NBPC
8245# define getpagesize() NBPC
8246# else /* no NBPC */
8247# ifdef PAGESIZE
8248# define getpagesize() PAGESIZE
8249# endif /* PAGESIZE */
8250# endif /* no NBPC */
8251# endif /* no NBPG */
8252# endif /* no EXEC_PAGESIZE */
8253# else /* no HAVE_SYS_PARAM_H */
8254# define getpagesize() 8192 /* punt totally */
8255# endif /* no HAVE_SYS_PARAM_H */
8256# endif /* no _SC_PAGESIZE */
8257
8258#endif /* no HAVE_GETPAGESIZE */
8259
8260int
8261main ()
8262{
8263 char *data, *data2, *data3;
8264 int i, pagesize;
8265 int fd;
8266
8267 pagesize = getpagesize ();
8268
8269 /* First, make a file with some known garbage in it. */
8270 data = (char *) malloc (pagesize);
8271 if (!data)
7a197a62 8272 return 1;
ad6254c5
AK
8273 for (i = 0; i < pagesize; ++i)
8274 *(data + i) = rand ();
8275 umask (0);
8276 fd = creat ("conftest.mmap", 0600);
8277 if (fd < 0)
7a197a62 8278 return 1;
ad6254c5 8279 if (write (fd, data, pagesize) != pagesize)
7a197a62 8280 return 1;
ad6254c5
AK
8281 close (fd);
8282
8283 /* Next, try to mmap the file at a fixed address which already has
8284 something else allocated at it. If we can, also make sure that
8285 we see the same garbage. */
8286 fd = open ("conftest.mmap", O_RDWR);
8287 if (fd < 0)
7a197a62 8288 return 1;
ad6254c5
AK
8289 data2 = (char *) malloc (2 * pagesize);
8290 if (!data2)
7a197a62
AK
8291 return 1;
8292 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8293 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8294 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8295 return 1;
ad6254c5
AK
8296 for (i = 0; i < pagesize; ++i)
8297 if (*(data + i) != *(data2 + i))
7a197a62 8298 return 1;
ad6254c5
AK
8299
8300 /* Finally, make sure that changes to the mapped area do not
8301 percolate back to the file as seen by read(). (This is a bug on
8302 some variants of i386 svr4.0.) */
8303 for (i = 0; i < pagesize; ++i)
8304 *(data2 + i) = *(data2 + i) + 1;
8305 data3 = (char *) malloc (pagesize);
8306 if (!data3)
7a197a62 8307 return 1;
ad6254c5 8308 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8309 return 1;
ad6254c5
AK
8310 for (i = 0; i < pagesize; ++i)
8311 if (*(data + i) != *(data3 + i))
7a197a62 8312 return 1;
ad6254c5 8313 close (fd);
7a197a62 8314 return 0;
ad6254c5
AK
8315}
8316_ACEOF
8317rm -f conftest$ac_exeext
7a197a62
AK
8318if { (ac_try="$ac_link"
8319case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
ec6a6fbe
AK
8323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8324$as_echo "$ac_try_echo") >&5
7a197a62 8325 (eval "$ac_link") 2>&5
ad6254c5 8326 ac_status=$?
ec6a6fbe 8327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332esac
ec6a6fbe
AK
8333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8334$as_echo "$ac_try_echo") >&5
7a197a62 8335 (eval "$ac_try") 2>&5
ad6254c5 8336 ac_status=$?
ec6a6fbe 8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_mmap_fixed_mapped=yes
8340else
ec6a6fbe
AK
8341 $as_echo "$as_me: program exited with status $ac_status" >&5
8342$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345( exit $ac_status )
8346ac_cv_func_mmap_fixed_mapped=no
8347fi
ec6a6fbe 8348rm -rf conftest.dSYM
7a197a62 8349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8350fi
7a197a62
AK
8351
8352
ad6254c5 8353fi
ec6a6fbe
AK
8354{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8355$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8356if test $ac_cv_func_mmap_fixed_mapped = yes; then
8357
8358cat >>confdefs.h <<\_ACEOF
8359#define HAVE_MMAP 1
8360_ACEOF
8361
8362fi
8363rm -f conftest.mmap
8364
ec6a6fbe
AK
8365{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8366$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8367if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8368 $as_echo_n "(cached) " >&6
ad6254c5
AK
8369else
8370 if test "$cross_compiling" = yes; then
8371 ac_cv_func_stat_empty_string_bug=yes
8372else
8373 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
8379$ac_includes_default
8380int
8381main ()
8382{
8383struct stat sbuf;
7a197a62 8384 return stat ("", &sbuf) == 0;
ad6254c5
AK
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389rm -f conftest$ac_exeext
7a197a62
AK
8390if { (ac_try="$ac_link"
8391case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
ec6a6fbe
AK
8395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396$as_echo "$ac_try_echo") >&5
7a197a62 8397 (eval "$ac_link") 2>&5
ad6254c5 8398 ac_status=$?
ec6a6fbe 8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
ec6a6fbe
AK
8405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406$as_echo "$ac_try_echo") >&5
7a197a62 8407 (eval "$ac_try") 2>&5
ad6254c5 8408 ac_status=$?
ec6a6fbe 8409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8410 (exit $ac_status); }; }; then
7a197a62 8411 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8412else
ec6a6fbe
AK
8413 $as_echo "$as_me: program exited with status $ac_status" >&5
8414$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417( exit $ac_status )
7a197a62 8418ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8419fi
ec6a6fbe 8420rm -rf conftest.dSYM
7a197a62 8421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8422fi
7a197a62
AK
8423
8424
ad6254c5 8425fi
ec6a6fbe
AK
8426{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8427$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8428if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8429 case " $LIBOBJS " in
8a2fc586 8430 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8431 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8432 ;;
8a2fc586
AK
8433esac
8434
ad6254c5
AK
8435
8436cat >>confdefs.h <<_ACEOF
8437#define HAVE_STAT_EMPTY_STRING_BUG 1
8438_ACEOF
8439
8440fi
8441
ec6a6fbe
AK
8442{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8443$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8444if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8445 $as_echo_n "(cached) " >&6
ad6254c5
AK
8446else
8447 if test "$cross_compiling" = yes; then
8448 ac_cv_func_strtod=no
8449else
8450 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h. */
8456
7a197a62
AK
8457$ac_includes_default
8458#ifndef strtod
ad6254c5 8459double strtod ();
7a197a62 8460#endif
ad6254c5
AK
8461int
8462main()
8463{
8464 {
8465 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8466 char *string = " +69";
8467 char *term;
8468 double value;
8469 value = strtod (string, &term);
8470 if (value != 69 || term != (string + 4))
7a197a62 8471 return 1;
ad6254c5
AK
8472 }
8473
8474 {
8475 /* Under Solaris 2.4, strtod returns the wrong value for the
8476 terminating character under some conditions. */
8477 char *string = "NaN";
8478 char *term;
8479 strtod (string, &term);
8480 if (term != string && *(term - 1) == 0)
7a197a62 8481 return 1;
ad6254c5 8482 }
7a197a62 8483 return 0;
ad6254c5
AK
8484}
8485
8486_ACEOF
8487rm -f conftest$ac_exeext
7a197a62
AK
8488if { (ac_try="$ac_link"
8489case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
ec6a6fbe
AK
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
7a197a62 8495 (eval "$ac_link") 2>&5
ad6254c5 8496 ac_status=$?
ec6a6fbe 8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502esac
ec6a6fbe
AK
8503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504$as_echo "$ac_try_echo") >&5
7a197a62 8505 (eval "$ac_try") 2>&5
ad6254c5 8506 ac_status=$?
ec6a6fbe 8507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_strtod=yes
8510else
ec6a6fbe
AK
8511 $as_echo "$as_me: program exited with status $ac_status" >&5
8512$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515( exit $ac_status )
8516ac_cv_func_strtod=no
8517fi
ec6a6fbe 8518rm -rf conftest.dSYM
7a197a62 8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8520fi
7a197a62
AK
8521
8522
ad6254c5 8523fi
ec6a6fbe
AK
8524{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8525$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8526if test $ac_cv_func_strtod = no; then
7a197a62 8527 case " $LIBOBJS " in
8a2fc586 8528 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8529 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8530 ;;
8a2fc586
AK
8531esac
8532
ec6a6fbe
AK
8533{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8534$as_echo_n "checking for pow... " >&6; }
ad6254c5 8535if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8536 $as_echo_n "(cached) " >&6
ad6254c5
AK
8537else
8538 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8a2fc586
AK
8544/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8546#define pow innocuous_pow
8547
ad6254c5
AK
8548/* System header to define __stub macros and hopefully few prototypes,
8549 which can conflict with char pow (); below.
8550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8551 <limits.h> exists even on freestanding compilers. */
8a2fc586 8552
ad6254c5
AK
8553#ifdef __STDC__
8554# include <limits.h>
8555#else
8556# include <assert.h>
8557#endif
8a2fc586
AK
8558
8559#undef pow
8560
7a197a62
AK
8561/* Override any GCC internal prototype to avoid an error.
8562 Use char because int might match the return type of a GCC
8563 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8564#ifdef __cplusplus
8565extern "C"
ad6254c5 8566#endif
ad6254c5
AK
8567char pow ();
8568/* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
7a197a62 8571#if defined __stub_pow || defined __stub___pow
ad6254c5 8572choke me
ad6254c5
AK
8573#endif
8574
8575int
8576main ()
8577{
7a197a62 8578return pow ();
ad6254c5
AK
8579 ;
8580 return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8584if { (ac_try="$ac_link"
8585case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588esac
ec6a6fbe
AK
8589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590$as_echo "$ac_try_echo") >&5
7a197a62 8591 (eval "$ac_link") 2>conftest.er1
ad6254c5 8592 ac_status=$?
8a2fc586
AK
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
ec6a6fbe 8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
ec6a6fbe
AK
8600 } && test -s conftest$ac_exeext && {
8601 test "$cross_compiling" = yes ||
8602 $as_test_x conftest$ac_exeext
8603 }; then
ad6254c5
AK
8604 ac_cv_func_pow=yes
8605else
ec6a6fbe 8606 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
7a197a62 8609 ac_cv_func_pow=no
ad6254c5 8610fi
7a197a62 8611
ec6a6fbe 8612rm -rf conftest.dSYM
25fbec5b 8613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8614 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8615fi
ec6a6fbe
AK
8616{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8617$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8618
8619if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8620 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8621$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8622if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8623 $as_echo_n "(cached) " >&6
ad6254c5
AK
8624else
8625 ac_check_lib_save_LIBS=$LIBS
8626LIBS="-lm $LIBS"
8627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8628/* confdefs.h. */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h. */
8633
7a197a62
AK
8634/* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8637#ifdef __cplusplus
8638extern "C"
8639#endif
ad6254c5
AK
8640char pow ();
8641int
8642main ()
8643{
7a197a62 8644return pow ();
ad6254c5
AK
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8650if { (ac_try="$ac_link"
8651case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654esac
ec6a6fbe
AK
8655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656$as_echo "$ac_try_echo") >&5
7a197a62 8657 (eval "$ac_link") 2>conftest.er1
ad6254c5 8658 ac_status=$?
8a2fc586
AK
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
ec6a6fbe 8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
ec6a6fbe
AK
8666 } && test -s conftest$ac_exeext && {
8667 test "$cross_compiling" = yes ||
8668 $as_test_x conftest$ac_exeext
8669 }; then
ad6254c5
AK
8670 ac_cv_lib_m_pow=yes
8671else
ec6a6fbe 8672 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
7a197a62 8675 ac_cv_lib_m_pow=no
ad6254c5 8676fi
7a197a62 8677
ec6a6fbe 8678rm -rf conftest.dSYM
25fbec5b 8679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8680 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8681LIBS=$ac_check_lib_save_LIBS
d0191583 8682fi
ec6a6fbe
AK
8683{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8684$as_echo "$ac_cv_lib_m_pow" >&6; }
8685if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8686 POW_LIB=-lm
8687else
ec6a6fbe
AK
8688 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8689$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8690fi
72b2cb61 8691
d0191583 8692fi
72b2cb61 8693
ad6254c5
AK
8694fi
8695
ad6254c5 8696
d0191583
JM
8697for ac_func in vprintf
8698do
ec6a6fbe
AK
8699as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8701$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8702if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8703 $as_echo_n "(cached) " >&6
ad6254c5 8704else
d0191583
JM
8705 cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713#define $ac_func innocuous_$ac_func
7a197a62 8714
d0191583
JM
8715/* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
ad6254c5 8719
d0191583
JM
8720#ifdef __STDC__
8721# include <limits.h>
8722#else
8723# include <assert.h>
8724#endif
ad6254c5 8725
d0191583 8726#undef $ac_func
72b2cb61 8727
d0191583
JM
8728/* Override any GCC internal prototype to avoid an error.
8729 Use char because int might match the return type of a GCC
8730 builtin and then its argument prototype would still apply. */
8731#ifdef __cplusplus
8732extern "C"
8733#endif
8734char $ac_func ();
8735/* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738#if defined __stub_$ac_func || defined __stub___$ac_func
8739choke me
8740#endif
8741
8742int
8743main ()
8744{
8745return $ac_func ();
8746 ;
8747 return 0;
8748}
72b2cb61 8749_ACEOF
d0191583
JM
8750rm -f conftest.$ac_objext conftest$ac_exeext
8751if { (ac_try="$ac_link"
8752case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755esac
ec6a6fbe
AK
8756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757$as_echo "$ac_try_echo") >&5
d0191583
JM
8758 (eval "$ac_link") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
ec6a6fbe 8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
ec6a6fbe
AK
8767 } && test -s conftest$ac_exeext && {
8768 test "$cross_compiling" = yes ||
8769 $as_test_x conftest$ac_exeext
8770 }; then
d0191583
JM
8771 eval "$as_ac_var=yes"
8772else
ec6a6fbe 8773 $as_echo "$as_me: failed program was:" >&5
d0191583 8774sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8775
d0191583 8776 eval "$as_ac_var=no"
ad6254c5
AK
8777fi
8778
ec6a6fbe 8779rm -rf conftest.dSYM
d0191583
JM
8780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
7a197a62 8782fi
ec6a6fbe
AK
8783ac_res=`eval 'as_val=${'$as_ac_var'}
8784 $as_echo "$as_val"'`
8785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8786$as_echo "$ac_res" >&6; }
8787as_val=`eval 'as_val=${'$as_ac_var'}
8788 $as_echo "$as_val"'`
8789 if test "x$as_val" = x""yes; then
d0191583 8790 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8791#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8792_ACEOF
7a197a62 8793
ec6a6fbe
AK
8794{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8795$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8796if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8797 $as_echo_n "(cached) " >&6
ad6254c5 8798else
d0191583
JM
8799 cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8807#define _doprnt innocuous__doprnt
7a197a62 8808
d0191583
JM
8809/* System header to define __stub macros and hopefully few prototypes,
8810 which can conflict with char _doprnt (); below.
8811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8812 <limits.h> exists even on freestanding compilers. */
ad6254c5 8813
d0191583
JM
8814#ifdef __STDC__
8815# include <limits.h>
8816#else
8817# include <assert.h>
8818#endif
72b2cb61 8819
d0191583
JM
8820#undef _doprnt
8821
8822/* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8825#ifdef __cplusplus
8826extern "C"
8827#endif
8828char _doprnt ();
8829/* The GNU C library defines this for functions which it implements
8830 to always fail with ENOSYS. Some functions are actually named
8831 something starting with __ and the normal name is an alias. */
8832#if defined __stub__doprnt || defined __stub____doprnt
8833choke me
8834#endif
8835
8836int
8837main ()
8838{
8839return _doprnt ();
8840 ;
8841 return 0;
8842}
72b2cb61 8843_ACEOF
d0191583
JM
8844rm -f conftest.$ac_objext conftest$ac_exeext
8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
ec6a6fbe
AK
8850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851$as_echo "$ac_try_echo") >&5
d0191583
JM
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
ec6a6fbe 8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
ec6a6fbe
AK
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8864 }; then
d0191583
JM
8865 ac_cv_func__doprnt=yes
8866else
ec6a6fbe 8867 $as_echo "$as_me: failed program was:" >&5
d0191583 8868sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8869
d0191583 8870 ac_cv_func__doprnt=no
ad6254c5
AK
8871fi
8872
ec6a6fbe 8873rm -rf conftest.dSYM
d0191583
JM
8874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875 conftest$ac_exeext conftest.$ac_ext
7a197a62 8876fi
ec6a6fbe
AK
8877{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8878$as_echo "$ac_cv_func__doprnt" >&6; }
8879if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8880
d0191583
JM
8881cat >>confdefs.h <<\_ACEOF
8882#define HAVE_DOPRNT 1
8883_ACEOF
ad6254c5 8884
7a197a62
AK
8885fi
8886
d0191583
JM
8887fi
8888done
8b1a3214 8889
ad6254c5 8890
7a197a62 8891
9c961554 8892################################################################################
ec6a6fbe
AK
8893{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8894$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8895# Check whether --enable-static_link was given.
8896if test "${enable_static_link+set}" = set; then
8897 enableval=$enable_static_link; STATIC_LINK=$enableval
8898else
8899 STATIC_LINK=no
8900fi
8901
ec6a6fbe
AK
8902{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8903$as_echo "$STATIC_LINK" >&6; }
9c961554 8904
d0191583 8905################################################################################
ad6254c5 8906
ad6254c5
AK
8907
8908################################################################################
ec6a6fbe
AK
8909{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8910$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8911OWNER="root"
8912
8913
8914# Check whether --with-user was given.
8915if test "${with_user+set}" = set; then
8916 withval=$with_user; OWNER="$withval"
7a197a62
AK
8917fi
8918
ec6a6fbe
AK
8919{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8920$as_echo "$OWNER" >&6; }
ad6254c5 8921
d0191583
JM
8922if test x$OWNER != x; then
8923 OWNER="-o $OWNER"
ad6254c5
AK
8924fi
8925
8926################################################################################
ec6a6fbe
AK
8927{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8928$as_echo_n "checking group owner... " >&6; }
d0191583 8929GROUP="root"
ad6254c5 8930
d0191583
JM
8931# Check whether --with-group was given.
8932if test "${with_group+set}" = set; then
8933 withval=$with_group; GROUP="$withval"
7a197a62
AK
8934fi
8935
ec6a6fbe
AK
8936{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8937$as_echo "$GROUP" >&6; }
d0191583
JM
8938
8939if test x$GROUP != x; then
8940 GROUP="-g $GROUP"
8941fi
ad6254c5 8942
24bbc4d7 8943################################################################################
ec6a6fbe
AK
8944{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8945$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8946
8947
8948# Check whether --with-device-uid was given.
8949if test "${with_device_uid+set}" = set; then
8950 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8951else
8952 DM_DEVICE_UID="0"
8953fi
8954
ec6a6fbe
AK
8955{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8956$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8957
8958################################################################################
ec6a6fbe
AK
8959{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8960$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8961
8962
8963# Check whether --with-device-gid was given.
8964if test "${with_device_gid+set}" = set; then
8965 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8966else
8967 DM_DEVICE_GID="0"
8968fi
8969
ec6a6fbe
AK
8970{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8971$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8972
93bd259b 8973################################################################################
ec6a6fbe
AK
8974{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8975$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8976
8977
8978# Check whether --with-device-mode was given.
8979if test "${with_device_mode+set}" = set; then
8980 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8981else
8982 DM_DEVICE_MODE="0600"
8983fi
8984
ec6a6fbe
AK
8985{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8986$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8987
ad6254c5 8988################################################################################
ec6a6fbe
AK
8989{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8990$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8991# Check whether --enable-lvm1_fallback was given.
8992if test "${enable_lvm1_fallback+set}" = set; then
8993 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8994else
8995 LVM1_FALLBACK=no
7a197a62
AK
8996fi
8997
ec6a6fbe
AK
8998{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8999$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9000
d0191583 9001if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9002
9003cat >>confdefs.h <<\_ACEOF
d0191583 9004#define LVM1_FALLBACK 1
72b2cb61
AK
9005_ACEOF
9006
ad6254c5
AK
9007fi
9008
9009################################################################################
ec6a6fbe
AK
9010{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9011$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9012
9013# Check whether --with-lvm1 was given.
9014if test "${with_lvm1+set}" = set; then
9015 withval=$with_lvm1; LVM1="$withval"
9016else
9017 LVM1="internal"
7a197a62
AK
9018fi
9019
ec6a6fbe
AK
9020{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9021$as_echo "$LVM1" >&6; }
ad6254c5 9022
d0191583 9023if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9024 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9025" >&5
ec6a6fbe 9026$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9027" >&2;}
9028 { (exit 1); exit 1; }; }
9029fi;
9030
9031if test x$LVM1 = xinternal; then
72b2cb61
AK
9032
9033cat >>confdefs.h <<\_ACEOF
d0191583 9034#define LVM1_INTERNAL 1
72b2cb61
AK
9035_ACEOF
9036
ad6254c5
AK
9037fi
9038
9039################################################################################
ec6a6fbe
AK
9040{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9041$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9042
9043# Check whether --with-pool was given.
9044if test "${with_pool+set}" = set; then
9045 withval=$with_pool; POOL="$withval"
ad6254c5 9046else
d0191583 9047 POOL="internal"
7a197a62
AK
9048fi
9049
ec6a6fbe
AK
9050{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9051$as_echo "$POOL" >&6; }
ad6254c5 9052
d0191583 9053if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9054 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9055" >&5
ec6a6fbe 9056$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9057" >&2;}
9058 { (exit 1); exit 1; }; }
9059fi;
7a197a62 9060
d0191583
JM
9061if test x$POOL = xinternal; then
9062
9063cat >>confdefs.h <<\_ACEOF
9064#define POOL_INTERNAL 1
9065_ACEOF
9066
9067fi
ad6254c5 9068
06f62ad1 9069################################################################################
ec6a6fbe
AK
9070{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9071$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9072
9073# Check whether --with-cluster was given.
9074if test "${with_cluster+set}" = set; then
9075 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9076fi
9077
ec6a6fbe
AK
9078{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9079$as_echo "$CLUSTER" >&6; }
06f62ad1 9080
d0191583 9081if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9082 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9083" >&5
ec6a6fbe 9084$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9085" >&2;}
9086 { (exit 1); exit 1; }; }
d0191583 9087fi;
06f62ad1 9088
d0191583 9089if test x$CLUSTER = xinternal; then
72b2cb61
AK
9090
9091cat >>confdefs.h <<\_ACEOF
d0191583 9092#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9093_ACEOF
9094
15d91f5a 9095fi
ad6254c5
AK
9096
9097################################################################################
ec6a6fbe
AK
9098{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9099$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9100
d0191583
JM
9101# Check whether --with-snapshots was given.
9102if test "${with_snapshots+set}" = set; then
9103 withval=$with_snapshots; SNAPSHOTS="$withval"
9104else
9105 SNAPSHOTS="internal"
ad6254c5
AK
9106fi
9107
ec6a6fbe
AK
9108{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9109$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9110
d0191583 9111if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9112 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9113" >&5
ec6a6fbe 9114$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9115" >&2;}
9116 { (exit 1); exit 1; }; }
9117fi;
9118
9119if test x$SNAPSHOTS = xinternal; then
9120
9121cat >>confdefs.h <<\_ACEOF
9122#define SNAPSHOT_INTERNAL 1
9123_ACEOF
ad6254c5 9124
ad6254c5 9125fi
7a197a62 9126
d0191583 9127################################################################################
ec6a6fbe
AK
9128{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9129$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9130
9131# Check whether --with-mirrors was given.
9132if test "${with_mirrors+set}" = set; then
9133 withval=$with_mirrors; MIRRORS="$withval"
9134else
9135 MIRRORS="internal"
ad6254c5 9136fi
ad6254c5 9137
ec6a6fbe
AK
9138{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9139$as_echo "$MIRRORS" >&6; }
ad6254c5 9140
d0191583 9141if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9142 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9143" >&5
ec6a6fbe 9144$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9145" >&2;}
9146 { (exit 1); exit 1; }; }
9147fi;
ad6254c5 9148
d0191583 9149if test x$MIRRORS = xinternal; then
ad6254c5 9150
d0191583
JM
9151cat >>confdefs.h <<\_ACEOF
9152#define MIRRORED_INTERNAL 1
ad6254c5 9153_ACEOF
8a2fc586 9154
d0191583 9155fi
8a2fc586 9156
d0191583 9157################################################################################
ec6a6fbe
AK
9158{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9159$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9160# Check whether --enable-readline was given.
9161if test "${enable_readline+set}" = set; then
9162 enableval=$enable_readline; READLINE=$enableval
9163else
06e459df 9164 READLINE=maybe
d0191583 9165fi
8a2fc586 9166
ec6a6fbe
AK
9167{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9168$as_echo "$READLINE" >&6; }
8a2fc586 9169
d0191583 9170################################################################################
ec6a6fbe
AK
9171{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9172$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9173# Check whether --enable-realtime was given.
9174if test "${enable_realtime+set}" = set; then
9175 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9176fi
ad6254c5 9177
ec6a6fbe
AK
9178{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9179$as_echo "$REALTIME" >&6; }
d0191583
JM
9180
9181################################################################################
ec6a6fbe
AK
9182{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9183$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9184
9185# Check whether --with-clvmd was given.
9186if test "${with_clvmd+set}" = set; then
9187 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9188else
d0191583
JM
9189 CLVMD="none"
9190fi
8a2fc586 9191
d0191583
JM
9192if test x$CLVMD = xyes; then
9193 CLVMD=all
9194fi
ec6a6fbe
AK
9195{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9196$as_echo "$CLVMD" >&6; }
8a2fc586 9197
d0191583
JM
9198if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9199 CLUSTER=internal
9200fi
8a2fc586 9201
f15a2320 9202if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
e2997b73
AK
9203
9204
9205if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9206 if test -n "$ac_tool_prefix"; then
9207 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9208set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9212 $as_echo_n "(cached) " >&6
9213else
9214 case $PKG_CONFIG in
9215 [\\/]* | ?:[\\/]*)
9216 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9217 ;;
9218 *)
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9226 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230done
9231done
9232IFS=$as_save_IFS
9233
9234 ;;
9235esac
9236fi
9237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9238if test -n "$PKG_CONFIG"; then
9239 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9240$as_echo "$PKG_CONFIG" >&6; }
9241else
9242 { $as_echo "$as_me:$LINENO: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246
9247fi
9248if test -z "$ac_cv_path_PKG_CONFIG"; then
9249 ac_pt_PKG_CONFIG=$PKG_CONFIG
9250 # Extract the first word of "pkg-config", so it can be a program name with args.
9251set dummy pkg-config; ac_word=$2
9252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9253$as_echo_n "checking for $ac_word... " >&6; }
9254if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9255 $as_echo_n "(cached) " >&6
9256else
9257 case $ac_pt_PKG_CONFIG in
9258 [\\/]* | ?:[\\/]*)
9259 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9260 ;;
9261 *)
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263for as_dir in $PATH
9264do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273done
9274done
9275IFS=$as_save_IFS
9276
9277 ;;
9278esac
9279fi
9280ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9281if test -n "$ac_pt_PKG_CONFIG"; then
9282 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9283$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9284else
9285 { $as_echo "$as_me:$LINENO: result: no" >&5
9286$as_echo "no" >&6; }
9287fi
9288
9289 if test "x$ac_pt_PKG_CONFIG" = x; then
9290 PKG_CONFIG=""
9291 else
9292 case $cross_compiling:$ac_tool_warned in
9293yes:)
9294{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296ac_tool_warned=yes ;;
9297esac
9298 PKG_CONFIG=$ac_pt_PKG_CONFIG
9299 fi
9300else
9301 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9302fi
9303
9304fi
9305if test -n "$PKG_CONFIG"; then
9306 _pkg_min_version=0.9.0
9307 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9308$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9309 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9310 { $as_echo "$as_me:$LINENO: result: yes" >&5
9311$as_echo "yes" >&6; }
9312 else
9313 { $as_echo "$as_me:$LINENO: result: no" >&5
9314$as_echo "no" >&6; }
9315 PKG_CONFIG=""
9316 fi
9317
9318fi
9319
9320pkg_failed=no
9321{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9322$as_echo_n "checking for QUORUM... " >&6; }
9323
9324if test -n "$QUORUM_CFLAGS"; then
9325 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9326 elif test -n "$PKG_CONFIG"; then
9327 if test -n "$PKG_CONFIG" && \
9328 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9329 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9330 ac_status=$?
9331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; then
9333 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9334else
9335 pkg_failed=yes
9336fi
9337 else
9338 pkg_failed=untried
9339fi
9340if test -n "$QUORUM_LIBS"; then
9341 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9342 elif test -n "$PKG_CONFIG"; then
9343 if test -n "$PKG_CONFIG" && \
9344 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9345 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9346 ac_status=$?
9347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; then
9349 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9350else
9351 pkg_failed=yes
9352fi
9353 else
9354 pkg_failed=untried
9355fi
9356
9357
9358
9359if test $pkg_failed = yes; then
9360
9361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9362 _pkg_short_errors_supported=yes
9363else
9364 _pkg_short_errors_supported=no
9365fi
9366 if test $_pkg_short_errors_supported = yes; then
9367 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9368 else
9369 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9370 fi
9371 # Put the nasty error message in config.log where it belongs
9372 echo "$QUORUM_PKG_ERRORS" >&5
9373
9374 { $as_echo "$as_me:$LINENO: result: no" >&5
9375$as_echo "no" >&6; }
9376 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9377$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9378 QUORUM_LIBS="-lquorum"
9379elif test $pkg_failed = untried; then
9380 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9381$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9382 QUORUM_LIBS="-lquorum"
9383else
9384 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9385 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9386 { $as_echo "$as_me:$LINENO: result: yes" >&5
9387$as_echo "yes" >&6; }
9388 :
9389fi
9390
9391pkg_failed=no
9392{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9393$as_echo_n "checking for CONFDB... " >&6; }
9394
9395if test -n "$CONFDB_CFLAGS"; then
9396 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9397 elif test -n "$PKG_CONFIG"; then
9398 if test -n "$PKG_CONFIG" && \
9399 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9400 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9401 ac_status=$?
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; then
9404 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9405else
9406 pkg_failed=yes
9407fi
9408 else
9409 pkg_failed=untried
9410fi
9411if test -n "$CONFDB_LIBS"; then
9412 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9413 elif test -n "$PKG_CONFIG"; then
9414 if test -n "$PKG_CONFIG" && \
9415 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9416 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9417 ac_status=$?
9418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; then
9420 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9421else
9422 pkg_failed=yes
9423fi
9424 else
9425 pkg_failed=untried
9426fi
9427
9428
9429
9430if test $pkg_failed = yes; then
9431
9432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9433 _pkg_short_errors_supported=yes
9434else
9435 _pkg_short_errors_supported=no
9436fi
9437 if test $_pkg_short_errors_supported = yes; then
9438 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9439 else
9440 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9441 fi
9442 # Put the nasty error message in config.log where it belongs
9443 echo "$CONFDB_PKG_ERRORS" >&5
9444
9445 { $as_echo "$as_me:$LINENO: result: no" >&5
9446$as_echo "no" >&6; }
9447 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9448$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9449 CONFDB_LIBS="-lconfdb"
9450elif test $pkg_failed = untried; then
9451 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9452$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9453 CONFDB_LIBS="-lconfdb"
9454else
9455 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9456 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9457 { $as_echo "$as_me:$LINENO: result: yes" >&5
9458$as_echo "yes" >&6; }
9459 :
9460fi
9461
9462pkg_failed=no
9463{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9464$as_echo_n "checking for CPG... " >&6; }
9465
9466if test -n "$CPG_CFLAGS"; then
9467 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9468 elif test -n "$PKG_CONFIG"; then
9469 if test -n "$PKG_CONFIG" && \
9470 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9471 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9472 ac_status=$?
9473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; then
9475 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9476else
9477 pkg_failed=yes
9478fi
9479 else
9480 pkg_failed=untried
9481fi
9482if test -n "$CPG_LIBS"; then
9483 pkg_cv_CPG_LIBS="$CPG_LIBS"
9484 elif test -n "$PKG_CONFIG"; then
9485 if test -n "$PKG_CONFIG" && \
9486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9487 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9488 ac_status=$?
9489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; then
9491 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9492else
9493 pkg_failed=yes
9494fi
9495 else
9496 pkg_failed=untried
9497fi
9498
9499
9500
9501if test $pkg_failed = yes; then
9502
9503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9504 _pkg_short_errors_supported=yes
9505else
9506 _pkg_short_errors_supported=no
9507fi
9508 if test $_pkg_short_errors_supported = yes; then
9509 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9510 else
9511 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9512 fi
9513 # Put the nasty error message in config.log where it belongs
9514 echo "$CPG_PKG_ERRORS" >&5
9515
9516 { $as_echo "$as_me:$LINENO: result: no" >&5
9517$as_echo "no" >&6; }
9518 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9519$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9520 CPG_LIBS="-lcpg"
9521elif test $pkg_failed = untried; then
9522 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9523$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9524 CPG_LIBS="-lcpg"
9525else
9526 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9527 CPG_LIBS=$pkg_cv_CPG_LIBS
9528 { $as_echo "$as_me:$LINENO: result: yes" >&5
9529$as_echo "yes" >&6; }
9530 :
9531fi
9532fi
9533
d0191583 9534################################################################################
ec6a6fbe
AK
9535{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9536$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9537# Check whether --enable-debug was given.
9538if test "${enable_debug+set}" = set; then
9539 enableval=$enable_debug; DEBUG=$enableval
9540else
9541 DEBUG=no
9542fi
8a2fc586 9543
ec6a6fbe
AK
9544{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9545$as_echo "$DEBUG" >&6; }
ad6254c5 9546
d0191583
JM
9547if test x$DEBUG = xyes; then
9548 COPTIMISE_FLAG=
fc54be10 9549else
d0191583
JM
9550 CSCOPE_CMD=
9551fi
fc54be10 9552
d0191583 9553################################################################################
ec6a6fbe
AK
9554{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9555$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9556
9557# Check whether --with-optimisation was given.
9558if test "${with_optimisation+set}" = set; then
9559 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9560fi
9561
ec6a6fbe
AK
9562{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9563$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9564
9565################################################################################
ec6a6fbe
AK
9566{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9567$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9568# Check whether --enable-profiling was given.
9569if test "${enable_profiling+set}" = set; then
5556819a 9570 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9571else
5556819a 9572 PROFILING=no
fddafd51
ZK
9573fi
9574
ec6a6fbe
AK
9575{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9576$as_echo "$PROFILING" >&6; }
5556819a
AK
9577
9578if test "x$PROFILING" = xyes; then
9579 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9580 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9581set dummy lcov; ac_word=$2
ec6a6fbe
AK
9582{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9583$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9584if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9585 $as_echo_n "(cached) " >&6
fddafd51
ZK
9586else
9587 case $LCOV in
9588 [\\/]* | ?:[\\/]*)
9589 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9590 ;;
9591 *)
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593for as_dir in $PATH
9594do
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9601 break 2
9602 fi
9603done
9604done
9605IFS=$as_save_IFS
9606
b145d876 9607 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9608 ;;
9609esac
9610fi
9611LCOV=$ac_cv_path_LCOV
9612if test -n "$LCOV"; then
ec6a6fbe
AK
9613 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9614$as_echo "$LCOV" >&6; }
fddafd51 9615else
ec6a6fbe
AK
9616 { $as_echo "$as_me:$LINENO: result: no" >&5
9617$as_echo "no" >&6; }
fddafd51
ZK
9618fi
9619
9620
5556819a 9621 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9622set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9624$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9625if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9626 $as_echo_n "(cached) " >&6
fddafd51
ZK
9627else
9628 case $GENHTML in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9631 ;;
9632 *)
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634for as_dir in $PATH
9635do
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9642 break 2
9643 fi
9644done
9645done
9646IFS=$as_save_IFS
9647
b145d876 9648 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9649 ;;
9650esac
9651fi
9652GENHTML=$ac_cv_path_GENHTML
9653if test -n "$GENHTML"; then
ec6a6fbe
AK
9654 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9655$as_echo "$GENHTML" >&6; }
fddafd51 9656else
ec6a6fbe
AK
9657 { $as_echo "$as_me:$LINENO: result: no" >&5
9658$as_echo "no" >&6; }
fddafd51
ZK
9659fi
9660
9661
b145d876 9662 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9663 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9664$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9665 { (exit 1); exit 1; }; }
9666 fi
5556819a 9667fi
d0191583
JM
9668
9669################################################################################
ec6a6fbe
AK
9670{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9671$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9672# Check whether --enable-devmapper was given.
9673if test "${enable_devmapper+set}" = set; then
9674 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9675fi
9676
ec6a6fbe
AK
9677{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9678$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9679
9680if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9681
9682cat >>confdefs.h <<\_ACEOF
d0191583 9683#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9684_ACEOF
9685
9686fi
9687
a5f46f6a
AK
9688################################################################################
9689{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
9690$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
9691# Check whether --enable-udev_sync was given.
9692if test "${enable_udev_sync+set}" = set; then
9693 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
9694else
9695 UDEV_SYNC=no
9696fi
9697
9698{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
9699$as_echo "$UDEV_SYNC" >&6; }
9700
9701if test x$UDEV_SYNC = xyes; then
9702
9703cat >>confdefs.h <<\_ACEOF
9704#define UDEV_SYNC_SUPPORT 1
9705_ACEOF
9706
9707fi
9708
9709{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
9710$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
9711# Check whether --enable-udev_rules was given.
9712if test "${enable_udev_rules+set}" = set; then
9713 enableval=$enable_udev_rules; UDEV_RULES=$enableval
9714else
9715 UDEV_RULES=$UDEV_SYNC
9716fi
9717
9718{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
9719$as_echo "$UDEV_RULES" >&6; }
9720
93bd259b
AK
9721################################################################################
9722# Check whether --enable-compat was given.
9723if test "${enable_compat+set}" = set; then
9724 enableval=$enable_compat; DM_COMPAT=$enableval
9725else
9726 DM_COMPAT=no
9727fi
9728
9729
9730################################################################################
9731# Check whether --enable-ioctl was given.
9732if test "${enable_ioctl+set}" = set; then
9733 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9734fi
9735
9736
d0191583 9737################################################################################
ec6a6fbe
AK
9738{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9739$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9740# Check whether --enable-o_direct was given.
9741if test "${enable_o_direct+set}" = set; then
9742 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9743fi
ad6254c5 9744
ec6a6fbe
AK
9745{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9746$as_echo "$ODIRECT" >&6; }
ad6254c5 9747
d0191583 9748if test x$ODIRECT = xyes; then
ad6254c5 9749
d0191583
JM
9750cat >>confdefs.h <<\_ACEOF
9751#define O_DIRECT_SUPPORT 1
9752_ACEOF
ad6254c5 9753
d0191583 9754fi
ad6254c5 9755
572fefeb
AK
9756################################################################################
9757{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9758$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9759# Check whether --enable-applib was given.
9760if test "${enable_applib+set}" = set; then
9761 enableval=$enable_applib; APPLIB=$enableval
9762else
9763 APPLIB=no
9764fi
9765
9766{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9767$as_echo "$APPLIB" >&6; }
9768
9769test x$APPLIB = xyes \
9770 && LVM2APP_LIB=-llvm2app \
9771 || LVM2APP_LIB=
9772
d0191583 9773################################################################################
ec6a6fbe
AK
9774{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9775$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9776# Check whether --enable-cmdlib was given.
9777if test "${enable_cmdlib+set}" = set; then
9778 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9779else
d0191583
JM
9780 CMDLIB=no
9781fi
8a2fc586 9782
ec6a6fbe
AK
9783{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9784$as_echo "$CMDLIB" >&6; }
8a2fc586 9785
2a9a80c9 9786test x$CMDLIB = xyes \
d179cc7a
JM
9787 && LVM2CMD_LIB=-llvm2cmd \
9788 || LVM2CMD_LIB=
9789
93bd259b
AK
9790################################################################################
9791# Check whether --enable-pkgconfig was given.
9792if test "${enable_pkgconfig+set}" = set; then
9793 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9794else
9795 PKGCONFIG=no
9796fi
9797
2a9a80c9 9798
d0191583 9799################################################################################
ec6a6fbe
AK
9800{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9801$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9802# Check whether --enable-fsadm was given.
9803if test "${enable_fsadm+set}" = set; then
9804 enableval=$enable_fsadm; FSADM=$enableval
9805fi
8a2fc586 9806
ec6a6fbe
AK
9807{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9808$as_echo "$FSADM" >&6; }
8a2fc586 9809
d0191583 9810################################################################################
ec6a6fbe
AK
9811{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9812$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9813# Check whether --enable-dmeventd was given.
9814if test "${enable_dmeventd+set}" = set; then
9815 enableval=$enable_dmeventd; DMEVENTD=$enableval
9816fi
ad6254c5 9817
ec6a6fbe
AK
9818{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9819$as_echo "$DMEVENTD" >&6; }
ad6254c5 9820
93bd259b
AK
9821BUILD_DMEVENTD=$DMEVENTD
9822
2a9a80c9
PR
9823if test x$DMEVENTD = xyes; then
9824 if test x$MIRRORS != xinternal; then
ec6a6fbe 9825 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9826 " >&5
ec6a6fbe 9827$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9828 " >&2;}
d0191583 9829 { (exit 1); exit 1; }; }
2a9a80c9
PR
9830 fi
9831 if test x$CMDLIB = xno; then
ec6a6fbe 9832 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9833 " >&5
ec6a6fbe 9834$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9835 " >&2;}
9836 { (exit 1); exit 1; }; }
9837 fi
ad6254c5 9838fi
7a197a62 9839
d0191583
JM
9840if test x$DMEVENTD = xyes; then
9841
9842cat >>confdefs.h <<\_ACEOF
9843#define DMEVENTD 1
ad6254c5
AK
9844_ACEOF
9845
ad6254c5 9846fi
93bd259b
AK
9847
9848################################################################################
9849
ec6a6fbe
AK
9850{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9851$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9852if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9853 $as_echo_n "(cached) " >&6
93bd259b
AK
9854else
9855 ac_check_lib_save_LIBS=$LIBS
9856LIBS="-lc $LIBS"
9857cat >conftest.$ac_ext <<_ACEOF
9858/* confdefs.h. */
9859_ACEOF
9860cat confdefs.h >>conftest.$ac_ext
9861cat >>conftest.$ac_ext <<_ACEOF
9862/* end confdefs.h. */
9863
9864/* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
9867#ifdef __cplusplus
9868extern "C"
9869#endif
9870char getline ();
9871int
9872main ()
9873{
9874return getline ();
9875 ;
9876 return 0;
9877}
9878_ACEOF
9879rm -f conftest.$ac_objext conftest$ac_exeext
9880if { (ac_try="$ac_link"
9881case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
ec6a6fbe
AK
9885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9886$as_echo "$ac_try_echo") >&5
93bd259b
AK
9887 (eval "$ac_link") 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
ec6a6fbe 9892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9893 (exit $ac_status); } && {
9894 test -z "$ac_c_werror_flag" ||
9895 test ! -s conftest.err
ec6a6fbe
AK
9896 } && test -s conftest$ac_exeext && {
9897 test "$cross_compiling" = yes ||
9898 $as_test_x conftest$ac_exeext
9899 }; then
93bd259b
AK
9900 ac_cv_lib_c_getline=yes
9901else
ec6a6fbe 9902 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_cv_lib_c_getline=no
9906fi
9907
ec6a6fbe 9908rm -rf conftest.dSYM
93bd259b
AK
9909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910 conftest$ac_exeext conftest.$ac_ext
9911LIBS=$ac_check_lib_save_LIBS
9912fi
ec6a6fbe
AK
9913{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9914$as_echo "$ac_cv_lib_c_getline" >&6; }
9915if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9916
9917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_GETLINE 1
9919_ACEOF
9920
9921fi
9922
9923
9924################################################################################
9925
ec6a6fbe
AK
9926{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9927$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9928if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9929 $as_echo_n "(cached) " >&6
93bd259b
AK
9930else
9931 ac_check_lib_save_LIBS=$LIBS
9932LIBS="-lc $LIBS"
9933cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
9939
9940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9943#ifdef __cplusplus
9944extern "C"
9945#endif
9946char canonicalize_file_name ();
9947int
9948main ()
9949{
9950return canonicalize_file_name ();
9951 ;
9952 return 0;
9953}
9954_ACEOF
9955rm -f conftest.$ac_objext conftest$ac_exeext
9956if { (ac_try="$ac_link"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
ec6a6fbe
AK
9961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9962$as_echo "$ac_try_echo") >&5
93bd259b
AK
9963 (eval "$ac_link") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
ec6a6fbe 9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
ec6a6fbe
AK
9972 } && test -s conftest$ac_exeext && {
9973 test "$cross_compiling" = yes ||
9974 $as_test_x conftest$ac_exeext
9975 }; then
93bd259b
AK
9976 ac_cv_lib_c_canonicalize_file_name=yes
9977else
ec6a6fbe 9978 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_lib_c_canonicalize_file_name=no
9982fi
9983
ec6a6fbe 9984rm -rf conftest.dSYM
93bd259b
AK
9985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9987LIBS=$ac_check_lib_save_LIBS
9988fi
ec6a6fbe
AK
9989{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9990$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9991if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9992
9993cat >>confdefs.h <<\_ACEOF
9994#define HAVE_CANONICALIZE_FILE_NAME 1
9995_ACEOF
9996
9997fi
9998
9999
d0191583
JM
10000################################################################################
10001if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
10002 then exec_prefix="";
10003fi;
ad6254c5
AK
10004
10005################################################################################
06e459df 10006if test x$READLINE != xno; then
ec6a6fbe
AK
10007 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10008$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 10009if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 10010 $as_echo_n "(cached) " >&6
ad6254c5
AK
10011else
10012 ac_func_search_save_LIBS=$LIBS
ad6254c5 10013cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10014/* confdefs.h. */
10015_ACEOF
10016cat confdefs.h >>conftest.$ac_ext
10017cat >>conftest.$ac_ext <<_ACEOF
10018/* end confdefs.h. */
10019
7a197a62
AK
10020/* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10023#ifdef __cplusplus
10024extern "C"
10025#endif
ad6254c5
AK
10026char tgetent ();
10027int
10028main ()
10029{
7a197a62 10030return tgetent ();
ad6254c5
AK
10031 ;
10032 return 0;
10033}
10034_ACEOF
18dcfb69 10035for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
10036 if test -z "$ac_lib"; then
10037 ac_res="none required"
10038 else
10039 ac_res=-l$ac_lib
10040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10041 fi
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043if { (ac_try="$ac_link"
10044case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047esac
ec6a6fbe
AK
10048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049$as_echo "$ac_try_echo") >&5
7a197a62 10050 (eval "$ac_link") 2>conftest.er1
ad6254c5 10051 ac_status=$?
8a2fc586
AK
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
ec6a6fbe 10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
ec6a6fbe
AK
10059 } && test -s conftest$ac_exeext && {
10060 test "$cross_compiling" = yes ||
10061 $as_test_x conftest$ac_exeext
10062 }; then
7a197a62 10063 ac_cv_search_tgetent=$ac_res
ad6254c5 10064else
ec6a6fbe 10065 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
ad6254c5 10068
7a197a62 10069fi
ad6254c5 10070
ec6a6fbe 10071rm -rf conftest.dSYM
25fbec5b 10072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10073 conftest$ac_exeext
10074 if test "${ac_cv_search_tgetent+set}" = set; then
10075 break
ad6254c5 10076fi
7a197a62
AK
10077done
10078if test "${ac_cv_search_tgetent+set}" = set; then
10079 :
10080else
10081 ac_cv_search_tgetent=no
ad6254c5 10082fi
7a197a62 10083rm conftest.$ac_ext
ad6254c5
AK
10084LIBS=$ac_func_search_save_LIBS
10085fi
ec6a6fbe
AK
10086{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10087$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10088ac_res=$ac_cv_search_tgetent
10089if test "$ac_res" != no; then
10090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10091 tg_found=yes
ad6254c5 10092else
06e459df
JM
10093 tg_found=no
10094fi
10095
10096 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10097 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10098--enable-readline option (which is enabled by default). Either disable readline
10099support with --disable-readline or download and install termcap from:
10100 ftp.gnu.org/gnu/termcap
10101Note: if you are using precompiled packages you will also need the development
10102 package as well (which may be called termcap-devel or something similar).
10103Note: (n)curses also seems to work as a substitute for termcap. This was
10104 not found either - but you could try installing that as well.
10105" >&5
ec6a6fbe 10106$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10107--enable-readline option (which is enabled by default). Either disable readline
10108support with --disable-readline or download and install termcap from:
10109 ftp.gnu.org/gnu/termcap
10110Note: if you are using precompiled packages you will also need the development
10111 package as well (which may be called termcap-devel or something similar).
10112Note: (n)curses also seems to work as a substitute for termcap. This was
10113 not found either - but you could try installing that as well.
10114" >&2;}
10115 { (exit 1); exit 1; }; }
ad6254c5
AK
10116fi
10117
10118################################################################################
ec6a6fbe
AK
10119{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10120$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10121if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10122 $as_echo_n "(cached) " >&6
ad6254c5
AK
10123else
10124 ac_check_lib_save_LIBS=$LIBS
10125LIBS="-ldl $LIBS"
10126cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132
7a197a62
AK
10133/* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10136#ifdef __cplusplus
10137extern "C"
10138#endif
ad6254c5
AK
10139char dlopen ();
10140int
10141main ()
10142{
7a197a62 10143return dlopen ();
ad6254c5
AK
10144 ;
10145 return 0;
10146}
10147_ACEOF
10148rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10149if { (ac_try="$ac_link"
10150case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153esac
ec6a6fbe
AK
10154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155$as_echo "$ac_try_echo") >&5
7a197a62 10156 (eval "$ac_link") 2>conftest.er1
ad6254c5 10157 ac_status=$?
8a2fc586
AK
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
ec6a6fbe 10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
ec6a6fbe
AK
10165 } && test -s conftest$ac_exeext && {
10166 test "$cross_compiling" = yes ||
10167 $as_test_x conftest$ac_exeext
10168 }; then
ad6254c5
AK
10169 ac_cv_lib_dl_dlopen=yes
10170else
ec6a6fbe 10171 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
7a197a62 10174 ac_cv_lib_dl_dlopen=no
ad6254c5 10175fi
7a197a62 10176
ec6a6fbe 10177rm -rf conftest.dSYM
25fbec5b 10178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10179 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10180LIBS=$ac_check_lib_save_LIBS
10181fi
ec6a6fbe
AK
10182{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10183$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10184if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10185 HAVE_LIBDL=yes
10186else
10187 HAVE_LIBDL=no
10188fi
10189
10190
7e9e9502 10191if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10192
10193cat >>confdefs.h <<\_ACEOF
10194#define HAVE_LIBDL 1
10195_ACEOF
10196
ad6254c5
AK
10197 LIBS="-ldl $LIBS"
10198else
10199 HAVE_LIBDL=no
10200fi
10201
10202################################################################################
10203if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10204 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10205 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10206 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10207" >&5
ec6a6fbe 10208$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10209" >&2;}
10210 { (exit 1); exit 1; }; }
10211fi
10212
d0191583 10213################################################################################
ec6a6fbe
AK
10214{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10215$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10216# Check whether --enable-selinux was given.
10217if test "${enable_selinux+set}" = set; then
10218 enableval=$enable_selinux; SELINUX=$enableval
10219fi
10220
ec6a6fbe
AK
10221{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10222$as_echo "$SELINUX" >&6; }
d0191583 10223
ad6254c5
AK
10224################################################################################
10225if test x$SELINUX = xyes; then
ec6a6fbe
AK
10226 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10227$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10228if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10229 $as_echo_n "(cached) " >&6
8a2fc586
AK
10230else
10231 ac_check_lib_save_LIBS=$LIBS
10232LIBS="-lsepol $LIBS"
10233cat >conftest.$ac_ext <<_ACEOF
10234/* confdefs.h. */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h. */
10239
7a197a62
AK
10240/* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10243#ifdef __cplusplus
10244extern "C"
10245#endif
8a2fc586
AK
10246char sepol_check_context ();
10247int
10248main ()
10249{
7a197a62 10250return sepol_check_context ();
8a2fc586
AK
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10256if { (ac_try="$ac_link"
10257case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
ec6a6fbe
AK
10261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262$as_echo "$ac_try_echo") >&5
7a197a62 10263 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
ec6a6fbe 10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
ec6a6fbe
AK
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
8a2fc586
AK
10276 ac_cv_lib_sepol_sepol_check_context=yes
10277else
ec6a6fbe 10278 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
7a197a62 10281 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10282fi
7a197a62 10283
ec6a6fbe 10284rm -rf conftest.dSYM
25fbec5b 10285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10286 conftest$ac_exeext conftest.$ac_ext
10287LIBS=$ac_check_lib_save_LIBS
10288fi
ec6a6fbe
AK
10289{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10290$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10291if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10292 HAVE_SEPOL=yes
10293else
10294 HAVE_SEPOL=no
10295fi
10296
8a2fc586
AK
10297
10298 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10299
10300cat >>confdefs.h <<\_ACEOF
10301#define HAVE_SEPOL 1
10302_ACEOF
10303
8a2fc586
AK
10304 LIBS="-lsepol $LIBS"
10305 fi
10306
ec6a6fbe
AK
10307 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10308$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10309if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10310 $as_echo_n "(cached) " >&6
ad6254c5
AK
10311else
10312 ac_check_lib_save_LIBS=$LIBS
10313LIBS="-lselinux $LIBS"
10314cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320
7a197a62
AK
10321/* Override any GCC internal prototype to avoid an error.
10322 Use char because int might match the return type of a GCC
10323 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10324#ifdef __cplusplus
10325extern "C"
10326#endif
ad6254c5
AK
10327char is_selinux_enabled ();
10328int
10329main ()
10330{
7a197a62 10331return is_selinux_enabled ();
ad6254c5
AK
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10337if { (ac_try="$ac_link"
10338case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341esac
ec6a6fbe
AK
10342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343$as_echo "$ac_try_echo") >&5
7a197a62 10344 (eval "$ac_link") 2>conftest.er1
ad6254c5 10345 ac_status=$?
8a2fc586
AK
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
ec6a6fbe 10349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
ec6a6fbe
AK
10353 } && test -s conftest$ac_exeext && {
10354 test "$cross_compiling" = yes ||
10355 $as_test_x conftest$ac_exeext
10356 }; then
ad6254c5
AK
10357 ac_cv_lib_selinux_is_selinux_enabled=yes
10358else
ec6a6fbe 10359 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
7a197a62 10362 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10363fi
7a197a62 10364
ec6a6fbe 10365rm -rf conftest.dSYM
25fbec5b 10366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10367 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10368LIBS=$ac_check_lib_save_LIBS
10369fi
ec6a6fbe
AK
10370{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10371$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10372if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10373 HAVE_SELINUX=yes
10374else
10375 HAVE_SELINUX=no
10376fi
10377
ad6254c5
AK
10378
10379 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10380
10381cat >>confdefs.h <<\_ACEOF
10382#define HAVE_SELINUX 1
10383_ACEOF
10384
ad6254c5
AK
10385 LIBS="-lselinux $LIBS"
10386 else
ec6a6fbe
AK
10387 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10388$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10389 fi
10390
d0191583 10391 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10392 # fails on at least Debian unstable due to unsatisfied references
10393 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10394 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10395 lvm_saved_libs=$LIBS
10396 LIBS="$LIBS -static"
ec6a6fbe
AK
10397 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10398$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10399if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10400 $as_echo_n "(cached) " >&6
66e941e8
JM
10401else
10402 ac_func_search_save_LIBS=$LIBS
10403cat >conftest.$ac_ext <<_ACEOF
10404/* confdefs.h. */
10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h. */
10409
10410/* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
10413#ifdef __cplusplus
10414extern "C"
10415#endif
10416char pthread_mutex_lock ();
10417int
10418main ()
10419{
10420return pthread_mutex_lock ();
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425for ac_lib in '' pthread; do
10426 if test -z "$ac_lib"; then
10427 ac_res="none required"
10428 else
10429 ac_res=-l$ac_lib
10430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10431 fi
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433if { (ac_try="$ac_link"
10434case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
ec6a6fbe
AK
10438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10439$as_echo "$ac_try_echo") >&5
66e941e8
JM
10440 (eval "$ac_link") 2>conftest.er1
10441 ac_status=$?
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
ec6a6fbe 10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
ec6a6fbe
AK
10449 } && test -s conftest$ac_exeext && {
10450 test "$cross_compiling" = yes ||
10451 $as_test_x conftest$ac_exeext
10452 }; then
66e941e8
JM
10453 ac_cv_search_pthread_mutex_lock=$ac_res
10454else
ec6a6fbe 10455 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
10458
10459fi
10460
ec6a6fbe 10461rm -rf conftest.dSYM
25fbec5b 10462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10463 conftest$ac_exeext
10464 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10465 break
10466fi
10467done
10468if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10469 :
10470else
10471 ac_cv_search_pthread_mutex_lock=no
10472fi
10473rm conftest.$ac_ext
10474LIBS=$ac_func_search_save_LIBS
10475fi
ec6a6fbe
AK
10476{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10477$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10478ac_res=$ac_cv_search_pthread_mutex_lock
10479if test "$ac_res" != no; then
10480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10481 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10482 LIB_PTHREAD=-lpthread
10483fi
10484
10485 LIBS=$lvm_saved_libs
ad6254c5
AK
10486 fi
10487fi
10488
8b1a3214
AK
10489################################################################################
10490if test x$REALTIME = xyes; then
ec6a6fbe
AK
10491 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10492$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10493if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10494 $as_echo_n "(cached) " >&6
8b1a3214
AK
10495else
10496 ac_check_lib_save_LIBS=$LIBS
10497LIBS="-lrt $LIBS"
10498cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504
7a197a62
AK
10505/* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10508#ifdef __cplusplus
10509extern "C"
10510#endif
8b1a3214
AK
10511char clock_gettime ();
10512int
10513main ()
10514{
7a197a62 10515return clock_gettime ();
8b1a3214
AK
10516 ;
10517 return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10521if { (ac_try="$ac_link"
10522case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
ec6a6fbe
AK
10526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527$as_echo "$ac_try_echo") >&5
7a197a62 10528 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
ec6a6fbe 10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
ec6a6fbe
AK
10537 } && test -s conftest$ac_exeext && {
10538 test "$cross_compiling" = yes ||
10539 $as_test_x conftest$ac_exeext
10540 }; then
8b1a3214
AK
10541 ac_cv_lib_rt_clock_gettime=yes
10542else
ec6a6fbe 10543 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
7a197a62 10546 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10547fi
7a197a62 10548
ec6a6fbe 10549rm -rf conftest.dSYM
25fbec5b 10550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10551 conftest$ac_exeext conftest.$ac_ext
10552LIBS=$ac_check_lib_save_LIBS
10553fi
ec6a6fbe
AK
10554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10555$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10556if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10557 HAVE_REALTIME=yes
10558else
10559 HAVE_REALTIME=no
10560fi
10561
8b1a3214
AK
10562
10563 if test x$HAVE_REALTIME = xyes; then
10564
10565cat >>confdefs.h <<\_ACEOF
10566#define HAVE_REALTIME 1
10567_ACEOF
10568
10569 LIBS="-lrt $LIBS"
10570 else
ec6a6fbe
AK
10571 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10572$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10573 fi
10574fi
10575
ad6254c5
AK
10576################################################################################
10577
10578for ac_header in getopt.h
10579do
ec6a6fbe 10580as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10583$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10585 $as_echo_n "(cached) " >&6
ad6254c5 10586fi
ec6a6fbe
AK
10587ac_res=`eval 'as_val=${'$as_ac_Header'}
10588 $as_echo "$as_val"'`
10589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10590$as_echo "$ac_res" >&6; }
ad6254c5
AK
10591else
10592 # Is the header compilable?
ec6a6fbe
AK
10593{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10595cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
10601$ac_includes_default
10602#include <$ac_header>
10603_ACEOF
10604rm -f conftest.$ac_objext
7a197a62
AK
10605if { (ac_try="$ac_compile"
10606case "(($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_compile") 2>conftest.er1
ad6254c5 10613 ac_status=$?
8a2fc586
AK
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
ec6a6fbe 10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10622 ac_header_compiler=yes
10623else
ec6a6fbe 10624 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
7a197a62 10627 ac_header_compiler=no
ad6254c5 10628fi
7a197a62
AK
10629
10630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10631{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10633
10634# Is the header present?
ec6a6fbe
AK
10635{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10636$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10637cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
10643#include <$ac_header>
10644_ACEOF
7a197a62
AK
10645if { (ac_try="$ac_cpp conftest.$ac_ext"
10646case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649esac
ec6a6fbe
AK
10650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651$as_echo "$ac_try_echo") >&5
7a197a62 10652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
ec6a6fbe 10657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10658 (exit $ac_status); } >/dev/null && {
10659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 }; then
ad6254c5
AK
10662 ac_header_preproc=yes
10663else
ec6a6fbe 10664 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_header_preproc=no
10668fi
7a197a62 10669
ad6254c5 10670rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10671{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10673
10674# So? What about this header?
8a2fc586
AK
10675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676 yes:no: )
ec6a6fbe
AK
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10678$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10680$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10681 ac_header_preproc=yes
ad6254c5 10682 ;;
8a2fc586 10683 no:yes:* )
ec6a6fbe
AK
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10685$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10687$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10689$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10691$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10693$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10695$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10696
ad6254c5
AK
10697 ;;
10698esac
ec6a6fbe
AK
10699{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10700$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10702 $as_echo_n "(cached) " >&6
ad6254c5 10703else
8a2fc586 10704 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10705fi
ec6a6fbe
AK
10706ac_res=`eval 'as_val=${'$as_ac_Header'}
10707 $as_echo "$as_val"'`
10708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10709$as_echo "$ac_res" >&6; }
ad6254c5
AK
10710
10711fi
ec6a6fbe
AK
10712as_val=`eval 'as_val=${'$as_ac_Header'}
10713 $as_echo "$as_val"'`
10714 if test "x$as_val" = x""yes; then
ad6254c5 10715 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10717_ACEOF
72b2cb61
AK
10718
10719cat >>confdefs.h <<\_ACEOF
10720#define HAVE_GETOPTLONG 1
10721_ACEOF
10722
ad6254c5
AK
10723fi
10724
10725done
10726
10727
10728################################################################################
06e459df 10729if test x$READLINE != xno; then
bc1024f8
JM
10730 rl_found=yes
10731
ec6a6fbe
AK
10732{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10733$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10734if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10735 $as_echo_n "(cached) " >&6
ad6254c5
AK
10736else
10737 ac_check_lib_save_LIBS=$LIBS
10738LIBS="-lreadline $LIBS"
10739cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745
7a197a62
AK
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10749#ifdef __cplusplus
10750extern "C"
10751#endif
ad6254c5
AK
10752char readline ();
10753int
10754main ()
10755{
7a197a62 10756return readline ();
ad6254c5
AK
10757 ;
10758 return 0;
10759}
10760_ACEOF
10761rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10762if { (ac_try="$ac_link"
10763case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
ec6a6fbe
AK
10767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768$as_echo "$ac_try_echo") >&5
7a197a62 10769 (eval "$ac_link") 2>conftest.er1
ad6254c5 10770 ac_status=$?
8a2fc586
AK
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
ec6a6fbe 10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
ec6a6fbe
AK
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10781 }; then
ad6254c5
AK
10782 ac_cv_lib_readline_readline=yes
10783else
ec6a6fbe 10784 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
7a197a62 10787 ac_cv_lib_readline_readline=no
ad6254c5 10788fi
7a197a62 10789
ec6a6fbe 10790rm -rf conftest.dSYM
25fbec5b 10791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10792 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10793LIBS=$ac_check_lib_save_LIBS
10794fi
ec6a6fbe
AK
10795{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10796$as_echo "$ac_cv_lib_readline_readline" >&6; }
10797if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10798 cat >>confdefs.h <<_ACEOF
10799#define HAVE_LIBREADLINE 1
10800_ACEOF
10801
10802 LIBS="-lreadline $LIBS"
10803
ad6254c5 10804else
06e459df
JM
10805 rl_found=no
10806fi
10807
10808 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10809 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10810--enable-readline option (which is enabled by default). Either disable readline
10811support with --disable-readline or download and install readline from:
10812 ftp.gnu.org/gnu/readline
10813Note: if you are using precompiled packages you will also need the development
10814package as well (which may be called readline-devel or something similar).
10815" >&5
ec6a6fbe 10816$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10817--enable-readline option (which is enabled by default). Either disable readline
10818support with --disable-readline or download and install readline from:
10819 ftp.gnu.org/gnu/readline
10820Note: if you are using precompiled packages you will also need the development
10821package as well (which may be called readline-devel or something similar).
10822" >&2;}
10823 { (exit 1); exit 1; }; }
06e459df 10824 if test $rl_found = yes; then
bc1024f8
JM
10825
10826for ac_func in rl_completion_matches
10827do
ec6a6fbe
AK
10828as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10829{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10830$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10832 $as_echo_n "(cached) " >&6
ad6254c5
AK
10833else
10834 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
bc1024f8 10840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10842#define $ac_func innocuous_$ac_func
8a2fc586 10843
ad6254c5 10844/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10845 which can conflict with char $ac_func (); below.
ad6254c5
AK
10846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847 <limits.h> exists even on freestanding compilers. */
8a2fc586 10848
ad6254c5
AK
10849#ifdef __STDC__
10850# include <limits.h>
10851#else
10852# include <assert.h>
10853#endif
8a2fc586 10854
bc1024f8 10855#undef $ac_func
8a2fc586 10856
7a197a62
AK
10857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10860#ifdef __cplusplus
10861extern "C"
ad6254c5 10862#endif
bc1024f8 10863char $ac_func ();
ad6254c5
AK
10864/* The GNU C library defines this for functions which it implements
10865 to always fail with ENOSYS. Some functions are actually named
10866 something starting with __ and the normal name is an alias. */
bc1024f8 10867#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10868choke me
ad6254c5
AK
10869#endif
10870
10871int
10872main ()
10873{
bc1024f8 10874return $ac_func ();
ad6254c5
AK
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10880if { (ac_try="$ac_link"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
ec6a6fbe
AK
10885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10886$as_echo "$ac_try_echo") >&5
7a197a62 10887 (eval "$ac_link") 2>conftest.er1
ad6254c5 10888 ac_status=$?
8a2fc586
AK
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
ec6a6fbe 10892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
ec6a6fbe
AK
10896 } && test -s conftest$ac_exeext && {
10897 test "$cross_compiling" = yes ||
10898 $as_test_x conftest$ac_exeext
10899 }; then
bc1024f8 10900 eval "$as_ac_var=yes"
ad6254c5 10901else
ec6a6fbe 10902 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10903sed 's/^/| /' conftest.$ac_ext >&5
10904
bc1024f8 10905 eval "$as_ac_var=no"
ad6254c5 10906fi
7a197a62 10907
ec6a6fbe 10908rm -rf conftest.dSYM
25fbec5b 10909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10910 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10911fi
ec6a6fbe
AK
10912ac_res=`eval 'as_val=${'$as_ac_var'}
10913 $as_echo "$as_val"'`
10914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10915$as_echo "$ac_res" >&6; }
10916as_val=`eval 'as_val=${'$as_ac_var'}
10917 $as_echo "$as_val"'`
10918 if test "x$as_val" = x""yes; then
bc1024f8 10919 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10921_ACEOF
10922
10923fi
bc1024f8 10924done
ad6254c5 10925
d179cc7a
JM
10926
10927cat >>confdefs.h <<\_ACEOF
10928#define READLINE_SUPPORT 1
10929_ACEOF
10930
06e459df 10931 fi
ad6254c5
AK
10932fi
10933
10934################################################################################
ec6a6fbe
AK
10935{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10936$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10937# Check whether --enable-nls was given.
ad6254c5 10938if test "${enable_nls+set}" = set; then
7a197a62 10939 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10940else
10941 INTL=no
7a197a62
AK
10942fi
10943
ec6a6fbe
AK
10944{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10945$as_echo "$INTL" >&6; }
ad6254c5
AK
10946
10947if test x$INTL = xyes; then
93bd259b 10948# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10949 INTL_PACKAGE="lvm2"
10950 # Extract the first word of "msgfmt", so it can be a program name with args.
10951set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10953$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10954if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10955 $as_echo_n "(cached) " >&6
ad6254c5
AK
10956else
10957 case $MSGFMT in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10960 ;;
10961 *)
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963for as_dir in $PATH
10964do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10969 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10971 break 2
10972 fi
10973done
10974done
7a197a62 10975IFS=$as_save_IFS
ad6254c5
AK
10976
10977 ;;
10978esac
10979fi
10980MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10981if test -n "$MSGFMT"; then
ec6a6fbe
AK
10982 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10983$as_echo "$MSGFMT" >&6; }
ad6254c5 10984else
ec6a6fbe
AK
10985 { $as_echo "$as_me:$LINENO: result: no" >&5
10986$as_echo "no" >&6; }
ad6254c5
AK
10987fi
10988
7a197a62 10989
ad6254c5 10990 if [ "x$MSGFMT" == x ];
ec6a6fbe 10991 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10992 " >&5
ec6a6fbe 10993$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10994 " >&2;}
10995 { (exit 1); exit 1; }; }
10996 fi;
10997
10998
7a197a62 10999# Check whether --with-localedir was given.
ad6254c5 11000if test "${with_localedir+set}" = set; then
7a197a62 11001 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
11002else
11003 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
11004fi
11005
ad6254c5
AK
11006fi
11007
11008################################################################################
11009
7a197a62 11010# Check whether --with-confdir was given.
ad6254c5 11011if test "${with_confdir+set}" = set; then
7a197a62 11012 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
11013else
11014 CONFDIR='/etc'
7a197a62
AK
11015fi
11016
ad6254c5
AK
11017
11018
7a197a62 11019# Check whether --with-staticdir was given.
ad6254c5 11020if test "${with_staticdir+set}" = set; then
7a197a62 11021 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
11022else
11023 STATICDIR='${exec_prefix}/sbin'
7a197a62 11024fi
ad6254c5 11025
33f732c5 11026
7a197a62 11027
68f2de6d
AK
11028# Check whether --with-usrlibdir was given.
11029if test "${with_usrlibdir+set}" = set; then
11030 withval=$with_usrlibdir; usrlibdir="$withval"
11031else
11032 usrlibdir='${prefix}/lib'
11033fi
11034
11035
11036
11037# Check whether --with-usrsbindir was given.
11038if test "${with_usrsbindir+set}" = set; then
11039 withval=$with_usrsbindir; usrsbindir="$withval"
11040else
11041 usrsbindir='${prefix}/sbin'
11042fi
11043
11044
a5f46f6a
AK
11045################################################################################
11046
11047# Check whether --with-udev_prefix was given.
11048if test "${with_udev_prefix+set}" = set; then
11049 withval=$with_udev_prefix; udev_prefix="$withval"
11050else
11051 udev_prefix='${exec_prefix}'
11052fi
11053
11054
11055udevdir='${udev_prefix}/lib/udev/rules.d'
11056
ad6254c5
AK
11057################################################################################
11058if test x$READLINE = xyes; then
11059
11060
11061for ac_header in readline/readline.h readline/history.h
11062do
ec6a6fbe 11063as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11066$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11068 $as_echo_n "(cached) " >&6
ad6254c5 11069fi
ec6a6fbe
AK
11070ac_res=`eval 'as_val=${'$as_ac_Header'}
11071 $as_echo "$as_val"'`
11072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11073$as_echo "$ac_res" >&6; }
ad6254c5
AK
11074else
11075 # Is the header compilable?
ec6a6fbe
AK
11076{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11077$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11078cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084$ac_includes_default
11085#include <$ac_header>
11086_ACEOF
11087rm -f conftest.$ac_objext
7a197a62
AK
11088if { (ac_try="$ac_compile"
11089case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092esac
ec6a6fbe
AK
11093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11094$as_echo "$ac_try_echo") >&5
7a197a62 11095 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11096 ac_status=$?
8a2fc586
AK
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
ec6a6fbe 11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11105 ac_header_compiler=yes
11106else
ec6a6fbe 11107 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
7a197a62 11110 ac_header_compiler=no
ad6254c5 11111fi
7a197a62
AK
11112
11113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11114{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11116
11117# Is the header present?
ec6a6fbe
AK
11118{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11119$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11120cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
11126#include <$ac_header>
11127_ACEOF
7a197a62
AK
11128if { (ac_try="$ac_cpp conftest.$ac_ext"
11129case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
ec6a6fbe
AK
11133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11134$as_echo "$ac_try_echo") >&5
7a197a62 11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
ec6a6fbe 11140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11141 (exit $ac_status); } >/dev/null && {
11142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 }; then
ad6254c5
AK
11145 ac_header_preproc=yes
11146else
ec6a6fbe 11147 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_header_preproc=no
11151fi
7a197a62 11152
ad6254c5 11153rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11154{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11155$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11156
11157# So? What about this header?
8a2fc586
AK
11158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11159 yes:no: )
ec6a6fbe
AK
11160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11161$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11163$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11164 ac_header_preproc=yes
ad6254c5 11165 ;;
8a2fc586 11166 no:yes:* )
ec6a6fbe
AK
11167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11168$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11170$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11172$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11174$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11176$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11178$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11179
ad6254c5
AK
11180 ;;
11181esac
ec6a6fbe
AK
11182{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11183$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11185 $as_echo_n "(cached) " >&6
ad6254c5 11186else
8a2fc586 11187 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11188fi
ec6a6fbe
AK
11189ac_res=`eval 'as_val=${'$as_ac_Header'}
11190 $as_echo "$as_val"'`
11191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11192$as_echo "$ac_res" >&6; }
ad6254c5
AK
11193
11194fi
ec6a6fbe
AK
11195as_val=`eval 'as_val=${'$as_ac_Header'}
11196 $as_echo "$as_val"'`
11197 if test "x$as_val" = x""yes; then
ad6254c5 11198 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11200_ACEOF
11201
11202else
ec6a6fbe
AK
11203 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11204$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11205 { (exit 1); exit 1; }; }
11206fi
11207
11208done
11209
11210fi
11211
5c7fc7c4 11212if test x$CLVMD != xnone; then
ad6254c5
AK
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223for 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
11224do
ec6a6fbe 11225as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11228$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11230 $as_echo_n "(cached) " >&6
ad6254c5 11231fi
ec6a6fbe
AK
11232ac_res=`eval 'as_val=${'$as_ac_Header'}
11233 $as_echo "$as_val"'`
11234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11235$as_echo "$ac_res" >&6; }
ad6254c5
AK
11236else
11237 # Is the header compilable?
ec6a6fbe
AK
11238{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11240cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246$ac_includes_default
11247#include <$ac_header>
11248_ACEOF
11249rm -f conftest.$ac_objext
7a197a62
AK
11250if { (ac_try="$ac_compile"
11251case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254esac
ec6a6fbe
AK
11255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11256$as_echo "$ac_try_echo") >&5
7a197a62 11257 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11258 ac_status=$?
8a2fc586
AK
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
ec6a6fbe 11262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11267 ac_header_compiler=yes
11268else
ec6a6fbe 11269 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11270sed 's/^/| /' conftest.$ac_ext >&5
11271
7a197a62 11272 ac_header_compiler=no
ad6254c5 11273fi
7a197a62
AK
11274
11275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11276{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11278
11279# Is the header present?
ec6a6fbe
AK
11280{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11281$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11282cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#include <$ac_header>
11289_ACEOF
7a197a62
AK
11290if { (ac_try="$ac_cpp conftest.$ac_ext"
11291case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
ec6a6fbe
AK
11295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11296$as_echo "$ac_try_echo") >&5
7a197a62 11297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
ec6a6fbe 11302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11303 (exit $ac_status); } >/dev/null && {
11304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 }; then
ad6254c5
AK
11307 ac_header_preproc=yes
11308else
ec6a6fbe 11309 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 ac_header_preproc=no
11313fi
7a197a62 11314
ad6254c5 11315rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11316{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11318
11319# So? What about this header?
8a2fc586
AK
11320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321 yes:no: )
ec6a6fbe
AK
11322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11323$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11325$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11326 ac_header_preproc=yes
ad6254c5 11327 ;;
8a2fc586 11328 no:yes:* )
ec6a6fbe
AK
11329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11330$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11332$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11334$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11336$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11338$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11340$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11341
ad6254c5
AK
11342 ;;
11343esac
ec6a6fbe
AK
11344{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11345$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11347 $as_echo_n "(cached) " >&6
ad6254c5 11348else
8a2fc586 11349 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11350fi
ec6a6fbe
AK
11351ac_res=`eval 'as_val=${'$as_ac_Header'}
11352 $as_echo "$as_val"'`
11353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11354$as_echo "$ac_res" >&6; }
ad6254c5
AK
11355
11356fi
ec6a6fbe
AK
11357as_val=`eval 'as_val=${'$as_ac_Header'}
11358 $as_echo "$as_val"'`
11359 if test "x$as_val" = x""yes; then
ad6254c5 11360 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11362_ACEOF
11363
11364else
ec6a6fbe
AK
11365 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11366$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11367 { (exit 1); exit 1; }; }
795ca3e5
AK
11368fi
11369
ad6254c5
AK
11370done
11371
11372
795ca3e5 11373
8106cdd5 11374
ad6254c5
AK
11375
11376
11377for ac_func in dup2 getmntent memmove select socket
11378do
ec6a6fbe
AK
11379as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11381$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11382if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11383 $as_echo_n "(cached) " >&6
795ca3e5 11384else
ad6254c5 11385 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11386/* confdefs.h. */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */
8a2fc586
AK
11391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393#define $ac_func innocuous_$ac_func
11394
795ca3e5 11395/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
8a2fc586 11399
ad6254c5
AK
11400#ifdef __STDC__
11401# include <limits.h>
11402#else
11403# include <assert.h>
11404#endif
8a2fc586
AK
11405
11406#undef $ac_func
11407
7a197a62
AK
11408/* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11411#ifdef __cplusplus
11412extern "C"
ad6254c5 11413#endif
ad6254c5 11414char $ac_func ();
795ca3e5
AK
11415/* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
7a197a62 11418#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11419choke me
795ca3e5
AK
11420#endif
11421
ad6254c5
AK
11422int
11423main ()
11424{
7a197a62 11425return $ac_func ();
ad6254c5
AK
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11431if { (ac_try="$ac_link"
11432case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
ec6a6fbe
AK
11436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437$as_echo "$ac_try_echo") >&5
7a197a62 11438 (eval "$ac_link") 2>conftest.er1
ad6254c5 11439 ac_status=$?
8a2fc586
AK
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
ec6a6fbe 11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
ec6a6fbe
AK
11447 } && test -s conftest$ac_exeext && {
11448 test "$cross_compiling" = yes ||
11449 $as_test_x conftest$ac_exeext
11450 }; then
ad6254c5 11451 eval "$as_ac_var=yes"
795ca3e5 11452else
ec6a6fbe 11453 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
7a197a62 11456 eval "$as_ac_var=no"
80992638 11457fi
7a197a62 11458
ec6a6fbe 11459rm -rf conftest.dSYM
25fbec5b 11460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11461 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11462fi
ec6a6fbe
AK
11463ac_res=`eval 'as_val=${'$as_ac_var'}
11464 $as_echo "$as_val"'`
11465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11466$as_echo "$ac_res" >&6; }
11467as_val=`eval 'as_val=${'$as_ac_var'}
11468 $as_echo "$as_val"'`
11469 if test "x$as_val" = x""yes; then
ad6254c5 11470 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11472_ACEOF
80992638
AK
11473
11474else
ec6a6fbe
AK
11475 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11476$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11477 { (exit 1); exit 1; }; }
8106cdd5 11478fi
ad6254c5 11479done
795ca3e5 11480
25fbec5b
AK
11481 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11482# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11483{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11484$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11485if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11486 $as_echo_n "(cached) " >&6
25fbec5b
AK
11487else
11488 ac_func_search_save_LIBS=$LIBS
11489cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
80992638 11495
7a197a62
AK
11496/* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
ad6254c5 11498 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11499#ifdef __cplusplus
11500extern "C"
11501#endif
25fbec5b 11502char getmntent ();
ad6254c5
AK
11503int
11504main ()
11505{
25fbec5b 11506return getmntent ();
ad6254c5
AK
11507 ;
11508 return 0;
11509}
11510_ACEOF
25fbec5b
AK
11511for ac_lib in '' sun seq gen; do
11512 if test -z "$ac_lib"; then
11513 ac_res="none required"
11514 else
11515 ac_res=-l$ac_lib
11516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11517 fi
11518 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11519if { (ac_try="$ac_link"
11520case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
ec6a6fbe
AK
11524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11525$as_echo "$ac_try_echo") >&5
7a197a62 11526 (eval "$ac_link") 2>conftest.er1
ad6254c5 11527 ac_status=$?
8a2fc586
AK
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
ec6a6fbe 11531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
ec6a6fbe
AK
11535 } && test -s conftest$ac_exeext && {
11536 test "$cross_compiling" = yes ||
11537 $as_test_x conftest$ac_exeext
11538 }; then
25fbec5b 11539 ac_cv_search_getmntent=$ac_res
80992638 11540else
ec6a6fbe 11541 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
25fbec5b 11544
795ca3e5
AK
11545fi
11546
ec6a6fbe 11547rm -rf conftest.dSYM
25fbec5b
AK
11548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext
11550 if test "${ac_cv_search_getmntent+set}" = set; then
11551 break
795ca3e5 11552fi
25fbec5b
AK
11553done
11554if test "${ac_cv_search_getmntent+set}" = set; then
11555 :
11556else
11557 ac_cv_search_getmntent=no
11558fi
11559rm conftest.$ac_ext
11560LIBS=$ac_func_search_save_LIBS
11561fi
ec6a6fbe
AK
11562{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11563$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11564ac_res=$ac_cv_search_getmntent
11565if test "$ac_res" != no; then
11566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11567 ac_cv_func_getmntent=yes
11568
11569cat >>confdefs.h <<\_ACEOF
9c961554 11570#define HAVE_GETMNTENT 1
ad6254c5 11571_ACEOF
795ca3e5 11572
25fbec5b
AK
11573else
11574 ac_cv_func_getmntent=no
795ca3e5 11575fi
795ca3e5
AK
11576
11577
ad6254c5
AK
11578# AC_FUNC_REALLOC
11579
11580
11581for ac_header in sys/select.h sys/socket.h
11582do
ec6a6fbe 11583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11586$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11588 $as_echo_n "(cached) " >&6
ad6254c5 11589fi
ec6a6fbe
AK
11590ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593$as_echo "$ac_res" >&6; }
795ca3e5 11594else
ad6254c5 11595 # Is the header compilable?
ec6a6fbe
AK
11596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11598cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604$ac_includes_default
11605#include <$ac_header>
11606_ACEOF
11607rm -f conftest.$ac_objext
7a197a62
AK
11608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
ec6a6fbe
AK
11613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614$as_echo "$ac_try_echo") >&5
7a197a62 11615 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11616 ac_status=$?
8a2fc586
AK
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
ec6a6fbe 11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest.$ac_objext; then
ad6254c5 11625 ac_header_compiler=yes
80992638 11626else
ec6a6fbe 11627 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
7a197a62 11630 ac_header_compiler=no
ad6254c5 11631fi
7a197a62
AK
11632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11636
11637# Is the header present?
ec6a6fbe
AK
11638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11640cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#include <$ac_header>
11647_ACEOF
7a197a62
AK
11648if { (ac_try="$ac_cpp conftest.$ac_ext"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
ec6a6fbe
AK
11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654$as_echo "$ac_try_echo") >&5
7a197a62 11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
ec6a6fbe 11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11661 (exit $ac_status); } >/dev/null && {
11662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 }; then
ad6254c5
AK
11665 ac_header_preproc=yes
11666else
ec6a6fbe 11667 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_header_preproc=no
11671fi
7a197a62 11672
ad6254c5 11673rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11675$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11676
11677# So? What about this header?
8a2fc586
AK
11678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 yes:no: )
ec6a6fbe
AK
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11684 ac_header_preproc=yes
ad6254c5 11685 ;;
8a2fc586 11686 no:yes:* )
ec6a6fbe
AK
11687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11690$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11694$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11699
ad6254c5
AK
11700 ;;
11701esac
ec6a6fbe
AK
11702{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11703$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11705 $as_echo_n "(cached) " >&6
ad6254c5 11706else
8a2fc586 11707 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11708fi
ec6a6fbe
AK
11709ac_res=`eval 'as_val=${'$as_ac_Header'}
11710 $as_echo "$as_val"'`
11711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11712$as_echo "$ac_res" >&6; }
8106cdd5 11713
795ca3e5 11714fi
ec6a6fbe
AK
11715as_val=`eval 'as_val=${'$as_ac_Header'}
11716 $as_echo "$as_val"'`
11717 if test "x$as_val" = x""yes; then
ad6254c5 11718 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11720_ACEOF
11721
795ca3e5
AK
11722fi
11723
ad6254c5
AK
11724done
11725
ec6a6fbe
AK
11726{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11727$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11728if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11729 $as_echo_n "(cached) " >&6
26e7f2e0 11730else
ad6254c5 11731 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11732 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11733 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11734 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11735/* confdefs.h. */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h. */
11740$ac_includes_default
25fbec5b 11741#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11742# include <sys/select.h>
11743#endif
25fbec5b 11744#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11745# include <sys/socket.h>
11746#endif
11747
11748int
11749main ()
11750{
11751extern int select ($ac_arg1,
8a2fc586
AK
11752 $ac_arg234, $ac_arg234, $ac_arg234,
11753 $ac_arg5);
ad6254c5
AK
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext
7a197a62
AK
11759if { (ac_try="$ac_compile"
11760case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
ec6a6fbe
AK
11764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11765$as_echo "$ac_try_echo") >&5
7a197a62 11766 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11767 ac_status=$?
8a2fc586
AK
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
ec6a6fbe 11771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11776 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11777else
ec6a6fbe 11778 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
7a197a62 11781
ad6254c5 11782fi
7a197a62
AK
11783
11784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11785 done
11786 done
11787done
11788# Provide a safe default value.
11789: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11790
26e7f2e0 11791fi
ec6a6fbe
AK
11792{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11793$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11794ac_save_IFS=$IFS; IFS=','
11795set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11796IFS=$ac_save_IFS
11797shift
11798
11799cat >>confdefs.h <<_ACEOF
11800#define SELECT_TYPE_ARG1 $1
11801_ACEOF
11802
11803
11804cat >>confdefs.h <<_ACEOF
11805#define SELECT_TYPE_ARG234 ($2)
11806_ACEOF
11807
11808
11809cat >>confdefs.h <<_ACEOF
11810#define SELECT_TYPE_ARG5 ($3)
11811_ACEOF
11812
80992638 11813rm -f conftest*
80992638 11814
8106cdd5 11815fi
ad6254c5 11816
ad6254c5
AK
11817if test x$CLUSTER != xnone; then
11818
11819
11820for ac_header in sys/socket.h sys/un.h
b896caa1 11821do
ec6a6fbe 11822as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11825$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11827 $as_echo_n "(cached) " >&6
ad6254c5 11828fi
ec6a6fbe
AK
11829ac_res=`eval 'as_val=${'$as_ac_Header'}
11830 $as_echo "$as_val"'`
11831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11832$as_echo "$ac_res" >&6; }
ad6254c5
AK
11833else
11834 # Is the header compilable?
ec6a6fbe
AK
11835{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11836$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11837cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11838/* confdefs.h. */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h. */
11843$ac_includes_default
11844#include <$ac_header>
11845_ACEOF
11846rm -f conftest.$ac_objext
7a197a62
AK
11847if { (ac_try="$ac_compile"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
ec6a6fbe
AK
11852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853$as_echo "$ac_try_echo") >&5
7a197a62 11854 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11855 ac_status=$?
8a2fc586
AK
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
ec6a6fbe 11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11864 ac_header_compiler=yes
11865else
ec6a6fbe 11866 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
7a197a62 11869 ac_header_compiler=no
ad6254c5 11870fi
7a197a62
AK
11871
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11873{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11874$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11875
11876# Is the header present?
ec6a6fbe
AK
11877{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11878$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11879cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
11885#include <$ac_header>
11886_ACEOF
7a197a62
AK
11887if { (ac_try="$ac_cpp conftest.$ac_ext"
11888case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
ec6a6fbe
AK
11892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11893$as_echo "$ac_try_echo") >&5
7a197a62 11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
ec6a6fbe 11899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11900 (exit $ac_status); } >/dev/null && {
11901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 }; then
ad6254c5
AK
11904 ac_header_preproc=yes
11905else
ec6a6fbe 11906 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11907sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 ac_header_preproc=no
11910fi
7a197a62 11911
ad6254c5 11912rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11913{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11915
11916# So? What about this header?
8a2fc586
AK
11917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918 yes:no: )
ec6a6fbe
AK
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11923 ac_header_preproc=yes
ad6254c5 11924 ;;
8a2fc586 11925 no:yes:* )
ec6a6fbe
AK
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11938
ad6254c5
AK
11939 ;;
11940esac
ec6a6fbe
AK
11941{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11942$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11944 $as_echo_n "(cached) " >&6
ad6254c5 11945else
8a2fc586 11946 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11947fi
ec6a6fbe
AK
11948ac_res=`eval 'as_val=${'$as_ac_Header'}
11949 $as_echo "$as_val"'`
11950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951$as_echo "$ac_res" >&6; }
ad6254c5
AK
11952
11953fi
ec6a6fbe
AK
11954as_val=`eval 'as_val=${'$as_ac_Header'}
11955 $as_echo "$as_val"'`
11956 if test "x$as_val" = x""yes; then
ad6254c5 11957 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11959_ACEOF
11960
80992638 11961else
ec6a6fbe
AK
11962 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11963$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11964 { (exit 1); exit 1; }; }
b896caa1 11965fi
ad6254c5 11966
b896caa1
AK
11967done
11968
11969
ad6254c5
AK
11970for ac_func in socket
11971do
ec6a6fbe
AK
11972as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11974$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11976 $as_echo_n "(cached) " >&6
795ca3e5 11977else
ad6254c5 11978 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11979/* confdefs.h. */
11980_ACEOF
11981cat confdefs.h >>conftest.$ac_ext
11982cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h. */
8a2fc586
AK
11984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986#define $ac_func innocuous_$ac_func
11987
ad6254c5
AK
11988/* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char $ac_func (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
8a2fc586 11992
ad6254c5
AK
11993#ifdef __STDC__
11994# include <limits.h>
11995#else
11996# include <assert.h>
11997#endif
8a2fc586
AK
11998
11999#undef $ac_func
12000
7a197a62
AK
12001/* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12004#ifdef __cplusplus
12005extern "C"
ad6254c5 12006#endif
ad6254c5
AK
12007char $ac_func ();
12008/* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
7a197a62 12011#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 12012choke me
ad6254c5
AK
12013#endif
12014
12015int
12016main ()
12017{
7a197a62 12018return $ac_func ();
ad6254c5
AK
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12024if { (ac_try="$ac_link"
12025case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
ec6a6fbe
AK
12029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12030$as_echo "$ac_try_echo") >&5
7a197a62 12031 (eval "$ac_link") 2>conftest.er1
ad6254c5 12032 ac_status=$?
8a2fc586
AK
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
ec6a6fbe 12036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12037 (exit $ac_status); } && {
12038 test -z "$ac_c_werror_flag" ||
12039 test ! -s conftest.err
ec6a6fbe
AK
12040 } && test -s conftest$ac_exeext && {
12041 test "$cross_compiling" = yes ||
12042 $as_test_x conftest$ac_exeext
12043 }; then
ad6254c5
AK
12044 eval "$as_ac_var=yes"
12045else
ec6a6fbe 12046 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
7a197a62 12049 eval "$as_ac_var=no"
ad6254c5 12050fi
7a197a62 12051
ec6a6fbe 12052rm -rf conftest.dSYM
25fbec5b 12053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12054 conftest$ac_exeext conftest.$ac_ext
ad6254c5 12055fi
ec6a6fbe
AK
12056ac_res=`eval 'as_val=${'$as_ac_var'}
12057 $as_echo "$as_val"'`
12058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12059$as_echo "$ac_res" >&6; }
12060as_val=`eval 'as_val=${'$as_ac_var'}
12061 $as_echo "$as_val"'`
12062 if test "x$as_val" = x""yes; then
ad6254c5 12063 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
12065_ACEOF
12066
12067else
ec6a6fbe
AK
12068 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12069$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
12070 { (exit 1); exit 1; }; }
12071fi
12072done
12073
12074fi
12075
12076if test x$HAVE_LIBDL = xyes; then
12077
12078for ac_header in dlfcn.h
12079do
ec6a6fbe 12080as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12083$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12085 $as_echo_n "(cached) " >&6
ad6254c5 12086fi
ec6a6fbe
AK
12087ac_res=`eval 'as_val=${'$as_ac_Header'}
12088 $as_echo "$as_val"'`
12089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12090$as_echo "$ac_res" >&6; }
ad6254c5
AK
12091else
12092 # Is the header compilable?
ec6a6fbe
AK
12093{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12094$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12095cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
12101$ac_includes_default
12102#include <$ac_header>
12103_ACEOF
12104rm -f conftest.$ac_objext
7a197a62
AK
12105if { (ac_try="$ac_compile"
12106case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
ec6a6fbe
AK
12110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111$as_echo "$ac_try_echo") >&5
7a197a62 12112 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12113 ac_status=$?
8a2fc586
AK
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
ec6a6fbe 12117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12118 (exit $ac_status); } && {
12119 test -z "$ac_c_werror_flag" ||
12120 test ! -s conftest.err
12121 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12122 ac_header_compiler=yes
12123else
ec6a6fbe 12124 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
7a197a62 12127 ac_header_compiler=no
ad6254c5 12128fi
7a197a62
AK
12129
12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12131{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12133
12134# Is the header present?
ec6a6fbe
AK
12135{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12137cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143#include <$ac_header>
12144_ACEOF
7a197a62
AK
12145if { (ac_try="$ac_cpp conftest.$ac_ext"
12146case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
ec6a6fbe
AK
12150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12151$as_echo "$ac_try_echo") >&5
7a197a62 12152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
ec6a6fbe 12157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12158 (exit $ac_status); } >/dev/null && {
12159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 }; then
ad6254c5
AK
12162 ac_header_preproc=yes
12163else
ec6a6fbe 12164 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12165sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ac_header_preproc=no
12168fi
7a197a62 12169
ad6254c5 12170rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12171{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12173
12174# So? What about this header?
8a2fc586
AK
12175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 yes:no: )
ec6a6fbe
AK
12177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12180$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12181 ac_header_preproc=yes
ad6254c5 12182 ;;
8a2fc586 12183 no:yes:* )
ec6a6fbe
AK
12184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12185$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12187$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12189$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12191$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12193$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12195$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12196
ad6254c5
AK
12197 ;;
12198esac
ec6a6fbe
AK
12199{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12200$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12202 $as_echo_n "(cached) " >&6
ad6254c5 12203else
8a2fc586 12204 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12205fi
ec6a6fbe
AK
12206ac_res=`eval 'as_val=${'$as_ac_Header'}
12207 $as_echo "$as_val"'`
12208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12209$as_echo "$ac_res" >&6; }
80992638 12210
8106cdd5 12211fi
ec6a6fbe
AK
12212as_val=`eval 'as_val=${'$as_ac_Header'}
12213 $as_echo "$as_val"'`
12214 if test "x$as_val" = x""yes; then
ad6254c5 12215 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12217_ACEOF
795ca3e5
AK
12218
12219else
ec6a6fbe
AK
12220 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12221$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12222 { (exit 1); exit 1; }; }
795ca3e5
AK
12223fi
12224
ad6254c5 12225done
80992638 12226
ad6254c5 12227fi
80992638 12228
ad6254c5 12229if test x$INTL = xyes; then
83912faa 12230
ad6254c5
AK
12231for ac_header in libintl.h
12232do
ec6a6fbe 12233as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12236$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12238 $as_echo_n "(cached) " >&6
ad6254c5 12239fi
ec6a6fbe
AK
12240ac_res=`eval 'as_val=${'$as_ac_Header'}
12241 $as_echo "$as_val"'`
12242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12243$as_echo "$ac_res" >&6; }
83912faa 12244else
ad6254c5 12245 # Is the header compilable?
ec6a6fbe
AK
12246{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12247$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12248cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
12254$ac_includes_default
12255#include <$ac_header>
12256_ACEOF
12257rm -f conftest.$ac_objext
7a197a62
AK
12258if { (ac_try="$ac_compile"
12259case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
ec6a6fbe
AK
12263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12264$as_echo "$ac_try_echo") >&5
7a197a62 12265 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12266 ac_status=$?
8a2fc586
AK
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
ec6a6fbe 12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12275 ac_header_compiler=yes
12276else
ec6a6fbe 12277 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
7a197a62 12280 ac_header_compiler=no
ad6254c5 12281fi
7a197a62
AK
12282
12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12284{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12286
12287# Is the header present?
ec6a6fbe
AK
12288{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12290cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
12296#include <$ac_header>
12297_ACEOF
7a197a62
AK
12298if { (ac_try="$ac_cpp conftest.$ac_ext"
12299case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
ec6a6fbe
AK
12303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304$as_echo "$ac_try_echo") >&5
7a197a62 12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
ec6a6fbe 12310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12311 (exit $ac_status); } >/dev/null && {
12312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 }; then
ad6254c5
AK
12315 ac_header_preproc=yes
12316else
ec6a6fbe 12317 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_header_preproc=no
12321fi
7a197a62 12322
ad6254c5 12323rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12324{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12325$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12326
12327# So? What about this header?
8a2fc586
AK
12328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12329 yes:no: )
ec6a6fbe
AK
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12331$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12333$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12334 ac_header_preproc=yes
ad6254c5 12335 ;;
8a2fc586 12336 no:yes:* )
ec6a6fbe
AK
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12338$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12340$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12342$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12344$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12346$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12348$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12349
ad6254c5
AK
12350 ;;
12351esac
ec6a6fbe
AK
12352{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12353$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12355 $as_echo_n "(cached) " >&6
80992638 12356else
8a2fc586 12357 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12358fi
ec6a6fbe
AK
12359ac_res=`eval 'as_val=${'$as_ac_Header'}
12360 $as_echo "$as_val"'`
12361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12362$as_echo "$ac_res" >&6; }
83912faa 12363
69792976 12364fi
ec6a6fbe
AK
12365as_val=`eval 'as_val=${'$as_ac_Header'}
12366 $as_echo "$as_val"'`
12367 if test "x$as_val" = x""yes; then
ad6254c5 12368 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12370_ACEOF
69792976 12371
69792976 12372else
ec6a6fbe
AK
12373 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12374$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12375 { (exit 1); exit 1; }; }
80992638
AK
12376fi
12377
ad6254c5 12378done
69792976 12379
ad6254c5
AK
12380fi
12381
ad6254c5
AK
12382if test x$HAVE_SELINUX = xyes; then
12383
12384for ac_header in selinux/selinux.h
12385do
ec6a6fbe 12386as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12389$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12391 $as_echo_n "(cached) " >&6
ad6254c5 12392fi
ec6a6fbe
AK
12393ac_res=`eval 'as_val=${'$as_ac_Header'}
12394 $as_echo "$as_val"'`
12395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12396$as_echo "$ac_res" >&6; }
4a7f3eb2 12397else
ad6254c5 12398 # Is the header compilable?
ec6a6fbe
AK
12399{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12400$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12401cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407$ac_includes_default
12408#include <$ac_header>
12409_ACEOF
12410rm -f conftest.$ac_objext
7a197a62
AK
12411if { (ac_try="$ac_compile"
12412case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415esac
ec6a6fbe
AK
12416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12417$as_echo "$ac_try_echo") >&5
7a197a62 12418 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12419 ac_status=$?
8a2fc586
AK
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
ec6a6fbe 12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12428 ac_header_compiler=yes
12429else
ec6a6fbe 12430 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
7a197a62 12433 ac_header_compiler=no
ad6254c5 12434fi
7a197a62
AK
12435
12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12437{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12438$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12439
12440# Is the header present?
ec6a6fbe
AK
12441{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12442$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12443cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
12449#include <$ac_header>
12450_ACEOF
7a197a62
AK
12451if { (ac_try="$ac_cpp conftest.$ac_ext"
12452case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455esac
ec6a6fbe
AK
12456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12457$as_echo "$ac_try_echo") >&5
7a197a62 12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
ec6a6fbe 12463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
ad6254c5
AK
12468 ac_header_preproc=yes
12469else
ec6a6fbe 12470 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_preproc=no
12474fi
7a197a62 12475
ad6254c5 12476rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12477{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12479
12480# So? What about this header?
8a2fc586
AK
12481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12482 yes:no: )
ec6a6fbe
AK
12483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12487 ac_header_preproc=yes
ad6254c5 12488 ;;
8a2fc586 12489 no:yes:* )
ec6a6fbe
AK
12490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12502
ad6254c5
AK
12503 ;;
12504esac
ec6a6fbe
AK
12505{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12506$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12508 $as_echo_n "(cached) " >&6
ad6254c5 12509else
8a2fc586 12510 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12511fi
ec6a6fbe
AK
12512ac_res=`eval 'as_val=${'$as_ac_Header'}
12513 $as_echo "$as_val"'`
12514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12515$as_echo "$ac_res" >&6; }
4a7f3eb2 12516
ad6254c5 12517fi
ec6a6fbe
AK
12518as_val=`eval 'as_val=${'$as_ac_Header'}
12519 $as_echo "$as_val"'`
12520 if test "x$as_val" = x""yes; then
ad6254c5 12521 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12522#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12523_ACEOF
0a62c911 12524
0a62c911 12525else
ec6a6fbe
AK
12526 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12527$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12528 { (exit 1); exit 1; }; }
80992638
AK
12529fi
12530
ad6254c5 12531done
0a62c911 12532
ad6254c5 12533fi
0a62c911 12534
a5f46f6a
AK
12535if test x$UDEV_SYNC = xyes; then
12536
12537
12538for ac_header in sys/ipc.h sys/sem.h
12539do
12540as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12543$as_echo_n "checking for $ac_header... " >&6; }
12544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12545 $as_echo_n "(cached) " >&6
12546fi
12547ac_res=`eval 'as_val=${'$as_ac_Header'}
12548 $as_echo "$as_val"'`
12549 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12550$as_echo "$ac_res" >&6; }
12551else
12552 # Is the header compilable?
12553{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12554$as_echo_n "checking $ac_header usability... " >&6; }
12555cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561$ac_includes_default
12562#include <$ac_header>
12563_ACEOF
12564rm -f conftest.$ac_objext
12565if { (ac_try="$ac_compile"
12566case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12571$as_echo "$ac_try_echo") >&5
12572 (eval "$ac_compile") 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } && {
12579 test -z "$ac_c_werror_flag" ||
12580 test ! -s conftest.err
12581 } && test -s conftest.$ac_objext; then
12582 ac_header_compiler=yes
12583else
12584 $as_echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ac_header_compiler=no
12588fi
12589
12590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12592$as_echo "$ac_header_compiler" >&6; }
12593
12594# Is the header present?
12595{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12596$as_echo_n "checking $ac_header presence... " >&6; }
12597cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603#include <$ac_header>
12604_ACEOF
12605if { (ac_try="$ac_cpp conftest.$ac_ext"
12606case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609esac
12610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12611$as_echo "$ac_try_echo") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev/null && {
12619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12620 test ! -s conftest.err
12621 }; then
12622 ac_header_preproc=yes
12623else
12624 $as_echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ac_header_preproc=no
12628fi
12629
12630rm -f conftest.err conftest.$ac_ext
12631{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12632$as_echo "$ac_header_preproc" >&6; }
12633
12634# So? What about this header?
12635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12636 yes:no: )
12637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12638$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12640$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12641 ac_header_preproc=yes
12642 ;;
12643 no:yes:* )
12644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12647$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12649$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12651$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12653$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12655$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12656
12657 ;;
12658esac
12659{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12660$as_echo_n "checking for $ac_header... " >&6; }
12661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12662 $as_echo_n "(cached) " >&6
12663else
12664 eval "$as_ac_Header=\$ac_header_preproc"
12665fi
12666ac_res=`eval 'as_val=${'$as_ac_Header'}
12667 $as_echo "$as_val"'`
12668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12669$as_echo "$ac_res" >&6; }
12670
12671fi
12672as_val=`eval 'as_val=${'$as_ac_Header'}
12673 $as_echo "$as_val"'`
12674 if test "x$as_val" = x""yes; then
12675 cat >>confdefs.h <<_ACEOF
12676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12677_ACEOF
12678
12679else
12680 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12681$as_echo "$as_me: error: bailing out" >&2;}
12682 { (exit 1); exit 1; }; }
12683fi
12684
12685done
12686
12687fi
12688
a653923f
AK
12689################################################################################
12690# Extract the first word of "modprobe", so it can be a program name with args.
12691set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12692{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12694if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12695 $as_echo_n "(cached) " >&6
72b2cb61
AK
12696else
12697 case $MODPROBE_CMD in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703for as_dir in $PATH
12704do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12709 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12711 break 2
12712 fi
12713done
12714done
7a197a62 12715IFS=$as_save_IFS
72b2cb61
AK
12716
12717 ;;
12718esac
12719fi
12720MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12721if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12722 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12723$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12724else
ec6a6fbe
AK
12725 { $as_echo "$as_me:$LINENO: result: no" >&5
12726$as_echo "no" >&6; }
72b2cb61
AK
12727fi
12728
a653923f 12729
7a197a62 12730
a653923f 12731if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12732
12733cat >>confdefs.h <<_ACEOF
12734#define MODPROBE_CMD "$MODPROBE_CMD"
12735_ACEOF
12736
a653923f
AK
12737fi
12738
80992638 12739################################################################################
93bd259b
AK
12740
12741
12742if test "$BUILD_DMEVENTD" = yes; then
12743
12744# Check whether --with-dmeventd-pidfile was given.
12745if test "${with_dmeventd_pidfile+set}" = set; then
12746 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12747#define DMEVENTD_PIDFILE "$withval"
12748_ACEOF
12749
12750else
12751 cat >>confdefs.h <<_ACEOF
12752#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12753_ACEOF
12754
12755fi
12756
12757fi
12758
12759
12760
12761if test "$BUILD_DMEVENTD" = yes; then
12762 dmeventd_prefix="$exec_prefix"
12763 if test "x$dmeventd_prefix" = "xNONE"; then
12764 dmeventd_prefix="$prefix"
12765 fi
12766 if test "x$dmeventd_prefix" = "xNONE"; then
12767 dmeventd_prefix=""
12768 fi
12769
12770# Check whether --with-dmeventd-path was given.
12771if test "${with_dmeventd_path+set}" = set; then
12772 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12773#define DMEVENTD_PATH "$withval"
12774_ACEOF
12775
12776else
12777 cat >>confdefs.h <<_ACEOF
12778#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12779_ACEOF
12780
12781fi
12782
12783fi
12784
12785################################################################################
ec6a6fbe
AK
12786{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12787$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12788
12789# Check whether --with-interface was given.
12790if test "${with_interface+set}" = set; then
12791 withval=$with_interface; interface="$withval"
12792else
12793 interface=ioctl
12794fi
12795
12796if [ "x$interface" != xioctl ];
12797then
ec6a6fbe
AK
12798 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12799$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12800 { (exit 1); exit 1; }; }
12801fi
ec6a6fbe
AK
12802{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12803$as_echo "$interface" >&6; }
93bd259b
AK
12804
12805################################################################################
2c44337b 12806DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12807
12808cat >>confdefs.h <<_ACEOF
12809#define DM_LIB_VERSION $DM_LIB_VERSION
12810_ACEOF
12811
12812
ec6a6fbe 12813DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12814
d0191583 12815LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12816
ec6a6fbe 12817VER=`cat VERSION`
bf456146 12818LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
12819VER=`echo "$VER" | $AWK '{print $1}'`
12820LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12821VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12822LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12823LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
12824LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
12825LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 12826
80992638 12827################################################################################
fae0c576 12828
83912faa 12829
795ca3e5
AK
12830
12831
12832
12833
12834
12835
5a52dca9 12836
8ef2b021 12837
199e490e 12838
69792976
AK
12839
12840
12841
d0191583 12842
69792976 12843
8106cdd5
AK
12844
12845
12846
12847
12848
d68a82ec 12849
036f273a 12850
7d1552c9 12851
8106cdd5 12852
0a62c911 12853
8106cdd5 12854
4a7f3eb2 12855
4922197a
AK
12856
12857
d8ac0fbc 12858
1a9ea74d 12859
8a2fc586
AK
12860
12861
d0191583 12862
93bd259b
AK
12863
12864
12865
12866
12867
d0191583
JM
12868
12869
12870
12871
12872
8a2fc586 12873
8ce0cbda 12874
8b1a3214 12875
ec6a6fbe
AK
12876
12877
12878
12879
e2997b73
AK
12880
12881
12882
12883
12884
12885
ec6a6fbe 12886
33f732c5 12887
66e941e8 12888
d3c8211f 12889
7e3fe830 12890
a5f46f6a
AK
12891
12892
12893
572fefeb 12894
bf456146 12895
68f2de6d
AK
12896
12897
80992638 12898################################################################################
a5f46f6a 12899ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 12900
ad6254c5 12901cat >confcache <<\_ACEOF
795ca3e5
AK
12902# This file is a shell script that caches the results of configure
12903# tests run on this system so they can be shared between configure
ad6254c5
AK
12904# scripts and configure runs, see configure's option --config-cache.
12905# It is not useful on other systems. If it contains results you don't
12906# want to keep, you may remove or edit it.
795ca3e5 12907#
ad6254c5
AK
12908# config.status only pays attention to the cache file if you give it
12909# the --recheck option to rerun configure.
795ca3e5 12910#
ad6254c5
AK
12911# `ac_cv_env_foo' variables (set or unset) will be overridden when
12912# loading this file, other *unset* `ac_cv_foo' will be assigned the
12913# following values.
12914
12915_ACEOF
12916
795ca3e5
AK
12917# The following way of writing the cache mishandles newlines in values,
12918# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12919# So, we kill variables containing newlines.
795ca3e5
AK
12920# Ultrix sh set writes to stderr and can't be redirected directly,
12921# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12922(
12923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12924 eval ac_val=\$$ac_var
12925 case $ac_val in #(
12926 *${as_nl}*)
12927 case $ac_var in #(
ec6a6fbe
AK
12928 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12930 esac
12931 case $ac_var in #(
12932 _ | IFS | as_nl) ;; #(
ec6a6fbe 12933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12934 *) $as_unset $ac_var ;;
12935 esac ;;
12936 esac
12937 done
12938
ad6254c5 12939 (set) 2>&1 |
7a197a62
AK
12940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12941 *${as_nl}ac_space=\ *)
ad6254c5
AK
12942 # `set' does not quote correctly, so add quotes (double-quote
12943 # substitution turns \\\\ into \\, and sed turns \\ into \).
12944 sed -n \
8a2fc586
AK
12945 "s/'/'\\\\''/g;
12946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12947 ;; #(
ad6254c5
AK
12948 *)
12949 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12951 ;;
7a197a62
AK
12952 esac |
12953 sort
12954) |
ad6254c5 12955 sed '
7a197a62 12956 /^ac_cv_env_/b end
ad6254c5 12957 t clear
7a197a62 12958 :clear
ad6254c5
AK
12959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12960 t end
7a197a62
AK
12961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12962 :end' >>confcache
12963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12964 if test -w "$cache_file"; then
12965 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12966 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12967$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12968 cat confcache >$cache_file
795ca3e5 12969 else
ec6a6fbe
AK
12970 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12971$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12972 fi
12973fi
12974rm -f confcache
12975
795ca3e5
AK
12976test "x$prefix" = xNONE && prefix=$ac_default_prefix
12977# Let make expand exec_prefix.
12978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12979
72b2cb61 12980DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12981
12982ac_libobjs=
12983ac_ltlibobjs=
12984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12985 # 1. Remove the extension, and $U if already installed.
7a197a62 12986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12989 # will be set to the directory where LIBOBJS objects are built.
12990 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12991 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12992done
12993LIBOBJS=$ac_libobjs
80992638 12994
ad6254c5
AK
12995LTLIBOBJS=$ac_ltlibobjs
12996
12997
12998
12999: ${CONFIG_STATUS=./config.status}
ec6a6fbe 13000ac_write_fail=0
ad6254c5
AK
13001ac_clean_files_save=$ac_clean_files
13002ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
13003{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13004$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13005cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13006#! $SHELL
13007# Generated by $as_me.
795ca3e5 13008# Run this file to recreate the current configuration.
795ca3e5 13009# Compiler output produced by configure, useful for debugging
ad6254c5
AK
13010# configure, is in config.log if it exists.
13011
13012debug=false
13013ac_cs_recheck=false
13014ac_cs_silent=false
13015SHELL=\${CONFIG_SHELL-$SHELL}
13016_ACEOF
13017
ec6a6fbe 13018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13019## --------------------- ##
13020## M4sh Initialization. ##
13021## --------------------- ##
13022
25fbec5b
AK
13023# Be more Bourne compatible
13024DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
13025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13026 emulate sh
13027 NULLCMD=:
ec6a6fbe 13028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
13029 # is contrary to our usage. Disable this feature.
13030 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
13031 setopt NO_GLOB_SUBST
13032else
25fbec5b
AK
13033 case `(set -o) 2>/dev/null` in
13034 *posix*) set -o posix ;;
13035esac
13036
7a197a62 13037fi
25fbec5b
AK
13038
13039
7a197a62
AK
13040
13041
13042# PATH needs CR
13043# Avoid depending upon Character Ranges.
13044as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13045as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13046as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13047as_cr_digits='0123456789'
13048as_cr_alnum=$as_cr_Letters$as_cr_digits
13049
ec6a6fbe
AK
13050as_nl='
13051'
13052export as_nl
13053# Printing a long string crashes Solaris 7 /usr/bin/printf.
13054as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13057if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13058 as_echo='printf %s\n'
13059 as_echo_n='printf %s'
13060else
13061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13062 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13063 as_echo_n='/usr/ucb/echo -n'
68f2de6d 13064 else
ec6a6fbe
AK
13065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13066 as_echo_n_body='eval
13067 arg=$1;
13068 case $arg in
13069 *"$as_nl"*)
13070 expr "X$arg" : "X\\(.*\\)$as_nl";
13071 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13072 esac;
13073 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13074 '
13075 export as_echo_n_body
13076 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 13077 fi
ec6a6fbe
AK
13078 export as_echo_body
13079 as_echo='sh -c $as_echo_body as_echo'
13080fi
13081
13082# The user is always right.
13083if test "${PATH_SEPARATOR+set}" != set; then
13084 PATH_SEPARATOR=:
13085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13087 PATH_SEPARATOR=';'
13088 }
ad6254c5
AK
13089fi
13090
13091# Support unset when possible.
8a2fc586 13092if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
13093 as_unset=unset
13094else
13095 as_unset=false
13096fi
8106cdd5 13097
ad6254c5 13098
7a197a62
AK
13099# IFS
13100# We need space, tab and new line, in precisely that order. Quoting is
13101# there to prevent editors from complaining about space-tab.
13102# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13103# splitting by setting IFS to empty value.)
7a197a62
AK
13104IFS=" "" $as_nl"
13105
13106# Find who we are. Look in the path if we contain no directory separator.
13107case $0 in
13108 *[\\/]* ) as_myself=$0 ;;
13109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110for as_dir in $PATH
13111do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13115done
13116IFS=$as_save_IFS
13117
13118 ;;
13119esac
13120# We did not find ourselves, most probably we were run as `sh COMMAND'
13121# in which case we are not to be found in the path.
13122if test "x$as_myself" = x; then
13123 as_myself=$0
13124fi
13125if test ! -f "$as_myself"; then
ec6a6fbe 13126 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
13127 { (exit 1); exit 1; }
13128fi
13129
ad6254c5 13130# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
13131for as_var in ENV MAIL MAILPATH
13132do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13133done
ad6254c5
AK
13134PS1='$ '
13135PS2='> '
13136PS4='+ '
13137
13138# NLS nuisances.
ec6a6fbe
AK
13139LC_ALL=C
13140export LC_ALL
13141LANGUAGE=C
13142export LANGUAGE
8106cdd5 13143
ad6254c5 13144# Required to use basename.
7a197a62
AK
13145if expr a : '\(a\)' >/dev/null 2>&1 &&
13146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13147 as_expr=expr
13148else
13149 as_expr=false
13150fi
8106cdd5 13151
7a197a62 13152if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
13153 as_basename=basename
13154else
13155 as_basename=false
13156fi
13157
13158
13159# Name of the executable.
7a197a62 13160as_me=`$as_basename -- "$0" ||
ad6254c5
AK
13161$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13162 X"$0" : 'X\(//\)$' \| \
7a197a62 13163 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13164$as_echo X/"$0" |
7a197a62
AK
13165 sed '/^.*\/\([^/][^/]*\)\/*$/{
13166 s//\1/
13167 q
13168 }
13169 /^X\/\(\/\/\)$/{
13170 s//\1/
13171 q
13172 }
13173 /^X\/\(\/\).*/{
13174 s//\1/
13175 q
13176 }
13177 s/.*/./; q'`
ad6254c5 13178
7a197a62
AK
13179# CDPATH.
13180$as_unset CDPATH
ad6254c5
AK
13181
13182
ad6254c5 13183
ad6254c5
AK
13184 as_lineno_1=$LINENO
13185 as_lineno_2=$LINENO
ad6254c5 13186 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 13187 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 13188
ad6254c5
AK
13189 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13190 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
13191 # line-number line after each line using $LINENO; the second 'sed'
13192 # does the real work. The second script uses 'N' to pair each
13193 # line-number line with the line containing $LINENO, and appends
13194 # trailing '-' during substitution so that $LINENO is not a special
13195 # case at line end.
ad6254c5 13196 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
13197 # scripts with optimization help from Paolo Bonzini. Blame Lee
13198 # E. McMahon (1931-1989) for sed's syntax. :-)
13199 sed -n '
13200 p
13201 /[$]LINENO/=
13202 ' <$as_myself |
ad6254c5 13203 sed '
7a197a62
AK
13204 s/[$]LINENO.*/&-/
13205 t lineno
13206 b
13207 :lineno
ad6254c5 13208 N
7a197a62
AK
13209 :loop
13210 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 13211 t loop
7a197a62 13212 s/-\n.*//
ad6254c5 13213 ' >$as_me.lineno &&
7a197a62 13214 chmod +x "$as_me.lineno" ||
ec6a6fbe 13215 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
13216 { (exit 1); exit 1; }; }
13217
13218 # Don't try to exec as it changes $[0], causing all sort of problems
13219 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
13220 # original and so on. Autoconf is especially sensitive to this).
13221 . "./$as_me.lineno"
ad6254c5
AK
13222 # Exit status is that of the last command.
13223 exit
13224}
13225
13226
7a197a62
AK
13227if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13228 as_dirname=dirname
13229else
13230 as_dirname=false
13231fi
13232
13233ECHO_C= ECHO_N= ECHO_T=
13234case `echo -n x` in
13235-n*)
13236 case `echo 'x\c'` in
13237 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13238 *) ECHO_C='\c';;
13239 esac;;
13240*)
13241 ECHO_N='-n';;
ad6254c5 13242esac
7a197a62
AK
13243if expr a : '\(a\)' >/dev/null 2>&1 &&
13244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13245 as_expr=expr
13246else
13247 as_expr=false
13248fi
80992638 13249
ad6254c5 13250rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13251if test -d conf$$.dir; then
13252 rm -f conf$$.dir/conf$$.file
13253else
13254 rm -f conf$$.dir
ec6a6fbe
AK
13255 mkdir conf$$.dir 2>/dev/null
13256fi
13257if (echo >conf$$.file) 2>/dev/null; then
13258 if ln -s conf$$.file conf$$ 2>/dev/null; then
13259 as_ln_s='ln -s'
13260 # ... but there are two gotchas:
13261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13263 # In both cases, we have to default to `cp -p'.
13264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13265 as_ln_s='cp -p'
13266 elif ln conf$$.file conf$$ 2>/dev/null; then
13267 as_ln_s=ln
13268 else
ad6254c5 13269 as_ln_s='cp -p'
ec6a6fbe 13270 fi
ad6254c5
AK
13271else
13272 as_ln_s='cp -p'
13273fi
7a197a62
AK
13274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13275rmdir conf$$.dir 2>/dev/null
8106cdd5 13276
ad6254c5
AK
13277if mkdir -p . 2>/dev/null; then
13278 as_mkdir_p=:
13279else
8a2fc586 13280 test -d ./-p && rmdir ./-p
ad6254c5
AK
13281 as_mkdir_p=false
13282fi
13283
25fbec5b
AK
13284if test -x / >/dev/null 2>&1; then
13285 as_test_x='test -x'
7a197a62 13286else
25fbec5b
AK
13287 if ls -dL / >/dev/null 2>&1; then
13288 as_ls_L_option=L
13289 else
13290 as_ls_L_option=
13291 fi
13292 as_test_x='
13293 eval sh -c '\''
13294 if test -d "$1"; then
ec6a6fbe 13295 test -d "$1/.";
25fbec5b
AK
13296 else
13297 case $1 in
ec6a6fbe 13298 -*)set "./$1";;
25fbec5b
AK
13299 esac;
13300 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13301 ???[sx]*):;;*)false;;esac;fi
13302 '\'' sh
13303 '
7a197a62 13304fi
25fbec5b 13305as_executable_p=$as_test_x
ad6254c5
AK
13306
13307# Sed expression to map a string onto a valid CPP name.
8a2fc586 13308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13309
13310# Sed expression to map a string onto a valid variable name.
8a2fc586 13311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13312
13313
ad6254c5
AK
13314exec 6>&1
13315
7a197a62 13316# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13317# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13318# values after options handling.
13319ac_log="
ad6254c5 13320This file was extended by $as_me, which was
ec6a6fbe 13321generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13322
13323 CONFIG_FILES = $CONFIG_FILES
13324 CONFIG_HEADERS = $CONFIG_HEADERS
13325 CONFIG_LINKS = $CONFIG_LINKS
13326 CONFIG_COMMANDS = $CONFIG_COMMANDS
13327 $ $0 $@
13328
7a197a62
AK
13329on `(hostname || uname -n) 2>/dev/null | sed 1q`
13330"
13331
ad6254c5
AK
13332_ACEOF
13333
ec6a6fbe
AK
13334case $ac_config_files in *"
13335"*) set x $ac_config_files; shift; ac_config_files=$*;;
13336esac
13337
13338case $ac_config_headers in *"
13339"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13340esac
13341
13342
13343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13344# Files that config.status was made for.
68f2de6d
AK
13345config_files="$ac_config_files"
13346config_headers="$ac_config_headers"
ad6254c5 13347
7a197a62 13348_ACEOF
ad6254c5 13349
ec6a6fbe 13350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13351ac_cs_usage="\
13352\`$as_me' instantiates files from templates according to the
13353current configuration.
13354
ec6a6fbe 13355Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13356
13357 -h, --help print this help, then exit
25fbec5b 13358 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13359 -q, --quiet, --silent
13360 do not print progress messages
ad6254c5
AK
13361 -d, --debug don't remove temporary files
13362 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13363 --file=FILE[:TEMPLATE]
13364 instantiate the configuration file FILE
13365 --header=FILE[:TEMPLATE]
13366 instantiate the configuration header FILE
ad6254c5
AK
13367
13368Configuration files:
13369$config_files
13370
72b2cb61
AK
13371Configuration headers:
13372$config_headers
13373
ad6254c5 13374Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13375
7a197a62 13376_ACEOF
ec6a6fbe 13377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13378ac_cs_version="\\
13379config.status
ec6a6fbe
AK
13380configured by $0, generated by GNU Autoconf 2.63,
13381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13382
ec6a6fbe 13383Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13384This config.status script is free software; the Free Software Foundation
13385gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13386
13387ac_pwd='$ac_pwd'
13388srcdir='$srcdir'
13389INSTALL='$INSTALL'
fddafd51 13390MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13391AWK='$AWK'
13392test -n "\$AWK" || AWK=awk
ad6254c5
AK
13393_ACEOF
13394
ec6a6fbe
AK
13395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396# The default lists apply if the user does not specify any file.
ad6254c5
AK
13397ac_need_defaults=:
13398while test $# != 0
13399do
13400 case $1 in
13401 --*=*)
7a197a62
AK
13402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13404 ac_shift=:
13405 ;;
7a197a62 13406 *)
ad6254c5
AK
13407 ac_option=$1
13408 ac_optarg=$2
13409 ac_shift=shift
13410 ;;
ad6254c5
AK
13411 esac
13412
13413 case $ac_option in
13414 # Handling of the options.
ad6254c5
AK
13415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13416 ac_cs_recheck=: ;;
7a197a62 13417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13418 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13419 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13420 debug=: ;;
13421 --file | --fil | --fi | --f )
13422 $ac_shift
ec6a6fbe
AK
13423 case $ac_optarg in
13424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13425 esac
13426 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13427 ac_need_defaults=false;;
13428 --header | --heade | --head | --hea )
13429 $ac_shift
ec6a6fbe
AK
13430 case $ac_optarg in
13431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13432 esac
13433 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13434 ac_need_defaults=false;;
7a197a62
AK
13435 --he | --h)
13436 # Conflict between --help and --header
ec6a6fbe 13437 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13438Try \`$0 --help' for more information." >&2
13439 { (exit 1); exit 1; }; };;
13440 --help | --hel | -h )
ec6a6fbe 13441 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13444 ac_cs_silent=: ;;
13445
13446 # This is an error.
ec6a6fbe 13447 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13448Try \`$0 --help' for more information." >&2
ad6254c5
AK
13449 { (exit 1); exit 1; }; } ;;
13450
7a197a62
AK
13451 *) ac_config_targets="$ac_config_targets $1"
13452 ac_need_defaults=false ;;
ad6254c5
AK
13453
13454 esac
13455 shift
13456done
13457
13458ac_configure_extra_args=
13459
13460if $ac_cs_silent; then
13461 exec 6>/dev/null
13462 ac_configure_extra_args="$ac_configure_extra_args --silent"
13463fi
13464
13465_ACEOF
ec6a6fbe 13466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13467if \$ac_cs_recheck; then
ec6a6fbe
AK
13468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13469 shift
13470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13471 CONFIG_SHELL='$SHELL'
7a197a62 13472 export CONFIG_SHELL
ec6a6fbe 13473 exec "\$@"
ad6254c5
AK
13474fi
13475
13476_ACEOF
ec6a6fbe 13477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13478exec 5>>config.log
13479{
13480 echo
13481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13482## Running $as_me. ##
13483_ASBOX
ec6a6fbe 13484 $as_echo "$ac_log"
7a197a62 13485} >&5
ad6254c5 13486
7a197a62 13487_ACEOF
ec6a6fbe 13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13489_ACEOF
ad6254c5 13490
ec6a6fbe 13491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13492
13493# Handling of arguments.
ad6254c5
AK
13494for ac_config_target in $ac_config_targets
13495do
7a197a62
AK
13496 case $ac_config_target in
13497 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13499 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13500 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13501 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13502 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13503 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13504 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13505 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13506 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13507 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13508 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13509 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13510 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13511 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13512 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13513 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13514 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13515 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13516 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13517 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 13518 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 13519 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
13520 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13521 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13522 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13523 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13524 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13525 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13526 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 13527 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 13528
ec6a6fbe
AK
13529 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13530$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13531 { (exit 1); exit 1; }; };;
80992638 13532 esac
ad6254c5
AK
13533done
13534
7a197a62 13535
ad6254c5
AK
13536# If the user did not use the arguments to specify the items to instantiate,
13537# then the envvar interface is used. Set only those that are not.
13538# We use the long form for the default assignment because of an extremely
13539# bizarre bug on SunOS 4.1.3.
13540if $ac_need_defaults; then
13541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13543fi
13544
13545# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13546# simply because there is no reason against having it here, and in addition,
ad6254c5 13547# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13548# Hook for its removal unless debugging.
13549# Note that there is a small window in which the directory will not be cleaned:
13550# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13551$debug ||
13552{
7a197a62
AK
13553 tmp=
13554 trap 'exit_status=$?
13555 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13556' 0
ad6254c5
AK
13557 trap '{ (exit 1); exit 1; }' 1 2 13 15
13558}
ad6254c5
AK
13559# Create a (secure) tmp directory for tmp files.
13560
13561{
7a197a62 13562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13563 test -n "$tmp" && test -d "$tmp"
13564} ||
13565{
7a197a62
AK
13566 tmp=./conf$$-$RANDOM
13567 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13568} ||
13569{
ec6a6fbe 13570 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13571 { (exit 1); exit 1; }
13572}
13573
ec6a6fbe
AK
13574# Set up the scripts for CONFIG_FILES section.
13575# No need to generate them if there are no CONFIG_FILES.
13576# This happens for instance with `./config.status config.h'.
1995c9ff 13577if test -n "$CONFIG_FILES"; then
7a197a62 13578
68f2de6d 13579
ec6a6fbe
AK
13580ac_cr='\r'
13581ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13582if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13583 ac_cs_awk_cr='\\r'
13584else
13585 ac_cs_awk_cr=$ac_cr
1995c9ff 13586fi
7a197a62 13587
ec6a6fbe 13588echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13589_ACEOF
7a197a62 13590
8106cdd5 13591
ec6a6fbe
AK
13592{
13593 echo "cat >conf$$subs.awk <<_ACEOF" &&
13594 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13595 echo "_ACEOF"
13596} >conf$$subs.sh ||
13597 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13598$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13599 { (exit 1); exit 1; }; }
13600ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13601ac_delim='%!_!# '
13602for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13603 . ./conf$$subs.sh ||
13604 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13605$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13606 { (exit 1); exit 1; }; }
13607
13608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13609 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13610 break
13611 elif $ac_last_try; then
ec6a6fbe
AK
13612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13614 { (exit 1); exit 1; }; }
13615 else
13616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13617 fi
13618done
ec6a6fbe
AK
13619rm -f conf$$subs.sh
13620
13621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13622cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13623_ACEOF
13624sed -n '
13625h
13626s/^/S["/; s/!.*/"]=/
13627p
13628g
13629s/^[^!]*!//
13630:repl
13631t repl
13632s/'"$ac_delim"'$//
13633t delim
13634:nl
13635h
13636s/\(.\{148\}\).*/\1/
13637t more1
13638s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13639p
13640n
13641b repl
13642:more1
13643s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13644p
13645g
13646s/.\{148\}//
13647t nl
13648:delim
13649h
13650s/\(.\{148\}\).*/\1/
13651t more2
13652s/["\\]/\\&/g; s/^/"/; s/$/"/
13653p
13654b
13655:more2
13656s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13657p
13658g
13659s/.\{148\}//
13660t delim
13661' <conf$$subs.awk | sed '
13662/^[^""]/{
13663 N
13664 s/\n//
13665}
13666' >>$CONFIG_STATUS || ac_write_fail=1
13667rm -f conf$$subs.awk
13668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13669_ACAWK
13670cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13671 for (key in S) S_is_set[key] = 1
13672 FS = "\a"
7a197a62 13673
ec6a6fbe
AK
13674}
13675{
13676 line = $ 0
13677 nfields = split(line, field, "@")
13678 substed = 0
13679 len = length(field[1])
13680 for (i = 2; i < nfields; i++) {
13681 key = field[i]
13682 keylen = length(key)
13683 if (S_is_set[key]) {
13684 value = S[key]
13685 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13686 len += length(value) + length(field[++i])
13687 substed = 1
13688 } else
13689 len += 1 + keylen
13690 }
13691
13692 print line
13693}
fddafd51 13694
ec6a6fbe 13695_ACAWK
1995c9ff 13696_ACEOF
ec6a6fbe
AK
13697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13698if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13700else
13701 cat
13702fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13703 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13704$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13705 { (exit 1); exit 1; }; }
7a197a62
AK
13706_ACEOF
13707
7a197a62
AK
13708# VPATH may cause trouble with some makes, so we remove $(srcdir),
13709# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13710# trailing colons and then remove the whole line if VPATH becomes empty
13711# (actually we leave an empty line to preserve line numbers).
13712if test "x$srcdir" = x.; then
13713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13714s/:*\$(srcdir):*/:/
13715s/:*\${srcdir}:*/:/
13716s/:*@srcdir@:*/:/
13717s/^\([^=]*=[ ]*\):*/\1/
13718s/:*$//
13719s/^[^=]*=[ ]*$//
13720}'
13721fi
13722
ec6a6fbe 13723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13724fi # test -n "$CONFIG_FILES"
13725
ec6a6fbe
AK
13726# Set up the scripts for CONFIG_HEADERS section.
13727# No need to generate them if there are no CONFIG_HEADERS.
13728# This happens for instance with `./config.status Makefile'.
13729if test -n "$CONFIG_HEADERS"; then
13730cat >"$tmp/defines.awk" <<\_ACAWK ||
13731BEGIN {
13732_ACEOF
13733
13734# Transform confdefs.h into an awk script `defines.awk', embedded as
13735# here-document in config.status, that substitutes the proper values into
13736# config.h.in to produce config.h.
13737
13738# Create a delimiter string that does not exist in confdefs.h, to ease
13739# handling of long lines.
13740ac_delim='%!_!# '
13741for ac_last_try in false false :; do
13742 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13743 if test -z "$ac_t"; then
13744 break
13745 elif $ac_last_try; then
13746 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13747$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13748 { (exit 1); exit 1; }; }
13749 else
13750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13751 fi
13752done
13753
13754# For the awk script, D is an array of macro values keyed by name,
13755# likewise P contains macro parameters if any. Preserve backslash
13756# newline sequences.
13757
13758ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13759sed -n '
13760s/.\{148\}/&'"$ac_delim"'/g
13761t rset
13762:rset
13763s/^[ ]*#[ ]*define[ ][ ]*/ /
13764t def
13765d
13766:def
13767s/\\$//
13768t bsnl
13769s/["\\]/\\&/g
13770s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13771D["\1"]=" \3"/p
13772s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13773d
13774:bsnl
13775s/["\\]/\\&/g
13776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13777D["\1"]=" \3\\\\\\n"\\/p
13778t cont
13779s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13780t cont
13781d
13782:cont
13783n
13784s/.\{148\}/&'"$ac_delim"'/g
13785t clear
13786:clear
13787s/\\$//
13788t bsnlc
13789s/["\\]/\\&/g; s/^/"/; s/$/"/p
13790d
13791:bsnlc
13792s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13793b cont
13794' <confdefs.h | sed '
13795s/'"$ac_delim"'/"\\\
13796"/g' >>$CONFIG_STATUS || ac_write_fail=1
13797
13798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13799 for (key in D) D_is_set[key] = 1
13800 FS = "\a"
13801}
13802/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13803 line = \$ 0
13804 split(line, arg, " ")
13805 if (arg[1] == "#") {
13806 defundef = arg[2]
13807 mac1 = arg[3]
13808 } else {
13809 defundef = substr(arg[1], 2)
13810 mac1 = arg[2]
13811 }
13812 split(mac1, mac2, "(") #)
13813 macro = mac2[1]
13814 prefix = substr(line, 1, index(line, defundef) - 1)
13815 if (D_is_set[macro]) {
13816 # Preserve the white space surrounding the "#".
13817 print prefix "define", macro P[macro] D[macro]
13818 next
13819 } else {
13820 # Replace #undef with comments. This is necessary, for example,
13821 # in the case of _POSIX_SOURCE, which is predefined and required
13822 # on some systems where configure will not decide to define it.
13823 if (defundef == "undef") {
13824 print "/*", prefix defundef, macro, "*/"
13825 next
13826 }
13827 }
13828}
13829{ print }
13830_ACAWK
13831_ACEOF
13832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13834$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13835 { (exit 1); exit 1; }; }
13836fi # test -n "$CONFIG_HEADERS"
13837
7a197a62 13838
ec6a6fbe
AK
13839eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13840shift
13841for ac_tag
7a197a62
AK
13842do
13843 case $ac_tag in
13844 :[FHLC]) ac_mode=$ac_tag; continue;;
13845 esac
13846 case $ac_mode$ac_tag in
13847 :[FHL]*:*);;
ec6a6fbe
AK
13848 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13849$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13850 { (exit 1); exit 1; }; };;
13851 :[FH]-) ac_tag=-:-;;
13852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13853 esac
13854 ac_save_IFS=$IFS
13855 IFS=:
13856 set x $ac_tag
13857 IFS=$ac_save_IFS
13858 shift
13859 ac_file=$1
13860 shift
13861
13862 case $ac_mode in
13863 :L) ac_source=$1;;
13864 :[FH])
13865 ac_file_inputs=
13866 for ac_f
13867 do
13868 case $ac_f in
13869 -) ac_f="$tmp/stdin";;
13870 *) # Look for the file first in the build tree, then in the source tree
13871 # (if the path is not absolute). The absolute path cannot be DOS-style,
13872 # because $ac_f cannot contain `:'.
13873 test -f "$ac_f" ||
13874 case $ac_f in
13875 [\\/$]*) false;;
13876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13877 esac ||
ec6a6fbe
AK
13878 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13879$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13880 { (exit 1); exit 1; }; };;
13881 esac
ec6a6fbe
AK
13882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13883 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13884 done
13885
13886 # Let's still pretend it is `configure' which instantiates (i.e., don't
13887 # use $as_me), people would be surprised to read:
13888 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13889 configure_input='Generated from '`
13890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13891 `' by configure.'
7a197a62
AK
13892 if test x"$ac_file" != x-; then
13893 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13894 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13895$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13896 fi
ec6a6fbe
AK
13897 # Neutralize special characters interpreted by sed in replacement strings.
13898 case $configure_input in #(
13899 *\&* | *\|* | *\\* )
13900 ac_sed_conf_input=`$as_echo "$configure_input" |
13901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13902 *) ac_sed_conf_input=$configure_input;;
13903 esac
7a197a62
AK
13904
13905 case $ac_tag in
ec6a6fbe
AK
13906 *:-:* | *:-) cat >"$tmp/stdin" \
13907 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13908$as_echo "$as_me: error: could not create $ac_file" >&2;}
13909 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13910 esac
13911 ;;
80992638 13912 esac
8106cdd5 13913
7a197a62 13914 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13916 X"$ac_file" : 'X\(//\)[^/]' \| \
13917 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13919$as_echo X"$ac_file" |
7a197a62
AK
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13921 s//\1/
13922 q
13923 }
13924 /^X\(\/\/\)[^/].*/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\/\)$/{
13929 s//\1/
13930 q
13931 }
13932 /^X\(\/\).*/{
13933 s//\1/
13934 q
13935 }
13936 s/.*/./; q'`
13937 { as_dir="$ac_dir"
13938 case $as_dir in #(
13939 -*) as_dir=./$as_dir;;
13940 esac
13941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13942 as_dirs=
7a197a62
AK
13943 while :; do
13944 case $as_dir in #(
ec6a6fbe 13945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13946 *) as_qdir=$as_dir;;
13947 esac
13948 as_dirs="'$as_qdir' $as_dirs"
13949 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13951 X"$as_dir" : 'X\(//\)[^/]' \| \
13952 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13954$as_echo X"$as_dir" |
7a197a62
AK
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)[^/].*/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\/\)$/{
13964 s//\1/
13965 q
13966 }
13967 /^X\(\/\).*/{
13968 s//\1/
13969 q
13970 }
13971 s/.*/./; q'`
13972 test -d "$as_dir" && break
ad6254c5 13973 done
7a197a62 13974 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13976$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13977 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13978 ac_builddir=.
13979
7a197a62
AK
13980case "$ac_dir" in
13981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13982*)
ec6a6fbe 13983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13984 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13986 case $ac_top_builddir_sub in
13987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13989 esac ;;
13990esac
13991ac_abs_top_builddir=$ac_pwd
13992ac_abs_builddir=$ac_pwd$ac_dir_suffix
13993# for backward compatibility:
13994ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13995
13996case $srcdir in
7a197a62 13997 .) # We are building in place.
ad6254c5 13998 ac_srcdir=.
7a197a62
AK
13999 ac_top_srcdir=$ac_top_builddir_sub
14000 ac_abs_top_srcdir=$ac_pwd ;;
14001 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 14002 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
14003 ac_top_srcdir=$srcdir
14004 ac_abs_top_srcdir=$srcdir ;;
14005 *) # Relative name.
14006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14007 ac_top_srcdir=$ac_top_build_prefix$srcdir
14008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 14009esac
7a197a62 14010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 14011
ad6254c5 14012
7a197a62
AK
14013 case $ac_mode in
14014 :F)
14015 #
14016 # CONFIG_FILE
14017 #
ad6254c5
AK
14018
14019 case $INSTALL in
14020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 14021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 14022 esac
fddafd51
ZK
14023 ac_MKDIR_P=$MKDIR_P
14024 case $MKDIR_P in
14025 [\\/$]* | ?:[\\/]* ) ;;
14026 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14027 esac
7a197a62 14028_ACEOF
795ca3e5 14029
ec6a6fbe 14030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
14031# If the template does not know about datarootdir, expand it.
14032# FIXME: This hack should be removed a few years after 2.60.
14033ac_datarootdir_hack=; ac_datarootdir_seen=
14034
ec6a6fbe
AK
14035ac_sed_dataroot='
14036/datarootdir/ {
7a197a62
AK
14037 p
14038 q
14039}
14040/@datadir@/p
14041/@docdir@/p
14042/@infodir@/p
14043/@localedir@/p
14044/@mandir@/p
ec6a6fbe
AK
14045'
14046case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
14047*datarootdir*) ac_datarootdir_seen=yes;;
14048*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
14049 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14050$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 14051_ACEOF
ec6a6fbe 14052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
14053 ac_datarootdir_hack='
14054 s&@datadir@&$datadir&g
14055 s&@docdir@&$docdir&g
14056 s&@infodir@&$infodir&g
14057 s&@localedir@&$localedir&g
14058 s&@mandir@&$mandir&g
14059 s&\\\${datarootdir}&$datarootdir&g' ;;
14060esac
14061_ACEOF
14062
14063# Neutralize VPATH when `$srcdir' = `.'.
14064# Shell code in configure.ac might set extrasub.
14065# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
14066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14067ac_sed_extra="$ac_vpsub
ad6254c5
AK
14068$extrasub
14069_ACEOF
ec6a6fbe 14070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
14071:t
14072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 14073s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 14074s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 14075s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
14076s&@srcdir@&$ac_srcdir&;t t
14077s&@abs_srcdir@&$ac_abs_srcdir&;t t
14078s&@top_srcdir@&$ac_top_srcdir&;t t
14079s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14080s&@builddir@&$ac_builddir&;t t
14081s&@abs_builddir@&$ac_abs_builddir&;t t
14082s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14083s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 14084s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 14085$ac_datarootdir_hack
ec6a6fbe
AK
14086"
14087eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14088 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14089$as_echo "$as_me: error: could not create $ac_file" >&2;}
14090 { (exit 1); exit 1; }; }
7a197a62
AK
14091
14092test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14093 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 14095 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 14096which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 14097$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
14098which seems to be undefined. Please make sure it is defined." >&2;}
14099
14100 rm -f "$tmp/stdin"
72b2cb61 14101 case $ac_file in
ec6a6fbe
AK
14102 -) cat "$tmp/out" && rm -f "$tmp/out";;
14103 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14104 esac \
14105 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14106$as_echo "$as_me: error: could not create $ac_file" >&2;}
14107 { (exit 1); exit 1; }; }
7a197a62
AK
14108 ;;
14109 :H)
14110 #
14111 # CONFIG_HEADER
14112 #
72b2cb61 14113 if test x"$ac_file" != x-; then
ec6a6fbe
AK
14114 {
14115 $as_echo "/* $configure_input */" \
14116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14117 } >"$tmp/config.h" \
14118 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14119$as_echo "$as_me: error: could not create $ac_file" >&2;}
14120 { (exit 1); exit 1; }; }
14121 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14122 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14123$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 14124 else
ec6a6fbe
AK
14125 rm -f "$ac_file"
14126 mv "$tmp/config.h" "$ac_file" \
14127 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14128$as_echo "$as_me: error: could not create $ac_file" >&2;}
14129 { (exit 1); exit 1; }; }
72b2cb61
AK
14130 fi
14131 else
ec6a6fbe
AK
14132 $as_echo "/* $configure_input */" \
14133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14134 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14135$as_echo "$as_me: error: could not create -" >&2;}
14136 { (exit 1); exit 1; }; }
72b2cb61 14137 fi
7a197a62
AK
14138 ;;
14139
14140
14141 esac
14142
14143done # for ac_tag
795ca3e5 14144
795ca3e5 14145
ad6254c5
AK
14146{ (exit 0); exit 0; }
14147_ACEOF
795ca3e5 14148chmod +x $CONFIG_STATUS
ad6254c5
AK
14149ac_clean_files=$ac_clean_files_save
14150
ec6a6fbe
AK
14151test $ac_write_fail = 0 ||
14152 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14153$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14154 { (exit 1); exit 1; }; }
14155
ad6254c5
AK
14156
14157# configure is writing to config.log, and then calls config.status.
14158# config.status does its own redirection, appending to config.log.
14159# Unfortunately, on DOS this fails, as config.log is still kept open
14160# by configure, so config.status won't be able to write to it; its
14161# output is simply discarded. So we exec the FD to /dev/null,
14162# effectively closing config.log, so it can be properly (re)opened and
14163# appended to by config.status. When coming back to configure, we
14164# need to make the FD available again.
14165if test "$no_create" != yes; then
14166 ac_cs_success=:
14167 ac_config_status_args=
14168 test "$silent" = yes &&
14169 ac_config_status_args="$ac_config_status_args --quiet"
14170 exec 5>/dev/null
14171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14172 exec 5>>config.log
14173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14174 # would make configure fail if this is the last instruction.
14175 $ac_cs_success || { (exit 1); exit 1; }
14176fi
ec6a6fbe
AK
14177if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14178 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14179$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14180fi
795ca3e5 14181
2dc95e1c
AK
14182
14183if test x$ODIRECT != xyes; then
ec6a6fbe
AK
14184 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
14185$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 14186fi
This page took 1.895403 seconds and 5 git commands to generate.