]> sourceware.org Git - lvm2.git/blame - configure
cluster log daemon (clogd): Adjust for kernel CTR arg reordering
[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
78ce7acc 824with_udevdir
ec6a6fbe
AK
825with_dmeventd_pidfile
826with_dmeventd_path
827with_interface
828'
7a197a62
AK
829 ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
25fbec5b 835LIBS
7a197a62 836CPPFLAGS
e2997b73
AK
837CPP
838PKG_CONFIG
839QUORUM_CFLAGS
840QUORUM_LIBS
841CONFDB_CFLAGS
842CONFDB_LIBS
843CPG_CFLAGS
844CPG_LIBS'
7a197a62 845
795ca3e5
AK
846
847# Initialize some variables set by options.
ad6254c5
AK
848ac_init_help=
849ac_init_version=false
ec6a6fbe
AK
850ac_unrecognized_opts=
851ac_unrecognized_sep=
795ca3e5
AK
852# The variables have the same names as the options, with
853# dashes changed to underlines.
ad6254c5 854cache_file=/dev/null
795ca3e5 855exec_prefix=NONE
795ca3e5 856no_create=
795ca3e5
AK
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
795ca3e5
AK
865verbose=
866x_includes=NONE
867x_libraries=NONE
ad6254c5
AK
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 874# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
7a197a62
AK
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
795ca3e5
AK
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
795ca3e5
AK
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
7a197a62
AK
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
795ca3e5 894
795ca3e5 895ac_prev=
7a197a62 896ac_dashdash=
795ca3e5
AK
897for ac_option
898do
795ca3e5
AK
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
7a197a62 901 eval $ac_prev=\$ac_option
795ca3e5
AK
902 ac_prev=
903 continue
904 fi
905
7a197a62
AK
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
795ca3e5
AK
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
7a197a62
AK
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
795ca3e5
AK
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 920 bindir=$ac_optarg ;;
795ca3e5
AK
921
922 -build | --build | --buil | --bui | --bu)
ad6254c5 923 ac_prev=build_alias ;;
795ca3e5 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 925 build_alias=$ac_optarg ;;
795ca3e5
AK
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
795ca3e5 936
7a197a62 937 -datadir | --datadir | --datadi | --datad)
795ca3e5 938 ac_prev=datadir ;;
7a197a62 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 940 datadir=$ac_optarg ;;
795ca3e5 941
7a197a62
AK
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
795ca3e5 949 -disable-* | --disable-*)
ec6a6fbe 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 951 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 954 { (exit 1); exit 1; }; }
ec6a6fbe
AK
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
7a197a62
AK
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
795ca3e5
AK
975
976 -enable-* | --enable-*)
ec6a6fbe 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 978 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 981 { (exit 1); exit 1; }; }
ec6a6fbe
AK
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
ad6254c5 1000 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
ad6254c5
AK
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
795ca3e5
AK
1012
1013 -host | --host | --hos | --ho)
ad6254c5 1014 ac_prev=host_alias ;;
795ca3e5 1015 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1016 host_alias=$ac_optarg ;;
795ca3e5 1017
7a197a62
AK
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
795ca3e5
AK
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1029 includedir=$ac_optarg ;;
795ca3e5
AK
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1034 infodir=$ac_optarg ;;
795ca3e5
AK
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1039 libdir=$ac_optarg ;;
795ca3e5
AK
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1046 libexecdir=$ac_optarg ;;
795ca3e5 1047
7a197a62
AK
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
795ca3e5 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1054 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1058 localstatedir=$ac_optarg ;;
795ca3e5
AK
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1063 mandir=$ac_optarg ;;
795ca3e5
AK
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1070 | --no-cr | --no-c | -n)
795ca3e5
AK
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1084 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1089 prefix=$ac_optarg ;;
795ca3e5
AK
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1096 program_prefix=$ac_optarg ;;
795ca3e5
AK
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1103 program_suffix=$ac_optarg ;;
795ca3e5
AK
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1120 program_transform_name=$ac_optarg ;;
795ca3e5 1121
7a197a62
AK
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
795ca3e5
AK
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
ad6254c5 1140 sbindir=$ac_optarg ;;
795ca3e5
AK
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
ad6254c5 1151 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
ad6254c5 1156 site=$ac_optarg ;;
795ca3e5
AK
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1161 srcdir=$ac_optarg ;;
795ca3e5
AK
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1168 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1171 ac_prev=target_alias ;;
795ca3e5 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1173 target_alias=$ac_optarg ;;
795ca3e5
AK
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
ad6254c5
AK
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
795ca3e5
AK
1180
1181 -with-* | --with-*)
ec6a6fbe 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1183 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1186 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1197
1198 -without-* | --without-*)
ec6a6fbe 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1200 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1203 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208"with_$ac_useropt"
1209"*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
795ca3e5
AK
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1224 x_includes=$ac_optarg ;;
795ca3e5
AK
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1231 x_libraries=$ac_optarg ;;
795ca3e5 1232
ec6a6fbe 1233 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1234Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
795ca3e5
AK
1236 ;;
1237
ad6254c5
AK
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1242 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1243 { (exit 1); exit 1; }; }
7a197a62 1244 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1245 export $ac_envvar ;;
1246
795ca3e5 1247 *)
ad6254c5 1248 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1253 ;;
1254
1255 esac
1256done
1257
1258if test -n "$ac_prev"; then
ad6254c5 1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1260 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1261 { (exit 1); exit 1; }; }
795ca3e5 1262fi
795ca3e5 1263
ec6a6fbe
AK
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1268 { (exit 1); exit 1; }; } ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271fi
1272
1273# Check all directory arguments for consistency.
7a197a62
AK
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
795ca3e5 1278do
7a197a62 1279 eval ac_val=\$$ac_var
ec6a6fbe
AK
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
ad6254c5 1287 case $ac_val in
7a197a62
AK
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1290 esac
ec6a6fbe 1291 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1292 { (exit 1); exit 1; }; }
795ca3e5
AK
1293done
1294
ad6254c5
AK
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
ec6a6fbe 1306 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
8106cdd5 1312
ad6254c5
AK
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
795ca3e5 1317
795ca3e5 1318
7a197a62
AK
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1322 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1323 { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1325 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1326 { (exit 1); exit 1; }; }
1327
1328
795ca3e5
AK
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
7a197a62 1332 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338$as_echo X"$as_myself" |
7a197a62
AK
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
795ca3e5 1356 srcdir=$ac_confdir
7a197a62 1357 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
7a197a62
AK
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1365 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1366 { (exit 1); exit 1; }; }
795ca3e5 1367fi
7a197a62
AK
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
ec6a6fbe 1370 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1371 { (exit 1); exit 1; }; }
7a197a62
AK
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
ad6254c5
AK
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures this package to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
ad6254c5
AK
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1419 [$ac_default_prefix]
ad6254c5 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1421 [PREFIX]
ad6254c5
AK
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
ec6a6fbe
AK
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463 cat <<\_ACEOF
1464
1465Optional Features:
ec6a6fbe 1466 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1469 --enable-static_link Use this to link the tools to their libraries
1470 statically. Default is dynamic linking
ad6254c5
AK
1471 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1472 device-mapper is missing from the kernel
1b523347 1473 --disable-readline Disable readline support
3d978351 1474 --disable-realtime Disable realtime clock support
ad6254c5 1475 --enable-debug Enable debugging
5556819a 1476 --enable-profiling Gather gcov profiling data
93bd259b 1477 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1478 --enable-udev_sync Enable synchronisation with udev processing
1479 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b
AK
1480 --enable-compat Enable support for old device-mapper versions
1481 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1482 --disable-o_direct Disable O_DIRECT
572fefeb 1483 --enable-applib Build application library
ad6254c5 1484 --enable-cmdlib Build shared command library
93bd259b 1485 --enable-pkgconfig Install pkgconfig support
ad6254c5 1486 --enable-fsadm Enable fsadm
15d91f5a 1487 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1488 --disable-selinux Disable selinux support
ad6254c5
AK
1489 --enable-nls Enable Native Language Support
1490
1491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1494 --with-user=USER Set the owner of installed files [USER=root]
1495 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1496 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1497 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1498 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1499 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1500 TYPE=internal
1501 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1502 TYPE=internal
1503 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1504 TYPE=internal
1505 --with-snapshots=TYPE Snapshot support: internal/shared/none
1506 TYPE=internal
1507 --with-mirrors=TYPE Mirror support: internal/shared/none
1508 TYPE=internal
ec6a6fbe 1509 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1510 TYPE=none
d0191583
JM
1511 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1512 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1513 --with-confdir=DIR Configuration files in DIR [/etc]
1514 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1515 --with-usrlibdir=DIR
1516 --with-usrsbindir=DIR
a5f46f6a 1517 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1518 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1519 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1520 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1521 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
25fbec5b 1528 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
ad6254c5 1531 CPP C preprocessor
e2997b73
AK
1532 PKG_CONFIG path to pkg-config utility
1533 QUORUM_CFLAGS
1534 C compiler flags for QUORUM, overriding pkg-config
1535 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1536 CONFDB_CFLAGS
1537 C compiler flags for CONFDB, overriding pkg-config
1538 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1539 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1540 CPG_LIBS linker flags for CPG, overriding pkg-config
ad6254c5
AK
1541
1542Use these variables to override the choices made by `configure' or to help
1543it to find libraries and programs with nonstandard names/locations.
1544
1545_ACEOF
7a197a62 1546ac_status=$?
ad6254c5
AK
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
ad6254c5 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
ad6254c5
AK
1555 ac_builddir=.
1556
7a197a62
AK
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
ec6a6fbe 1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1561 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1572
1573case $srcdir in
7a197a62 1574 .) # We are building in place.
ad6254c5 1575 ac_srcdir=.
7a197a62
AK
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1579 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1586esac
7a197a62
AK
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1597 else
ec6a6fbe 1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1601 done
1602fi
1603
7a197a62 1604test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1605if $ac_init_version; then
1606 cat <<\_ACEOF
7a197a62 1607configure
ec6a6fbe 1608generated by GNU Autoconf 2.63
ad6254c5 1609
7a197a62 1610Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
7a197a62 1615 exit
ad6254c5 1616fi
7a197a62 1617cat >config.log <<_ACEOF
ad6254c5
AK
1618This file contains any messages produced by compilers while
1619running configure, to aid debugging if configure makes a mistake.
1620
1621It was created by $as_me, which was
ec6a6fbe 1622generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1623
1624 $ $0 $@
1625
1626_ACEOF
7a197a62 1627exec 5>>config.log
ad6254c5
AK
1628{
1629cat <<_ASUNAME
1630## --------- ##
1631## Platform. ##
1632## --------- ##
1633
1634hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1642
1643/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1646/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1647/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1650
1651_ASUNAME
1652
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
ec6a6fbe 1658 $as_echo "PATH: $as_dir"
ad6254c5 1659done
7a197a62 1660IFS=$as_save_IFS
ad6254c5
AK
1661
1662} >&5
1663
1664cat >&5 <<_ACEOF
1665
1666
1667## ----------- ##
1668## Core tests. ##
1669## ----------- ##
1670
1671_ACEOF
1672
1673
1674# Keep a trace of the command line.
1675# Strip out --no-create and --no-recursion so they do not pile up.
1676# Strip out --silent because we don't want to record it for future runs.
1677# Also quote any args containing shell meta-characters.
1678# Make two passes to allow for proper duplicate-argument suppression.
1679ac_configure_args=
1680ac_configure_args0=
1681ac_configure_args1=
ad6254c5
AK
1682ac_must_keep_next=false
1683for ac_pass in 1 2
1684do
1685 for ac_arg
1686 do
1687 case $ac_arg in
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1691 continue ;;
7a197a62 1692 *\'*)
ec6a6fbe 1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1694 esac
1695 case $ac_pass in
1696 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1697 2)
1698 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
8a2fc586 1700 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1701 else
8a2fc586
AK
1702 case $ac_arg in
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 esac
1710 ;;
1711 -* ) ac_must_keep_next=true ;;
1712 esac
ad6254c5 1713 fi
7a197a62 1714 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1715 ;;
1716 esac
1717 done
1718done
1719$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1721
1722# When interrupted or exit'd, cleanup temporary files, and complete
1723# config.log. We remove comments because anyway the quotes in there
1724# would cause problems or look ugly.
7a197a62
AK
1725# WARNING: Use '\'' to represent an apostrophe within the trap.
1726# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1727trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1729 {
1730 echo
1731
1732 cat <<\_ASBOX
1733## ---------------- ##
1734## Cache variables. ##
1735## ---------------- ##
1736_ASBOX
1737 echo
1738 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1739(
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in #(
1743 *${as_nl}*)
1744 case $ac_var in #(
ec6a6fbe
AK
1745 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1746$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1747 esac
1748 case $ac_var in #(
1749 _ | IFS | as_nl) ;; #(
ec6a6fbe 1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1751 *) $as_unset $ac_var ;;
1752 esac ;;
1753 esac
1754 done
ad6254c5 1755 (set) 2>&1 |
7a197a62
AK
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
ad6254c5 1758 sed -n \
7a197a62
AK
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761 ;; #(
ad6254c5 1762 *)
7a197a62 1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1764 ;;
7a197a62
AK
1765 esac |
1766 sort
1767)
ad6254c5
AK
1768 echo
1769
1770 cat <<\_ASBOX
1771## ----------------- ##
1772## Output variables. ##
1773## ----------------- ##
1774_ASBOX
1775 echo
1776 for ac_var in $ac_subst_vars
1777 do
7a197a62
AK
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
ec6a6fbe 1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1781 esac
ec6a6fbe 1782 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1783 done | sort
1784 echo
1785
1786 if test -n "$ac_subst_files"; then
1787 cat <<\_ASBOX
7a197a62
AK
1788## ------------------- ##
1789## File substitutions. ##
1790## ------------------- ##
ad6254c5
AK
1791_ASBOX
1792 echo
1793 for ac_var in $ac_subst_files
1794 do
7a197a62
AK
1795 eval ac_val=\$$ac_var
1796 case $ac_val in
ec6a6fbe 1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1798 esac
ec6a6fbe 1799 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1800 done | sort
1801 echo
1802 fi
1803
1804 if test -s confdefs.h; then
1805 cat <<\_ASBOX
1806## ----------- ##
1807## confdefs.h. ##
1808## ----------- ##
1809_ASBOX
1810 echo
7a197a62 1811 cat confdefs.h
ad6254c5
AK
1812 echo
1813 fi
1814 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
ad6254c5 1817 } >&5
7a197a62
AK
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1820 exit $exit_status
7a197a62 1821' 0
ad6254c5
AK
1822for ac_signal in 1 2 13 15; do
1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1824done
1825ac_signal=0
1826
1827# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1828rm -f -r conftest* confdefs.h
ad6254c5
AK
1829
1830# Predefined preprocessor variables.
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_NAME "$PACKAGE_NAME"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_VERSION "$PACKAGE_VERSION"
1844_ACEOF
8106cdd5 1845
ad6254c5
AK
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_STRING "$PACKAGE_STRING"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1854_ACEOF
1855
1856
1857# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1858# Prefer an explicitly selected file to automatically selected ones.
1859ac_site_file1=NONE
1860ac_site_file2=NONE
7a197a62 1861if test -n "$CONFIG_SITE"; then
ec6a6fbe 1862 ac_site_file1=$CONFIG_SITE
7a197a62 1863elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1864 ac_site_file1=$prefix/share/config.site
1865 ac_site_file2=$prefix/etc/config.site
7a197a62 1866else
ec6a6fbe
AK
1867 ac_site_file1=$ac_default_prefix/share/config.site
1868 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1869fi
ec6a6fbe 1870for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1871do
ec6a6fbe 1872 test "x$ac_site_file" = xNONE && continue
795ca3e5 1873 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1874 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1876 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1877 . "$ac_site_file"
1878 fi
1879done
1880
1881if test -r "$cache_file"; then
ad6254c5
AK
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
ec6a6fbe
AK
1885 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1887 case $cache_file in
7a197a62
AK
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
ad6254c5
AK
1890 esac
1891 fi
795ca3e5 1892else
ec6a6fbe
AK
1893 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1895 >$cache_file
1896fi
1897
1898# Check that the precious variables saved in the cache have kept the same
1899# value.
1900ac_cache_corrupted=false
7a197a62 1901for ac_var in $ac_precious_vars; do
ad6254c5
AK
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1906 case $ac_old_set,$ac_new_set in
1907 set,)
ec6a6fbe
AK
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1910 ac_cache_corrupted=: ;;
1911 ,set)
ec6a6fbe
AK
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1914 ac_cache_corrupted=: ;;
1915 ,);;
1916 *)
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1918 # differences in whitespace do not lead to failure.
1919 ac_old_val_w=`echo x $ac_old_val`
1920 ac_new_val_w=`echo x $ac_new_val`
1921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1922 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 ac_cache_corrupted=:
1925 else
1926 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1927$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1928 eval $ac_var=\$ac_old_val
1929 fi
1930 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1931$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1932 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1933$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1934 fi;;
1935 esac
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1938 case $ac_new_val in
ec6a6fbe 1939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1941 esac
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1945 esac
1946 fi
1947done
1948if $ac_cache_corrupted; then
ec6a6fbe
AK
1949 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1951 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1955 { (exit 1); exit 1; }; }
795ca3e5
AK
1956fi
1957
ad6254c5
AK
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
7a197a62
AK
1974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1979
795ca3e5
AK
1980
1981
7a197a62 1982ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1983
1984
80992638 1985################################################################################
795ca3e5 1986ac_aux_dir=
7a197a62
AK
1987for ac_dir in autoconf "$srcdir"/autoconf; do
1988 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install-sh -c"
1991 break
7a197a62 1992 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/install.sh -c"
1995 break
7a197a62 1996 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/shtool install -c"
1999 break
795ca3e5
AK
2000 fi
2001done
2002if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2003 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2004$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2005 { (exit 1); exit 1; }; }
795ca3e5 2006fi
7a197a62
AK
2007
2008# These three variables are undocumented and unsupported,
2009# and are intended to be withdrawn in a future Autoconf release.
2010# They can cause serious problems if a builder's source tree is in a directory
2011# whose full name contains unusual characters.
2012ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2013ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2014ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015
8ce0cbda
AK
2016
2017
ad6254c5 2018################################################################################
8ce0cbda 2019# Make sure we can run config.sub.
7a197a62 2020$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2021 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2023 { (exit 1); exit 1; }; }
2024
ec6a6fbe
AK
2025{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2026$as_echo_n "checking build system type... " >&6; }
ad6254c5 2027if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2028 $as_echo_n "(cached) " >&6
ad6254c5 2029else
7a197a62
AK
2030 ac_build_alias=$build_alias
2031test "x$ac_build_alias" = x &&
2032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2034 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2036 { (exit 1); exit 1; }; }
7a197a62 2037ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2038 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2040 { (exit 1); exit 1; }; }
2041
2042fi
ec6a6fbe
AK
2043{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2045case $ac_cv_build in
2046*-*-*) ;;
ec6a6fbe
AK
2047*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2049 { (exit 1); exit 1; }; };;
2050esac
ad6254c5 2051build=$ac_cv_build
7a197a62
AK
2052ac_save_IFS=$IFS; IFS='-'
2053set x $ac_cv_build
2054shift
2055build_cpu=$1
2056build_vendor=$2
2057shift; shift
2058# Remember, the first character of IFS is used to create $*,
2059# except with old shells:
2060build_os=$*
2061IFS=$ac_save_IFS
2062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2063
2064
ec6a6fbe
AK
2065{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2066$as_echo_n "checking host system type... " >&6; }
ad6254c5 2067if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2068 $as_echo_n "(cached) " >&6
ad6254c5 2069else
7a197a62
AK
2070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2072else
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2074 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2076 { (exit 1); exit 1; }; }
7a197a62 2077fi
ad6254c5
AK
2078
2079fi
ec6a6fbe
AK
2080{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2082case $ac_cv_host in
2083*-*-*) ;;
ec6a6fbe
AK
2084*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2086 { (exit 1); exit 1; }; };;
2087esac
ad6254c5 2088host=$ac_cv_host
7a197a62
AK
2089ac_save_IFS=$IFS; IFS='-'
2090set x $ac_cv_host
2091shift
2092host_cpu=$1
2093host_vendor=$2
2094shift; shift
2095# Remember, the first character of IFS is used to create $*,
2096# except with old shells:
2097host_os=$*
2098IFS=$ac_save_IFS
2099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2100
2101
ec6a6fbe
AK
2102{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2103$as_echo_n "checking target system type... " >&6; }
ad6254c5 2104if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2105 $as_echo_n "(cached) " >&6
ad6254c5 2106else
7a197a62
AK
2107 if test "x$target_alias" = x; then
2108 ac_cv_target=$ac_cv_host
2109else
2110 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2111 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2113 { (exit 1); exit 1; }; }
7a197a62 2114fi
8ce0cbda 2115
ad6254c5 2116fi
ec6a6fbe
AK
2117{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2119case $ac_cv_target in
2120*-*-*) ;;
ec6a6fbe
AK
2121*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2123 { (exit 1); exit 1; }; };;
2124esac
ad6254c5 2125target=$ac_cv_target
7a197a62
AK
2126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_target
2128shift
2129target_cpu=$1
2130target_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134target_os=$*
2135IFS=$ac_save_IFS
2136case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2137
8ce0cbda 2138
ad6254c5
AK
2139# The aliases save the names the user supplied, while $host etc.
2140# will get canonicalized.
2141test -n "$target_alias" &&
8ce0cbda
AK
2142 test "$program_prefix$program_suffix$program_transform_name" = \
2143 NONENONEs,x,x, &&
2144 program_prefix=${target_alias}-
2145
8ce0cbda
AK
2146case "$host_os" in
2147 linux*)
7f54ef36 2148 CFLAGS="$CFLAGS"
8ce0cbda
AK
2149 COPTIMISE_FLAG="-O2"
2150 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2151 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2152 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2153 LDDEPS="$LDDEPS .export.sym"
2154 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2155 LIB_SUFFIX=so
8ce0cbda
AK
2156 DEVMAPPER=yes
2157 ODIRECT=yes
d0191583 2158 DM_IOCTLS=yes
8ce0cbda 2159 SELINUX=yes
8b1a3214 2160 REALTIME=yes
8ce0cbda 2161 CLUSTER=internal
93bd259b 2162 FSADM=yes
d0191583 2163 ;;
8ce0cbda
AK
2164 darwin*)
2165 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2166 COPTIMISE_FLAG="-O2"
2167 CLDFLAGS="$CLDFLAGS"
2168 CLDWHOLEARCHIVE="-all_load"
2169 CLDNOWHOLEARCHIVE=
d0191583 2170 LIB_SUFFIX=dylib
a653923f 2171 DEVMAPPER=yes
8ce0cbda 2172 ODIRECT=no
d0191583 2173 DM_IOCTLS=no
8ce0cbda 2174 SELINUX=no
8b1a3214 2175 REALTIME=no
8ce0cbda 2176 CLUSTER=none
d0191583
JM
2177 FSADM=no
2178 ;;
8ce0cbda
AK
2179esac
2180
80992638 2181################################################################################
ec6a6fbe
AK
2182{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2183$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2184if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2185 $as_echo_n "(cached) " >&6
5951ef33
AK
2186else
2187 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2188 for ac_i in 1 2 3 4 5 6 7; do
2189 ac_script="$ac_script$as_nl$ac_script"
2190 done
ec6a6fbe 2191 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2192 $as_unset ac_script || ac_script=
ec6a6fbe 2193 if test -z "$SED"; then
5951ef33 2194 ac_path_SED_found=false
ec6a6fbe
AK
2195 # Loop through the user's path and test for each of PROGNAME-LIST
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_prog in sed gsed; do
ec6a6fbe
AK
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2204 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2205# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2206 # Check for GNU $ac_path_SED
2207case `"$ac_path_SED" --version 2>&1` in
2208*GNU*)
2209 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2210*)
2211 ac_count=0
ec6a6fbe 2212 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2213 while :
2214 do
2215 cat "conftest.in" "conftest.in" >"conftest.tmp"
2216 mv "conftest.tmp" "conftest.in"
2217 cp "conftest.in" "conftest.nl"
ec6a6fbe 2218 $as_echo '' >> "conftest.nl"
5951ef33
AK
2219 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2221 ac_count=`expr $ac_count + 1`
2222 if test $ac_count -gt ${ac_path_SED_max-0}; then
2223 # Best one so far, save it but keep looking for a better one
2224 ac_cv_path_SED="$ac_path_SED"
2225 ac_path_SED_max=$ac_count
2226 fi
2227 # 10*(2^10) chars as input seems more than enough
2228 test $ac_count -gt 10 && break
2229 done
2230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2231esac
2232
ec6a6fbe
AK
2233 $ac_path_SED_found && break 3
2234 done
5951ef33
AK
2235 done
2236done
5951ef33 2237IFS=$as_save_IFS
ec6a6fbe
AK
2238 if test -z "$ac_cv_path_SED"; then
2239 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2240$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2241 { (exit 1); exit 1; }; }
ec6a6fbe 2242 fi
5951ef33
AK
2243else
2244 ac_cv_path_SED=$SED
2245fi
2246
2247fi
ec6a6fbe
AK
2248{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2249$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2250 SED="$ac_cv_path_SED"
2251 rm -f conftest.sed
2252
ad6254c5 2253for ac_prog in gawk mawk nawk awk
795ca3e5 2254do
ad6254c5 2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2256set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2258$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2259if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2260 $as_echo_n "(cached) " >&6
795ca3e5
AK
2261else
2262 if test -n "$AWK"; then
2263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2264else
ad6254c5
AK
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2272 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2274 break 2
2275 fi
2276done
2277done
7a197a62 2278IFS=$as_save_IFS
ad6254c5 2279
795ca3e5
AK
2280fi
2281fi
ad6254c5 2282AWK=$ac_cv_prog_AWK
795ca3e5 2283if test -n "$AWK"; then
ec6a6fbe
AK
2284 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2285$as_echo "$AWK" >&6; }
795ca3e5 2286else
ec6a6fbe
AK
2287 { $as_echo "$as_me:$LINENO: result: no" >&5
2288$as_echo "no" >&6; }
795ca3e5
AK
2289fi
2290
7a197a62 2291
ad6254c5
AK
2292 test -n "$AWK" && break
2293done
2294
2295ac_ext=c
2296ac_cpp='$CPP $CPPFLAGS'
2297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2302set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2304$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2305if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2306 $as_echo_n "(cached) " >&6
ad6254c5
AK
2307else
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2310else
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2320 break 2
2321 fi
2322done
8106cdd5 2323done
7a197a62 2324IFS=$as_save_IFS
8106cdd5 2325
ad6254c5
AK
2326fi
2327fi
2328CC=$ac_cv_prog_CC
2329if test -n "$CC"; then
ec6a6fbe
AK
2330 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2331$as_echo "$CC" >&6; }
ad6254c5 2332else
ec6a6fbe
AK
2333 { $as_echo "$as_me:$LINENO: result: no" >&5
2334$as_echo "no" >&6; }
ad6254c5
AK
2335fi
2336
7a197a62 2337
ad6254c5
AK
2338fi
2339if test -z "$ac_cv_prog_CC"; then
2340 ac_ct_CC=$CC
2341 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2342set dummy gcc; ac_word=$2
ec6a6fbe
AK
2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2344$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2345if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2346 $as_echo_n "(cached) " >&6
ad6254c5
AK
2347else
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350else
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2358 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2360 break 2
2361 fi
2362done
2363done
7a197a62 2364IFS=$as_save_IFS
ad6254c5
AK
2365
2366fi
2367fi
2368ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2370 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2372else
ec6a6fbe
AK
2373 { $as_echo "$as_me:$LINENO: result: no" >&5
2374$as_echo "no" >&6; }
ad6254c5
AK
2375fi
2376
7a197a62
AK
2377 if test "x$ac_ct_CC" = x; then
2378 CC=""
2379 else
2380 case $cross_compiling:$ac_tool_warned in
2381yes:)
ec6a6fbe
AK
2382{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2384ac_tool_warned=yes ;;
2385esac
2386 CC=$ac_ct_CC
2387 fi
ad6254c5
AK
2388else
2389 CC="$ac_cv_prog_CC"
2390fi
2391
2392if test -z "$CC"; then
7a197a62
AK
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2395set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2398if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2399 $as_echo_n "(cached) " >&6
8106cdd5
AK
2400else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403else
ad6254c5
AK
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2411 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2413 break 2
2414 fi
2415done
2416done
7a197a62 2417IFS=$as_save_IFS
ad6254c5 2418
8106cdd5
AK
2419fi
2420fi
ad6254c5 2421CC=$ac_cv_prog_CC
8106cdd5 2422if test -n "$CC"; then
ec6a6fbe
AK
2423 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2424$as_echo "$CC" >&6; }
ad6254c5 2425else
ec6a6fbe
AK
2426 { $as_echo "$as_me:$LINENO: result: no" >&5
2427$as_echo "no" >&6; }
ad6254c5
AK
2428fi
2429
8106cdd5 2430
7a197a62 2431 fi
ad6254c5 2432fi
795ca3e5
AK
2433if test -z "$CC"; then
2434 # Extract the first word of "cc", so it can be a program name with args.
2435set dummy cc; ac_word=$2
ec6a6fbe
AK
2436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2437$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2438if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2439 $as_echo_n "(cached) " >&6
795ca3e5
AK
2440else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443else
795ca3e5 2444 ac_prog_rejected=no
ad6254c5
AK
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2453 ac_prog_rejected=yes
2454 continue
2455 fi
2456 ac_cv_prog_CC="cc"
ec6a6fbe 2457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2458 break 2
2459 fi
2460done
2461done
7a197a62 2462IFS=$as_save_IFS
ad6254c5 2463
795ca3e5
AK
2464if test $ac_prog_rejected = yes; then
2465 # We found a bogon in the path, so make sure we never use it.
2466 set dummy $ac_cv_prog_CC
2467 shift
ad6254c5 2468 if test $# != 0; then
795ca3e5
AK
2469 # We chose a different compiler from the bogus one.
2470 # However, it has the same basename, so the bogon will be chosen
2471 # first if we set CC to just the basename; use the full file name.
2472 shift
ad6254c5 2473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2474 fi
2475fi
2476fi
2477fi
ad6254c5 2478CC=$ac_cv_prog_CC
795ca3e5 2479if test -n "$CC"; then
ec6a6fbe
AK
2480 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2481$as_echo "$CC" >&6; }
795ca3e5 2482else
ec6a6fbe
AK
2483 { $as_echo "$as_me:$LINENO: result: no" >&5
2484$as_echo "no" >&6; }
795ca3e5
AK
2485fi
2486
7a197a62 2487
ad6254c5
AK
2488fi
2489if test -z "$CC"; then
2490 if test -n "$ac_tool_prefix"; then
7a197a62 2491 for ac_prog in cl.exe
ad6254c5
AK
2492 do
2493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2495{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2496$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2497if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2498 $as_echo_n "(cached) " >&6
795ca3e5
AK
2499else
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2502else
ad6254c5
AK
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2512 break 2
2513 fi
2514done
2515done
7a197a62 2516IFS=$as_save_IFS
ad6254c5 2517
795ca3e5
AK
2518fi
2519fi
ad6254c5 2520CC=$ac_cv_prog_CC
795ca3e5 2521if test -n "$CC"; then
ec6a6fbe
AK
2522 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2523$as_echo "$CC" >&6; }
795ca3e5 2524else
ec6a6fbe
AK
2525 { $as_echo "$as_me:$LINENO: result: no" >&5
2526$as_echo "no" >&6; }
795ca3e5 2527fi
ad6254c5 2528
7a197a62 2529
ad6254c5
AK
2530 test -n "$CC" && break
2531 done
2532fi
2533if test -z "$CC"; then
2534 ac_ct_CC=$CC
7a197a62 2535 for ac_prog in cl.exe
ad6254c5
AK
2536do
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2540$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2541if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2542 $as_echo_n "(cached) " >&6
ad6254c5
AK
2543else
2544 if test -n "$ac_ct_CC"; then
2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2554 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2556 break 2
795ca3e5 2557 fi
ad6254c5
AK
2558done
2559done
7a197a62 2560IFS=$as_save_IFS
ad6254c5
AK
2561
2562fi
2563fi
2564ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2566 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2568else
ec6a6fbe
AK
2569 { $as_echo "$as_me:$LINENO: result: no" >&5
2570$as_echo "no" >&6; }
795ca3e5
AK
2571fi
2572
7a197a62 2573
ad6254c5
AK
2574 test -n "$ac_ct_CC" && break
2575done
795ca3e5 2576
7a197a62
AK
2577 if test "x$ac_ct_CC" = x; then
2578 CC=""
2579 else
2580 case $cross_compiling:$ac_tool_warned in
2581yes:)
ec6a6fbe
AK
2582{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2584ac_tool_warned=yes ;;
2585esac
2586 CC=$ac_ct_CC
2587 fi
ad6254c5
AK
2588fi
2589
2590fi
2591
2592
ec6a6fbe
AK
2593test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2596See \`config.log' for more details." >&5
ec6a6fbe 2597$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2598See \`config.log' for more details." >&2;}
ec6a6fbe 2599 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2600
2601# Provide some information about the compiler.
ec6a6fbe
AK
2602$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2603set X $ac_compile
2604ac_compiler=$2
7a197a62
AK
2605{ (ac_try="$ac_compiler --version >&5"
2606case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609esac
ec6a6fbe
AK
2610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611$as_echo "$ac_try_echo") >&5
7a197a62 2612 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2613 ac_status=$?
ec6a6fbe 2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2615 (exit $ac_status); }
7a197a62
AK
2616{ (ac_try="$ac_compiler -v >&5"
2617case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620esac
ec6a6fbe
AK
2621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622$as_echo "$ac_try_echo") >&5
7a197a62 2623 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2624 ac_status=$?
ec6a6fbe 2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2626 (exit $ac_status); }
7a197a62
AK
2627{ (ac_try="$ac_compiler -V >&5"
2628case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
ec6a6fbe
AK
2632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2633$as_echo "$ac_try_echo") >&5
7a197a62 2634 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2635 ac_status=$?
ec6a6fbe 2636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2637 (exit $ac_status); }
2638
2639cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645
2646int
2647main ()
2648{
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654ac_clean_files_save=$ac_clean_files
ec6a6fbe 2655ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2656# Try to create an executable without -o first, disregard a.out.
2657# It will help us diagnose broken compilers, and finding out an intuition
2658# of exeext.
ec6a6fbe
AK
2659{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2660$as_echo_n "checking for C compiler default output file name... " >&6; }
2661ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2662
2663# The possible output files:
2664ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2665
7a197a62
AK
2666ac_rmfiles=
2667for ac_file in $ac_files
2668do
2669 case $ac_file in
ec6a6fbe 2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2671 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2672 esac
2673done
2674rm -f $ac_rmfiles
2675
2676if { (ac_try="$ac_link_default"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
ec6a6fbe
AK
2681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682$as_echo "$ac_try_echo") >&5
7a197a62 2683 (eval "$ac_link_default") 2>&5
ad6254c5 2684 ac_status=$?
ec6a6fbe 2685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2686 (exit $ac_status); }; then
7a197a62
AK
2687 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2688# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2689# in a Makefile. We should not override ac_cv_exeext if it was cached,
2690# so that the user can short-circuit this test for compilers unknown to
2691# Autoconf.
25fbec5b 2692for ac_file in $ac_files ''
ad6254c5
AK
2693do
2694 test -f "$ac_file" || continue
2695 case $ac_file in
ec6a6fbe 2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2697 ;;
ad6254c5 2698 [ab].out )
8a2fc586
AK
2699 # We found the default executable, but exeext='' is most
2700 # certainly right.
2701 break;;
ad6254c5 2702 *.* )
7a197a62
AK
2703 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2704 then :; else
2705 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2706 fi
2707 # We set ac_cv_exeext here because the later test for it is not
2708 # safe: cross compilers may not add the suffix if given an `-o'
2709 # argument, so we may need to know it at that point already.
2710 # Even if this section looks crufty: it has the advantage of
2711 # actually working.
8a2fc586 2712 break;;
ad6254c5 2713 * )
8a2fc586 2714 break;;
ad6254c5
AK
2715 esac
2716done
7a197a62
AK
2717test "$ac_cv_exeext" = no && ac_cv_exeext=
2718
ad6254c5 2719else
25fbec5b
AK
2720 ac_file=''
2721fi
2722
ec6a6fbe
AK
2723{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2724$as_echo "$ac_file" >&6; }
25fbec5b 2725if test -z "$ac_file"; then
ec6a6fbe 2726 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
ec6a6fbe
AK
2729{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2732See \`config.log' for more details." >&5
ec6a6fbe 2733$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2734See \`config.log' for more details." >&2;}
ec6a6fbe 2735 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2736fi
2737
2738ac_exeext=$ac_cv_exeext
ad6254c5 2739
7a197a62 2740# Check that the compiler produces executables we can run. If not, either
ad6254c5 2741# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2742{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2743$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2744# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2745# If not cross compiling, check that we can run a simple program.
2746if test "$cross_compiling" != yes; then
2747 if { ac_try='./$ac_file'
7a197a62
AK
2748 { (case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
ec6a6fbe
AK
2752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753$as_echo "$ac_try_echo") >&5
7a197a62 2754 (eval "$ac_try") 2>&5
ad6254c5 2755 ac_status=$?
ec6a6fbe 2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2757 (exit $ac_status); }; }; then
2758 cross_compiling=no
795ca3e5 2759 else
ad6254c5
AK
2760 if test "$cross_compiling" = maybe; then
2761 cross_compiling=yes
2762 else
ec6a6fbe
AK
2763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2766If you meant to cross compile, use \`--host'.
2767See \`config.log' for more details." >&5
ec6a6fbe 2768$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2769If you meant to cross compile, use \`--host'.
2770See \`config.log' for more details." >&2;}
ec6a6fbe 2771 { (exit 1); exit 1; }; }; }
ad6254c5 2772 fi
795ca3e5 2773 fi
80992638 2774fi
ec6a6fbe
AK
2775{ $as_echo "$as_me:$LINENO: result: yes" >&5
2776$as_echo "yes" >&6; }
ad6254c5 2777
ec6a6fbe 2778rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2779ac_clean_files=$ac_clean_files_save
7a197a62 2780# Check that the compiler produces executables we can run. If not, either
ad6254c5 2781# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2782{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2783$as_echo_n "checking whether we are cross compiling... " >&6; }
2784{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2785$as_echo "$cross_compiling" >&6; }
7a197a62 2786
ec6a6fbe
AK
2787{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2788$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2789if { (ac_try="$ac_link"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
ec6a6fbe
AK
2794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795$as_echo "$ac_try_echo") >&5
7a197a62 2796 (eval "$ac_link") 2>&5
ad6254c5 2797 ac_status=$?
ec6a6fbe 2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2799 (exit $ac_status); }; then
2800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2801# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2802# work properly (i.e., refer to `conftest.exe'), while it won't with
2803# `rm'.
2804for ac_file in conftest.exe conftest conftest.*; do
2805 test -f "$ac_file" || continue
2806 case $ac_file in
ec6a6fbe 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2809 break;;
ad6254c5
AK
2810 * ) break;;
2811 esac
2812done
80992638 2813else
ec6a6fbe
AK
2814 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2817See \`config.log' for more details." >&5
ec6a6fbe 2818$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2819See \`config.log' for more details." >&2;}
ec6a6fbe 2820 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2821fi
2822
2823rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2824{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2825$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2826
2827rm -f conftest.$ac_ext
2828EXEEXT=$ac_cv_exeext
2829ac_exeext=$EXEEXT
ec6a6fbe
AK
2830{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2831$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2832if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2833 $as_echo_n "(cached) " >&6
795ca3e5 2834else
ad6254c5 2835 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2836/* confdefs.h. */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h. */
2841
2842int
2843main ()
2844{
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850rm -f conftest.o conftest.obj
7a197a62
AK
2851if { (ac_try="$ac_compile"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
ec6a6fbe
AK
2856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857$as_echo "$ac_try_echo") >&5
7a197a62 2858 (eval "$ac_compile") 2>&5
ad6254c5 2859 ac_status=$?
ec6a6fbe 2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2861 (exit $ac_status); }; then
7a197a62
AK
2862 for ac_file in conftest.o conftest.obj conftest.*; do
2863 test -f "$ac_file" || continue;
ad6254c5 2864 case $ac_file in
ec6a6fbe 2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2867 break;;
2868 esac
2869done
2870else
ec6a6fbe 2871 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
ec6a6fbe
AK
2874{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2877See \`config.log' for more details." >&5
ec6a6fbe 2878$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2879See \`config.log' for more details." >&2;}
ec6a6fbe 2880 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2881fi
2882
2883rm -f conftest.$ac_cv_objext conftest.$ac_ext
2884fi
ec6a6fbe
AK
2885{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2886$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2887OBJEXT=$ac_cv_objext
2888ac_objext=$OBJEXT
ec6a6fbe
AK
2889{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2890$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2891if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2892 $as_echo_n "(cached) " >&6
ad6254c5
AK
2893else
2894 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2895/* confdefs.h. */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h. */
2900
2901int
2902main ()
2903{
2904#ifndef __GNUC__
2905 choke me
2906#endif
80992638 2907
ad6254c5
AK
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext
7a197a62
AK
2913if { (ac_try="$ac_compile"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
ec6a6fbe
AK
2918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919$as_echo "$ac_try_echo") >&5
7a197a62 2920 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2921 ac_status=$?
8a2fc586
AK
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
ec6a6fbe 2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2926 (exit $ac_status); } && {
2927 test -z "$ac_c_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest.$ac_objext; then
ad6254c5 2930 ac_compiler_gnu=yes
80992638 2931else
ec6a6fbe 2932 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
7a197a62 2935 ac_compiler_gnu=no
8106cdd5 2936fi
7a197a62
AK
2937
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2939ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2940
ad6254c5 2941fi
ec6a6fbe
AK
2942{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2943$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2944if test $ac_compiler_gnu = yes; then
2945 GCC=yes
2946else
2947 GCC=
2948fi
ad6254c5
AK
2949ac_test_CFLAGS=${CFLAGS+set}
2950ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2951{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2952$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2953if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2954 $as_echo_n "(cached) " >&6
795ca3e5 2955else
7a197a62
AK
2956 ac_save_c_werror_flag=$ac_c_werror_flag
2957 ac_c_werror_flag=yes
2958 ac_cv_prog_cc_g=no
2959 CFLAGS="-g"
2960 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
2966
2967int
2968main ()
2969{
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975rm -f conftest.$ac_objext
7a197a62
AK
2976if { (ac_try="$ac_compile"
2977case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
ec6a6fbe
AK
2981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982$as_echo "$ac_try_echo") >&5
7a197a62 2983 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2984 ac_status=$?
8a2fc586
AK
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
ec6a6fbe 2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
7a197a62
AK
2993 ac_cv_prog_cc_g=yes
2994else
ec6a6fbe 2995 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 CFLAGS=""
2999 cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005
3006int
3007main ()
3008{
3009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
3015if { (ac_try="$ac_compile"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
ec6a6fbe
AK
3020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021$as_echo "$ac_try_echo") >&5
7a197a62 3022 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3023 ac_status=$?
7a197a62
AK
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
ec6a6fbe 3027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3028 (exit $ac_status); } && {
3029 test -z "$ac_c_werror_flag" ||
3030 test ! -s conftest.err
3031 } && test -s conftest.$ac_objext; then
7a197a62
AK
3032 :
3033else
ec6a6fbe 3034 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 ac_c_werror_flag=$ac_save_c_werror_flag
3038 CFLAGS="-g"
3039 cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h. */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h. */
3045
3046int
3047main ()
3048{
3049
3050 ;
3051 return 0;
3052}
3053_ACEOF
3054rm -f conftest.$ac_objext
3055if { (ac_try="$ac_compile"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
ec6a6fbe
AK
3060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3061$as_echo "$ac_try_echo") >&5
7a197a62 3062 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3063 ac_status=$?
7a197a62
AK
3064 grep -v '^ *+' conftest.er1 >conftest.err
3065 rm -f conftest.er1
3066 cat conftest.err >&5
ec6a6fbe 3067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3072 ac_cv_prog_cc_g=yes
3073else
ec6a6fbe 3074 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3075sed 's/^/| /' conftest.$ac_ext >&5
80992638 3076
7a197a62
AK
3077
3078fi
3079
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081fi
3082
3083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3084fi
7a197a62
AK
3085
3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3088fi
ec6a6fbe
AK
3089{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3090$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3091if test "$ac_test_CFLAGS" = set; then
ad6254c5 3092 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3093elif test $ac_cv_prog_cc_g = yes; then
3094 if test "$GCC" = yes; then
3095 CFLAGS="-g -O2"
3096 else
3097 CFLAGS="-g"
3098 fi
3099else
3100 if test "$GCC" = yes; then
3101 CFLAGS="-O2"
3102 else
3103 CFLAGS=
3104 fi
3105fi
ec6a6fbe
AK
3106{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3108if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3109 $as_echo_n "(cached) " >&6
ad6254c5 3110else
7a197a62 3111 ac_cv_prog_cc_c89=no
ad6254c5
AK
3112ac_save_CC=$CC
3113cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119#include <stdarg.h>
3120#include <stdio.h>
3121#include <sys/types.h>
3122#include <sys/stat.h>
3123/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124struct buf { int x; };
3125FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126static char *e (p, i)
3127 char **p;
3128 int i;
3129{
3130 return p[i];
3131}
3132static char *f (char * (*g) (char **, int), char **p, ...)
3133{
3134 char *s;
3135 va_list v;
3136 va_start (v,p);
3137 s = g (p, va_arg (v,int));
3138 va_end (v);
3139 return s;
3140}
8a2fc586
AK
3141
3142/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3145 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3148 that's true only with -std. */
8a2fc586
AK
3149int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3150
7a197a62
AK
3151/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3153#define FOO(x) 'x'
3154int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3155
ad6254c5
AK
3156int test (int i, double x);
3157struct s1 {int (*f) (int a);};
3158struct s2 {int (*f) (double a);};
3159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3160int argc;
3161char **argv;
3162int
3163main ()
3164{
3165return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3166 ;
3167 return 0;
3168}
3169_ACEOF
7a197a62
AK
3170for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3172do
3173 CC="$ac_save_CC $ac_arg"
3174 rm -f conftest.$ac_objext
7a197a62
AK
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
ec6a6fbe
AK
3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181$as_echo "$ac_try_echo") >&5
7a197a62 3182 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3183 ac_status=$?
8a2fc586
AK
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
ec6a6fbe 3187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
7a197a62 3192 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3193else
ec6a6fbe 3194 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
7a197a62 3197
ad6254c5 3198fi
7a197a62
AK
3199
3200rm -f core conftest.err conftest.$ac_objext
3201 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3202done
7a197a62 3203rm -f conftest.$ac_ext
ad6254c5
AK
3204CC=$ac_save_CC
3205
3206fi
7a197a62
AK
3207# AC_CACHE_VAL
3208case "x$ac_cv_prog_cc_c89" in
3209 x)
ec6a6fbe
AK
3210 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3211$as_echo "none needed" >&6; } ;;
7a197a62 3212 xno)
ec6a6fbe
AK
3213 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3214$as_echo "unsupported" >&6; } ;;
ad6254c5 3215 *)
7a197a62 3216 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3217 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3218$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3219esac
3220
ad6254c5 3221
ad6254c5
AK
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3227
d0191583
JM
3228
3229
3230ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3235{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3237# On Suns, sometimes $CPP names a directory.
3238if test -n "$CPP" && test -d "$CPP"; then
3239 CPP=
3240fi
3241if test -z "$CPP"; then
3242 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3243 $as_echo_n "(cached) " >&6
ad6254c5 3244else
d0191583
JM
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247 do
3248 ac_preproc_ok=false
3249for ac_c_preproc_warn_flag in '' yes
ad6254c5 3250do
d0191583
JM
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
3263#ifdef __STDC__
3264# include <limits.h>
3265#else
3266# include <assert.h>
3267#endif
3268 Syntax error
3269_ACEOF
3270if { (ac_try="$ac_cpp conftest.$ac_ext"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
ad6254c5 3274esac
ec6a6fbe
AK
3275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276$as_echo "$ac_try_echo") >&5
d0191583
JM
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
ec6a6fbe 3282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 }; then
3287 :
3288else
ec6a6fbe 3289 $as_echo "$as_me: failed program was:" >&5
d0191583 3290sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3291
d0191583
JM
3292 # Broken: fails on valid input.
3293continue
795ca3e5 3294fi
795ca3e5 3295
d0191583 3296rm -f conftest.err conftest.$ac_ext
795ca3e5 3297
d0191583
JM
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306#include <ac_nonexistent.h>
3307_ACEOF
3308if { (ac_try="$ac_cpp conftest.$ac_ext"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
ec6a6fbe
AK
3313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3314$as_echo "$ac_try_echo") >&5
d0191583
JM
3315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
ec6a6fbe 3320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3321 (exit $ac_status); } >/dev/null && {
3322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3323 test ! -s conftest.err
3324 }; then
3325 # Broken: success on invalid input.
3326continue
3327else
ec6a6fbe 3328 $as_echo "$as_me: failed program was:" >&5
d0191583 3329sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3330
d0191583
JM
3331 # Passes both tests.
3332ac_preproc_ok=:
3333break
3334fi
795ca3e5 3335
d0191583
JM
3336rm -f conftest.err conftest.$ac_ext
3337
3338done
3339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340rm -f conftest.err conftest.$ac_ext
3341if $ac_preproc_ok; then
3342 break
795ca3e5
AK
3343fi
3344
d0191583
JM
3345 done
3346 ac_cv_prog_CPP=$CPP
3347
3348fi
3349 CPP=$ac_cv_prog_CPP
795ca3e5 3350else
d0191583
JM
3351 ac_cv_prog_CPP=$CPP
3352fi
ec6a6fbe
AK
3353{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3354$as_echo "$CPP" >&6; }
d0191583
JM
3355ac_preproc_ok=false
3356for ac_c_preproc_warn_flag in '' yes
3357do
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
ad6254c5 3366_ACEOF
d0191583
JM
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#ifdef __STDC__
3371# include <limits.h>
3372#else
3373# include <assert.h>
3374#endif
3375 Syntax error
3376_ACEOF
3377if { (ac_try="$ac_cpp conftest.$ac_ext"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
7a197a62 3381esac
ec6a6fbe
AK
3382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383$as_echo "$ac_try_echo") >&5
d0191583
JM
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
ec6a6fbe 3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3390 (exit $ac_status); } >/dev/null && {
3391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 }; then
3394 :
795ca3e5 3395else
ec6a6fbe 3396 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Broken: fails on valid input.
3400continue
795ca3e5
AK
3401fi
3402
d0191583
JM
3403rm -f conftest.err conftest.$ac_ext
3404
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h. */
3413#include <ac_nonexistent.h>
3414_ACEOF
3415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
ec6a6fbe
AK
3420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3421$as_echo "$ac_try_echo") >&5
d0191583
JM
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
ec6a6fbe 3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 }; then
3432 # Broken: success on invalid input.
3433continue
795ca3e5 3434else
ec6a6fbe 3435 $as_echo "$as_me: failed program was:" >&5
d0191583 3436sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3437
d0191583
JM
3438 # Passes both tests.
3439ac_preproc_ok=:
3440break
795ca3e5 3441fi
d0191583
JM
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
3448if $ac_preproc_ok; then
3449 :
8106cdd5 3450else
ec6a6fbe
AK
3451 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3454See \`config.log' for more details." >&5
ec6a6fbe 3455$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3456See \`config.log' for more details." >&2;}
ec6a6fbe 3457 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3458fi
3459
d0191583
JM
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
7a197a62 3466
ec6a6fbe
AK
3467{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3468$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3469if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3470 $as_echo_n "(cached) " >&6
ad6254c5 3471else
ec6a6fbe 3472 if test -z "$GREP"; then
d0191583 3473 ac_path_GREP_found=false
ec6a6fbe
AK
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
d0191583 3480 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3485 # Check for GNU $ac_path_GREP
3486case `"$ac_path_GREP" --version 2>&1` in
3487*GNU*)
3488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3489*)
3490 ac_count=0
ec6a6fbe 3491 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3492 while :
3493 do
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
ec6a6fbe 3497 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_GREP="$ac_path_GREP"
3504 ac_path_GREP_max=$ac_count
3505 fi
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3508 done
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510esac
3511
ec6a6fbe
AK
3512 $ac_path_GREP_found && break 3
3513 done
d0191583 3514 done
ad6254c5 3515done
7a197a62 3516IFS=$as_save_IFS
ec6a6fbe
AK
3517 if test -z "$ac_cv_path_GREP"; then
3518 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3519$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3520 { (exit 1); exit 1; }; }
ec6a6fbe 3521 fi
80992638 3522else
d0191583 3523 ac_cv_path_GREP=$GREP
8106cdd5 3524fi
8106cdd5 3525
80992638 3526fi
ec6a6fbe
AK
3527{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3528$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3529 GREP="$ac_cv_path_GREP"
795ca3e5 3530
d0191583 3531
ec6a6fbe
AK
3532{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3533$as_echo_n "checking for egrep... " >&6; }
d0191583 3534if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3535 $as_echo_n "(cached) " >&6
8a2fc586 3536else
d0191583
JM
3537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3538 then ac_cv_path_EGREP="$GREP -E"
3539 else
ec6a6fbe 3540 if test -z "$EGREP"; then
d0191583 3541 ac_path_EGREP_found=false
ec6a6fbe
AK
3542 # Loop through the user's path and test for each of PROGNAME-LIST
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
d0191583 3548 for ac_prog in egrep; do
ec6a6fbe
AK
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3551 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3552# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3553 # Check for GNU $ac_path_EGREP
3554case `"$ac_path_EGREP" --version 2>&1` in
3555*GNU*)
3556 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3557*)
3558 ac_count=0
ec6a6fbe 3559 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3560 while :
3561 do
3562 cat "conftest.in" "conftest.in" >"conftest.tmp"
3563 mv "conftest.tmp" "conftest.in"
3564 cp "conftest.in" "conftest.nl"
ec6a6fbe 3565 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3566 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568 ac_count=`expr $ac_count + 1`
3569 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3570 # Best one so far, save it but keep looking for a better one
3571 ac_cv_path_EGREP="$ac_path_EGREP"
3572 ac_path_EGREP_max=$ac_count
3573 fi
3574 # 10*(2^10) chars as input seems more than enough
3575 test $ac_count -gt 10 && break
3576 done
3577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3578esac
8a2fc586 3579
ec6a6fbe
AK
3580 $ac_path_EGREP_found && break 3
3581 done
d0191583 3582 done
8a2fc586 3583done
7a197a62 3584IFS=$as_save_IFS
ec6a6fbe
AK
3585 if test -z "$ac_cv_path_EGREP"; then
3586 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3587$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3588 { (exit 1); exit 1; }; }
ec6a6fbe 3589 fi
d0191583
JM
3590else
3591 ac_cv_path_EGREP=$EGREP
3592fi
ad6254c5 3593
d0191583
JM
3594 fi
3595fi
ec6a6fbe
AK
3596{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3597$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3598 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3599
3600
d0191583 3601if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3602 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3603$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3604if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3605 $as_echo_n "(cached) " >&6
8106cdd5 3606else
d0191583 3607 ac_pattern="Autoconf.*'x'"
ad6254c5 3608 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3609/* confdefs.h. */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h. */
d0191583
JM
3614#include <sgtty.h>
3615Autoconf TIOCGETP
ad6254c5 3616_ACEOF
d0191583
JM
3617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3619 ac_cv_prog_gcc_traditional=yes
8106cdd5 3620else
d0191583 3621 ac_cv_prog_gcc_traditional=no
80992638 3622fi
d0191583 3623rm -f conftest*
ad6254c5 3624
8106cdd5 3625
d0191583
JM
3626 if test $ac_cv_prog_gcc_traditional = no; then
3627 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3628/* confdefs.h. */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h. */
d0191583
JM
3633#include <termio.h>
3634Autoconf TCGETA
ad6254c5 3635_ACEOF
d0191583
JM
3636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3638 ac_cv_prog_gcc_traditional=yes
7a197a62 3639fi
d0191583 3640rm -f conftest*
795ca3e5 3641
d0191583 3642 fi
795ca3e5 3643fi
ec6a6fbe
AK
3644{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3645$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3646 if test $ac_cv_prog_gcc_traditional = yes; then
3647 CC="$CC -traditional"
3648 fi
795ca3e5
AK
3649fi
3650
d0191583
JM
3651# Find a good install program. We prefer a C program (faster),
3652# so one script is as good as another. But avoid the broken or
3653# incompatible versions:
3654# SysV /etc/install, /usr/sbin/install
3655# SunOS /usr/etc/install
3656# IRIX /sbin/install
3657# AIX /bin/install
3658# AmigaOS /C/install, which installs bootblocks on floppy discs
3659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3662# OS/2's system install, which has a completely different semantic
3663# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3664# Reject install programs that cannot install multiple files.
3665{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3667if test -z "$INSTALL"; then
3668if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3669 $as_echo_n "(cached) " >&6
ad6254c5 3670else
d0191583
JM
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 # Account for people who put trailing slashes in PATH elements.
3677case $as_dir/ in
3678 ./ | .// | /cC/* | \
3679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3681 /usr/ucb/* ) ;;
3682 *)
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3685 # by default.
3686 for ac_prog in ginstall scoinst install; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3689 if test $ac_prog = install &&
3690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3692 :
3693 elif test $ac_prog = install &&
3694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3696 :
3697 else
ec6a6fbe
AK
3698 rm -rf conftest.one conftest.two conftest.dir
3699 echo one > conftest.one
3700 echo two > conftest.two
3701 mkdir conftest.dir
3702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3703 test -s conftest.one && test -s conftest.two &&
3704 test -s conftest.dir/conftest.one &&
3705 test -s conftest.dir/conftest.two
3706 then
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 break 3
3709 fi
d0191583
JM
3710 fi
3711 fi
3712 done
3713 done
3714 ;;
3715esac
ec6a6fbe 3716
d0191583
JM
3717done
3718IFS=$as_save_IFS
80992638 3719
ec6a6fbe 3720rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3721
3722fi
3723 if test "${ac_cv_path_install+set}" = set; then
3724 INSTALL=$ac_cv_path_install
7a197a62 3725 else
d0191583
JM
3726 # As a last resort, use the slow shell script. Don't cache a
3727 # value for INSTALL within a source directory, because that will
3728 # break other packages using the cache if that directory is
3729 # removed, or if the value is a relative name.
3730 INSTALL=$ac_install_sh
7a197a62 3731 fi
d0191583 3732fi
ec6a6fbe
AK
3733{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3734$as_echo "$INSTALL" >&6; }
ad6254c5 3735
d0191583
JM
3736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3737# It thinks the first close brace ends the variable substitution.
3738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3739
d0191583 3740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3741
d0191583
JM
3742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3743
ec6a6fbe
AK
3744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3748 { $as_echo "$as_me:$LINENO: result: yes" >&5
3749$as_echo "yes" >&6; }
d0191583 3750else
ec6a6fbe
AK
3751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752$as_echo "no, using $LN_S" >&6; }
795ca3e5 3753fi
d0191583 3754
ec6a6fbe
AK
3755{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3756$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3757set x ${MAKE-make}
3758ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3759if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3760 $as_echo_n "(cached) " >&6
7a197a62 3761else
d0191583
JM
3762 cat >conftest.make <<\_ACEOF
3763SHELL = /bin/sh
3764all:
3765 @echo '@@@%%%=$(MAKE)=@@@%%%'
3766_ACEOF
3767# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3768case `${MAKE-make} -f conftest.make 2>/dev/null` in
3769 *@@@%%%=?*=@@@%%%*)
3770 eval ac_cv_prog_make_${ac_make}_set=yes;;
3771 *)
3772 eval ac_cv_prog_make_${ac_make}_set=no;;
3773esac
3774rm -f conftest.make
ad6254c5 3775fi
d0191583 3776if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3777 { $as_echo "$as_me:$LINENO: result: yes" >&5
3778$as_echo "yes" >&6; }
d0191583
JM
3779 SET_MAKE=
3780else
ec6a6fbe
AK
3781 { $as_echo "$as_me:$LINENO: result: no" >&5
3782$as_echo "no" >&6; }
d0191583 3783 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3784fi
8106cdd5 3785
ec6a6fbe
AK
3786{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3787$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3788if test -z "$MKDIR_P"; then
3789 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3790 $as_echo_n "(cached) " >&6
5556819a
AK
3791else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_prog in mkdir gmkdir; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3801 'mkdir (GNU coreutils) '* | \
3802 'mkdir (coreutils) '* | \
3803 'mkdir (fileutils) '4.1*)
3804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3805 break 3;;
3806 esac
3807 done
3808 done
3809done
3810IFS=$as_save_IFS
3811
3812fi
3813
3814 if test "${ac_cv_path_mkdir+set}" = set; then
3815 MKDIR_P="$ac_cv_path_mkdir -p"
3816 else
3817 # As a last resort, use the slow shell script. Don't cache a
3818 # value for MKDIR_P within a source directory, because that will
3819 # break other packages using the cache if that directory is
3820 # removed, or if the value is a relative name.
3821 test -d ./--version && rmdir ./--version
3822 MKDIR_P="$ac_install_sh -d"
3823 fi
3824fi
ec6a6fbe
AK
3825{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3826$as_echo "$MKDIR_P" >&6; }
5556819a 3827
d0191583
JM
3828if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3830set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3832$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3833if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3834 $as_echo_n "(cached) " >&6
d0191583
JM
3835else
3836 if test -n "$RANLIB"; then
3837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3838else
3839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3848 break 2
3849 fi
3850done
3851done
3852IFS=$as_save_IFS
8106cdd5 3853
795ca3e5 3854fi
d0191583
JM
3855fi
3856RANLIB=$ac_cv_prog_RANLIB
3857if test -n "$RANLIB"; then
ec6a6fbe
AK
3858 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3859$as_echo "$RANLIB" >&6; }
d0191583 3860else
ec6a6fbe
AK
3861 { $as_echo "$as_me:$LINENO: result: no" >&5
3862$as_echo "no" >&6; }
d0191583
JM
3863fi
3864
8106cdd5 3865
ad6254c5 3866fi
d0191583
JM
3867if test -z "$ac_cv_prog_RANLIB"; then
3868 ac_ct_RANLIB=$RANLIB
3869 # Extract the first word of "ranlib", so it can be a program name with args.
3870set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3873if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3874 $as_echo_n "(cached) " >&6
ad6254c5 3875else
d0191583
JM
3876 if test -n "$ac_ct_RANLIB"; then
3877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
8106cdd5 3881do
d0191583
JM
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3888 break 2
3889 fi
3890done
3891done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3897if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3898 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3899$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3900else
ec6a6fbe
AK
3901 { $as_echo "$as_me:$LINENO: result: no" >&5
3902$as_echo "no" >&6; }
d0191583 3903fi
ad6254c5 3904
d0191583
JM
3905 if test "x$ac_ct_RANLIB" = x; then
3906 RANLIB=":"
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909yes:)
ec6a6fbe
AK
3910{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3912ac_tool_warned=yes ;;
3913esac
3914 RANLIB=$ac_ct_RANLIB
3915 fi
3916else
3917 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3918fi
7a197a62 3919
d0191583
JM
3920# Extract the first word of "cflow", so it can be a program name with args.
3921set dummy cflow; ac_word=$2
ec6a6fbe
AK
3922{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3924if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3925 $as_echo_n "(cached) " >&6
d0191583
JM
3926else
3927 case $CFLOW_CMD in
3928 [\\/]* | ?:[\\/]*)
3929 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3930 ;;
3931 *)
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3941 break 2
3942 fi
3943done
3944done
3945IFS=$as_save_IFS
ad6254c5 3946
d0191583 3947 ;;
7a197a62 3948esac
d0191583
JM
3949fi
3950CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3951if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3952 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3953$as_echo "$CFLOW_CMD" >&6; }
80992638 3954else
ec6a6fbe
AK
3955 { $as_echo "$as_me:$LINENO: result: no" >&5
3956$as_echo "no" >&6; }
795ca3e5 3957fi
7a197a62 3958
ad6254c5 3959
d0191583
JM
3960# Extract the first word of "cscope", so it can be a program name with args.
3961set dummy cscope; ac_word=$2
ec6a6fbe
AK
3962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3964if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3965 $as_echo_n "(cached) " >&6
d0191583
JM
3966else
3967 case $CSCOPE_CMD in
3968 [\\/]* | ?:[\\/]*)
3969 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3970 ;;
3971 *)
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3981 break 2
3982 fi
795ca3e5 3983done
d0191583
JM
3984done
3985IFS=$as_save_IFS
795ca3e5 3986
d0191583
JM
3987 ;;
3988esac
ad6254c5 3989fi
d0191583
JM
3990CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3991if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3992 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3993$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3994else
ec6a6fbe
AK
3995 { $as_echo "$as_me:$LINENO: result: no" >&5
3996$as_echo "no" >&6; }
795ca3e5 3997fi
ad6254c5 3998
7a197a62 3999
ad6254c5 4000
d0191583
JM
4001################################################################################
4002
4003
4004
4005
4006
4007ac_header_dirent=no
4008for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4009 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4010{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4011$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4013 $as_echo_n "(cached) " >&6
d0191583 4014else
ad6254c5 4015 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4016/* confdefs.h. */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h. */
d0191583
JM
4021#include <sys/types.h>
4022#include <$ac_hdr>
4023
4024int
4025main ()
4026{
4027if ((DIR *) 0)
4028return 0;
4029 ;
4030 return 0;
4031}
ad6254c5 4032_ACEOF
d0191583
JM
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
7a197a62
AK
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
ec6a6fbe
AK
4039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040$as_echo "$ac_try_echo") >&5
d0191583 4041 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
ec6a6fbe 4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4047 (exit $ac_status); } && {
4048 test -z "$ac_c_werror_flag" ||
25fbec5b 4049 test ! -s conftest.err
d0191583
JM
4050 } && test -s conftest.$ac_objext; then
4051 eval "$as_ac_Header=yes"
ad6254c5 4052else
ec6a6fbe 4053 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4054sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4055
d0191583 4056 eval "$as_ac_Header=no"
795ca3e5 4057fi
7a197a62 4058
d0191583 4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4060fi
ec6a6fbe
AK
4061ac_res=`eval 'as_val=${'$as_ac_Header'}
4062 $as_echo "$as_val"'`
4063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4064$as_echo "$ac_res" >&6; }
4065as_val=`eval 'as_val=${'$as_ac_Header'}
4066 $as_echo "$as_val"'`
4067 if test "x$as_val" = x""yes; then
d0191583 4068 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4069#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4070_ACEOF
795ca3e5 4071
d0191583
JM
4072ac_header_dirent=$ac_hdr; break
4073fi
ad6254c5 4074
d0191583
JM
4075done
4076# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4077if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4078 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4079$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4080if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4081 $as_echo_n "(cached) " >&6
ad6254c5 4082else
d0191583
JM
4083 ac_func_search_save_LIBS=$LIBS
4084cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
ad6254c5 4090
d0191583
JM
4091/* Override any GCC internal prototype to avoid an error.
4092 Use char because int might match the return type of a GCC
4093 builtin and then its argument prototype would still apply. */
4094#ifdef __cplusplus
4095extern "C"
4096#endif
4097char opendir ();
4098int
4099main ()
4100{
4101return opendir ();
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106for ac_lib in '' dir; do
4107 if test -z "$ac_lib"; then
4108 ac_res="none required"
4109 else
4110 ac_res=-l$ac_lib
4111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4112 fi
4113 rm -f conftest.$ac_objext conftest$ac_exeext
4114if { (ac_try="$ac_link"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
ec6a6fbe
AK
4119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4120$as_echo "$ac_try_echo") >&5
d0191583
JM
4121 (eval "$ac_link") 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
ec6a6fbe 4126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4127 (exit $ac_status); } && {
4128 test -z "$ac_c_werror_flag" ||
4129 test ! -s conftest.err
ec6a6fbe
AK
4130 } && test -s conftest$ac_exeext && {
4131 test "$cross_compiling" = yes ||
4132 $as_test_x conftest$ac_exeext
4133 }; then
d0191583
JM
4134 ac_cv_search_opendir=$ac_res
4135else
ec6a6fbe 4136 $as_echo "$as_me: failed program was:" >&5
d0191583 4137sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4138
ad6254c5 4139
795ca3e5 4140fi
ad6254c5 4141
ec6a6fbe 4142rm -rf conftest.dSYM
d0191583
JM
4143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4144 conftest$ac_exeext
4145 if test "${ac_cv_search_opendir+set}" = set; then
4146 break
7a197a62 4147fi
d0191583
JM
4148done
4149if test "${ac_cv_search_opendir+set}" = set; then
4150 :
7a197a62 4151else
d0191583 4152 ac_cv_search_opendir=no
7a197a62 4153fi
d0191583
JM
4154rm conftest.$ac_ext
4155LIBS=$ac_func_search_save_LIBS
7a197a62 4156fi
ec6a6fbe
AK
4157{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4158$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4159ac_res=$ac_cv_search_opendir
4160if test "$ac_res" != no; then
4161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4162
d0191583 4163fi
7a197a62 4164
7a197a62 4165else
ec6a6fbe
AK
4166 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4167$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4168if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4169 $as_echo_n "(cached) " >&6
7a197a62 4170else
d0191583
JM
4171 ac_func_search_save_LIBS=$LIBS
4172cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
7a197a62 4178
d0191583
JM
4179/* Override any GCC internal prototype to avoid an error.
4180 Use char because int might match the return type of a GCC
4181 builtin and then its argument prototype would still apply. */
4182#ifdef __cplusplus
4183extern "C"
4184#endif
4185char opendir ();
4186int
4187main ()
4188{
4189return opendir ();
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194for ac_lib in '' x; do
4195 if test -z "$ac_lib"; then
4196 ac_res="none required"
4197 else
4198 ac_res=-l$ac_lib
4199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4200 fi
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202if { (ac_try="$ac_link"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
ec6a6fbe
AK
4207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4208$as_echo "$ac_try_echo") >&5
d0191583
JM
4209 (eval "$ac_link") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
ec6a6fbe 4214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
ec6a6fbe
AK
4218 } && test -s conftest$ac_exeext && {
4219 test "$cross_compiling" = yes ||
4220 $as_test_x conftest$ac_exeext
4221 }; then
d0191583
JM
4222 ac_cv_search_opendir=$ac_res
4223else
ec6a6fbe 4224 $as_echo "$as_me: failed program was:" >&5
d0191583 4225sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4226
4227
4228fi
4229
ec6a6fbe 4230rm -rf conftest.dSYM
d0191583
JM
4231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4232 conftest$ac_exeext
4233 if test "${ac_cv_search_opendir+set}" = set; then
4234 break
7a197a62 4235fi
d0191583
JM
4236done
4237if test "${ac_cv_search_opendir+set}" = set; then
4238 :
7a197a62 4239else
d0191583 4240 ac_cv_search_opendir=no
7a197a62 4241fi
d0191583
JM
4242rm conftest.$ac_ext
4243LIBS=$ac_func_search_save_LIBS
4244fi
ec6a6fbe
AK
4245{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4246$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4247ac_res=$ac_cv_search_opendir
4248if test "$ac_res" != no; then
4249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4250
7a197a62 4251fi
7a197a62 4252
d0191583 4253fi
7a197a62 4254
ec6a6fbe
AK
4255{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4257if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4258 $as_echo_n "(cached) " >&6
7a197a62
AK
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266#include <stdlib.h>
4267#include <stdarg.h>
4268#include <string.h>
4269#include <float.h>
4270
4271int
4272main ()
4273{
4274
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279rm -f conftest.$ac_objext
4280if { (ac_try="$ac_compile"
4281case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
ec6a6fbe
AK
4285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4286$as_echo "$ac_try_echo") >&5
7a197a62
AK
4287 (eval "$ac_compile") 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
ec6a6fbe 4292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
7a197a62
AK
4297 ac_cv_header_stdc=yes
4298else
ec6a6fbe 4299 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_cv_header_stdc=no
4303fi
4304
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307if test $ac_cv_header_stdc = yes; then
4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4309 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315#include <string.h>
8106cdd5 4316
ad6254c5
AK
4317_ACEOF
4318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev/null 2>&1; then
4320 :
4321else
4322 ac_cv_header_stdc=no
80992638 4323fi
ad6254c5 4324rm -f conftest*
795ca3e5
AK
4325
4326fi
4327
ad6254c5
AK
4328if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
80992638 4336#include <stdlib.h>
ad6254c5
AK
4337
4338_ACEOF
80992638 4339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4340 $EGREP "free" >/dev/null 2>&1; then
4341 :
795ca3e5 4342else
ad6254c5 4343 ac_cv_header_stdc=no
795ca3e5 4344fi
80992638 4345rm -f conftest*
8106cdd5 4346
795ca3e5
AK
4347fi
4348
ad6254c5
AK
4349if test $ac_cv_header_stdc = yes; then
4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351 if test "$cross_compiling" = yes; then
4352 :
795ca3e5 4353else
ad6254c5 4354 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360#include <ctype.h>
7a197a62 4361#include <stdlib.h>
ad6254c5
AK
4362#if ((' ' & 0x0FF) == 0x020)
4363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365#else
4366# define ISLOWER(c) \
8a2fc586
AK
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4371#endif
ad6254c5
AK
4372
4373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374int
4375main ()
4376{
4377 int i;
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4380 || toupper (i) != TOUPPER (i))
7a197a62
AK
4381 return 2;
4382 return 0;
ad6254c5
AK
4383}
4384_ACEOF
4385rm -f conftest$ac_exeext
7a197a62
AK
4386if { (ac_try="$ac_link"
4387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
ec6a6fbe
AK
4391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392$as_echo "$ac_try_echo") >&5
7a197a62 4393 (eval "$ac_link") 2>&5
ad6254c5 4394 ac_status=$?
ec6a6fbe 4395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
ec6a6fbe
AK
4401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4402$as_echo "$ac_try_echo") >&5
7a197a62 4403 (eval "$ac_try") 2>&5
ad6254c5 4404 ac_status=$?
ec6a6fbe 4405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4406 (exit $ac_status); }; }; then
4407 :
795ca3e5 4408else
ec6a6fbe
AK
4409 $as_echo "$as_me: program exited with status $ac_status" >&5
4410$as_echo "$as_me: failed program was:" >&5
ad6254c5 4411sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4412
ad6254c5
AK
4413( exit $ac_status )
4414ac_cv_header_stdc=no
80992638 4415fi
ec6a6fbe 4416rm -rf conftest.dSYM
7a197a62 4417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4418fi
7a197a62
AK
4419
4420
ad6254c5
AK
4421fi
4422fi
ec6a6fbe
AK
4423{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4424$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4425if test $ac_cv_header_stdc = yes; then
4426
4427cat >>confdefs.h <<\_ACEOF
4428#define STDC_HEADERS 1
4429_ACEOF
795ca3e5
AK
4430
4431fi
4432
ec6a6fbe
AK
4433{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4434$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4435if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4436 $as_echo_n "(cached) " >&6
8106cdd5 4437else
ad6254c5 4438 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
80992638 4444#include <sys/types.h>
ad6254c5
AK
4445#include <sys/wait.h>
4446#ifndef WEXITSTATUS
7a197a62 4447# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4448#endif
4449#ifndef WIFEXITED
4450# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4451#endif
4452
4453int
4454main ()
4455{
4456 int s;
4457 wait (&s);
4458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463rm -f conftest.$ac_objext
7a197a62
AK
4464if { (ac_try="$ac_compile"
4465case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
ec6a6fbe
AK
4469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470$as_echo "$ac_try_echo") >&5
7a197a62 4471 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4472 ac_status=$?
8a2fc586
AK
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
ec6a6fbe 4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4481 ac_cv_header_sys_wait_h=yes
4482else
ec6a6fbe 4483 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
7a197a62 4486 ac_cv_header_sys_wait_h=no
8106cdd5 4487fi
7a197a62
AK
4488
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4490fi
ec6a6fbe
AK
4491{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4492$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4493if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4494
ad6254c5
AK
4495cat >>confdefs.h <<\_ACEOF
4496#define HAVE_SYS_WAIT_H 1
4497_ACEOF
795ca3e5
AK
4498
4499fi
4500
ec6a6fbe
AK
4501{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4502$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4503if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4504 $as_echo_n "(cached) " >&6
795ca3e5 4505else
ad6254c5 4506 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
795ca3e5
AK
4512#include <sys/types.h>
4513#include <sys/time.h>
4514#include <time.h>
ad6254c5
AK
4515
4516int
4517main ()
4518{
4519if ((struct tm *) 0)
4520return 0;
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525rm -f conftest.$ac_objext
7a197a62
AK
4526if { (ac_try="$ac_compile"
4527case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
ec6a6fbe
AK
4531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532$as_echo "$ac_try_echo") >&5
7a197a62 4533 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4534 ac_status=$?
8a2fc586
AK
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
ec6a6fbe 4538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4539 (exit $ac_status); } && {
4540 test -z "$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4543 ac_cv_header_time=yes
4544else
ec6a6fbe 4545 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
7a197a62 4548 ac_cv_header_time=no
795ca3e5 4549fi
7a197a62
AK
4550
4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4552fi
ec6a6fbe
AK
4553{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4554$as_echo "$ac_cv_header_time" >&6; }
80992638 4555if test $ac_cv_header_time = yes; then
ad6254c5
AK
4556
4557cat >>confdefs.h <<\_ACEOF
795ca3e5 4558#define TIME_WITH_SYS_TIME 1
ad6254c5 4559_ACEOF
b896caa1 4560
8106cdd5 4561fi
b896caa1 4562
b896caa1 4563
d0191583
JM
4564# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4576do
ec6a6fbe
AK
4577as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4581 $as_echo_n "(cached) " >&6
d0191583
JM
4582else
4583 cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589$ac_includes_default
4590
4591#include <$ac_header>
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (ac_try="$ac_compile"
4595case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598esac
ec6a6fbe
AK
4599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600$as_echo "$ac_try_echo") >&5
d0191583
JM
4601 (eval "$ac_compile") 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
ec6a6fbe 4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4611 eval "$as_ac_Header=yes"
4612else
ec6a6fbe 4613 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 eval "$as_ac_Header=no"
4617fi
4618
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620fi
ec6a6fbe
AK
4621ac_res=`eval 'as_val=${'$as_ac_Header'}
4622 $as_echo "$as_val"'`
4623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4624$as_echo "$ac_res" >&6; }
4625as_val=`eval 'as_val=${'$as_ac_Header'}
4626 $as_echo "$as_val"'`
4627 if test "x$as_val" = x""yes; then
d0191583 4628 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4630_ACEOF
4631
4632fi
4633
4634done
4635
b896caa1 4636
b896caa1
AK
4637
4638
795ca3e5 4639
8106cdd5 4640
80992638 4641
795ca3e5 4642
a38df97f 4643
80992638 4644
d0191583
JM
4645
4646
4647
4648
4649
4650for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4651 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4652do
ec6a6fbe 4653as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4656$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4658 $as_echo_n "(cached) " >&6
d0191583 4659fi
ec6a6fbe
AK
4660ac_res=`eval 'as_val=${'$as_ac_Header'}
4661 $as_echo "$as_val"'`
4662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4663$as_echo "$ac_res" >&6; }
ad6254c5 4664else
d0191583 4665 # Is the header compilable?
ec6a6fbe
AK
4666{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4668cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
4674$ac_includes_default
ad6254c5
AK
4675#include <$ac_header>
4676_ACEOF
4677rm -f conftest.$ac_objext
7a197a62
AK
4678if { (ac_try="$ac_compile"
4679case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
ec6a6fbe
AK
4683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684$as_echo "$ac_try_echo") >&5
7a197a62 4685 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4686 ac_status=$?
8a2fc586
AK
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
ec6a6fbe 4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
d0191583 4695 ac_header_compiler=yes
ad6254c5 4696else
ec6a6fbe 4697 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4698sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4699
d0191583 4700 ac_header_compiler=no
ad6254c5 4701fi
7a197a62
AK
4702
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4704{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4705$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4706
4707# Is the header present?
ec6a6fbe
AK
4708{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4709$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4710cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h. */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h. */
4716#include <$ac_header>
4717_ACEOF
4718if { (ac_try="$ac_cpp conftest.$ac_ext"
4719case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
ec6a6fbe
AK
4723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724$as_echo "$ac_try_echo") >&5
d0191583
JM
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
ec6a6fbe 4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 ac_header_preproc=yes
4736else
ec6a6fbe 4737 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 ac_header_preproc=no
4741fi
4742
4743rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4744{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4745$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4746
4747# So? What about this header?
4748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4749 yes:no: )
ec6a6fbe
AK
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4751$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4753$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4754 ac_header_preproc=yes
4755 ;;
4756 no:yes:* )
ec6a6fbe
AK
4757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4758$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4760$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4762$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4764$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4766$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4768$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4769
4770 ;;
4771esac
ec6a6fbe
AK
4772{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4773$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4775 $as_echo_n "(cached) " >&6
d0191583
JM
4776else
4777 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4778fi
ec6a6fbe
AK
4779ac_res=`eval 'as_val=${'$as_ac_Header'}
4780 $as_echo "$as_val"'`
4781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4782$as_echo "$ac_res" >&6; }
d0191583
JM
4783
4784fi
ec6a6fbe
AK
4785as_val=`eval 'as_val=${'$as_ac_Header'}
4786 $as_echo "$as_val"'`
4787 if test "x$as_val" = x""yes; then
ad6254c5 4788 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4790_ACEOF
a38df97f 4791
d0191583 4792else
ec6a6fbe
AK
4793 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4794$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4795 { (exit 1); exit 1; }; }
80992638
AK
4796fi
4797
ad6254c5
AK
4798done
4799
7d1552c9 4800
d0191583
JM
4801case "$host_os" in
4802 linux*)
7d1552c9 4803
80992638 4804
5a52dca9 4805
d0191583 4806for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4807do
ec6a6fbe 4808as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4811$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4813 $as_echo_n "(cached) " >&6
ad6254c5 4814fi
ec6a6fbe
AK
4815ac_res=`eval 'as_val=${'$as_ac_Header'}
4816 $as_echo "$as_val"'`
4817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4818$as_echo "$ac_res" >&6; }
ad6254c5
AK
4819else
4820 # Is the header compilable?
ec6a6fbe
AK
4821{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4823cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829$ac_includes_default
4830#include <$ac_header>
4831_ACEOF
4832rm -f conftest.$ac_objext
7a197a62
AK
4833if { (ac_try="$ac_compile"
4834case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837esac
ec6a6fbe
AK
4838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839$as_echo "$ac_try_echo") >&5
7a197a62 4840 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4841 ac_status=$?
8a2fc586
AK
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
ec6a6fbe 4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
fc54be10
AK
4850 ac_header_compiler=yes
4851else
ec6a6fbe 4852 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 ac_header_compiler=no
4856fi
4857
4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4859{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4860$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4861
4862# Is the header present?
ec6a6fbe
AK
4863{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4864$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4865cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#include <$ac_header>
4872_ACEOF
7a197a62
AK
4873if { (ac_try="$ac_cpp conftest.$ac_ext"
4874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
ec6a6fbe
AK
4878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879$as_echo "$ac_try_echo") >&5
7a197a62 4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
ec6a6fbe 4885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 }; then
ad6254c5
AK
4890 ac_header_preproc=yes
4891else
ec6a6fbe 4892 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_header_preproc=no
4896fi
7a197a62 4897
ad6254c5 4898rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4899{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4900$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4901
4902# So? What about this header?
8a2fc586
AK
4903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4904 yes:no: )
ec6a6fbe
AK
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4906$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4908$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4909 ac_header_preproc=yes
ad6254c5 4910 ;;
8a2fc586 4911 no:yes:* )
ec6a6fbe
AK
4912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4913$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4915$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4917$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4919$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4921$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4923$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4924
ad6254c5
AK
4925 ;;
4926esac
ec6a6fbe
AK
4927{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4928$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4930 $as_echo_n "(cached) " >&6
ad6254c5 4931else
8a2fc586 4932 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4933fi
ec6a6fbe
AK
4934ac_res=`eval 'as_val=${'$as_ac_Header'}
4935 $as_echo "$as_val"'`
4936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4937$as_echo "$ac_res" >&6; }
ad6254c5
AK
4938
4939fi
ec6a6fbe
AK
4940as_val=`eval 'as_val=${'$as_ac_Header'}
4941 $as_echo "$as_val"'`
4942 if test "x$as_val" = x""yes; then
ad6254c5 4943 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4945_ACEOF
b896caa1 4946
d8ac0fbc 4947else
ec6a6fbe
AK
4948 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4949$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4950 { (exit 1); exit 1; }; }
80992638
AK
4951fi
4952
ad6254c5 4953done
d0191583
JM
4954 ;;
4955 darwin*)
d8ac0fbc 4956
d8ac0fbc 4957
d0191583 4958for ac_header in machine/endian.h sys/disk.h
ad6254c5 4959do
ec6a6fbe 4960as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4963$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4965 $as_echo_n "(cached) " >&6
ad6254c5 4966fi
ec6a6fbe
AK
4967ac_res=`eval 'as_val=${'$as_ac_Header'}
4968 $as_echo "$as_val"'`
4969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4970$as_echo "$ac_res" >&6; }
ad6254c5
AK
4971else
4972 # Is the header compilable?
ec6a6fbe
AK
4973{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4974$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4975cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981$ac_includes_default
4982#include <$ac_header>
4983_ACEOF
4984rm -f conftest.$ac_objext
7a197a62
AK
4985if { (ac_try="$ac_compile"
4986case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
ec6a6fbe
AK
4990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991$as_echo "$ac_try_echo") >&5
7a197a62 4992 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4993 ac_status=$?
8a2fc586
AK
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
ec6a6fbe 4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4998 (exit $ac_status); } && {
4999 test -z "$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5002 ac_header_compiler=yes
5003else
ec6a6fbe 5004 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
7a197a62 5007 ac_header_compiler=no
ad6254c5 5008fi
7a197a62
AK
5009
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5011{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5012$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5013
5014# Is the header present?
ec6a6fbe
AK
5015{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5016$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5017cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#include <$ac_header>
5024_ACEOF
7a197a62
AK
5025if { (ac_try="$ac_cpp conftest.$ac_ext"
5026case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
ec6a6fbe
AK
5030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5031$as_echo "$ac_try_echo") >&5
7a197a62 5032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
ec6a6fbe 5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5038 (exit $ac_status); } >/dev/null && {
5039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 }; then
ad6254c5
AK
5042 ac_header_preproc=yes
5043else
ec6a6fbe 5044 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047 ac_header_preproc=no
5048fi
7a197a62 5049
ad6254c5 5050rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5051{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5052$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5053
5054# So? What about this header?
8a2fc586
AK
5055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5056 yes:no: )
ec6a6fbe
AK
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5058$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5060$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5061 ac_header_preproc=yes
ad6254c5 5062 ;;
8a2fc586 5063 no:yes:* )
ec6a6fbe
AK
5064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5065$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5067$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5069$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5071$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5073$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5075$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5076
ad6254c5
AK
5077 ;;
5078esac
ec6a6fbe
AK
5079{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5080$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5082 $as_echo_n "(cached) " >&6
ad6254c5 5083else
8a2fc586 5084 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5085fi
ec6a6fbe
AK
5086ac_res=`eval 'as_val=${'$as_ac_Header'}
5087 $as_echo "$as_val"'`
5088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5089$as_echo "$ac_res" >&6; }
ad6254c5
AK
5090
5091fi
ec6a6fbe
AK
5092as_val=`eval 'as_val=${'$as_ac_Header'}
5093 $as_echo "$as_val"'`
5094 if test "x$as_val" = x""yes; then
ad6254c5 5095 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5097_ACEOF
4922197a 5098
4922197a 5099else
ec6a6fbe
AK
5100 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5101$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5102 { (exit 1); exit 1; }; }
80992638
AK
5103fi
5104
ad6254c5 5105done
d0191583
JM
5106 ;;
5107esac
4922197a 5108
4922197a 5109
4922197a 5110
ad6254c5
AK
5111
5112
d0191583
JM
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5126 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5127 sys/types.h unistd.h
ad6254c5 5128do
ec6a6fbe 5129as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5132$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5134 $as_echo_n "(cached) " >&6
ad6254c5 5135fi
ec6a6fbe
AK
5136ac_res=`eval 'as_val=${'$as_ac_Header'}
5137 $as_echo "$as_val"'`
5138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5139$as_echo "$ac_res" >&6; }
795ca3e5 5140else
ad6254c5 5141 # Is the header compilable?
ec6a6fbe
AK
5142{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5143$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5144cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5145/* confdefs.h. */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h. */
5150$ac_includes_default
5151#include <$ac_header>
5152_ACEOF
5153rm -f conftest.$ac_objext
7a197a62
AK
5154if { (ac_try="$ac_compile"
5155case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158esac
ec6a6fbe
AK
5159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160$as_echo "$ac_try_echo") >&5
7a197a62 5161 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5162 ac_status=$?
8a2fc586
AK
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
ec6a6fbe 5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5167 (exit $ac_status); } && {
5168 test -z "$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5171 ac_header_compiler=yes
5172else
ec6a6fbe 5173 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
7a197a62 5176 ac_header_compiler=no
ad6254c5 5177fi
7a197a62
AK
5178
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5180{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5181$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5182
5183# Is the header present?
ec6a6fbe
AK
5184{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5185$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5186cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5192#include <$ac_header>
5193_ACEOF
7a197a62
AK
5194if { (ac_try="$ac_cpp conftest.$ac_ext"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
ec6a6fbe
AK
5199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5200$as_echo "$ac_try_echo") >&5
7a197a62 5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
ec6a6fbe 5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5207 (exit $ac_status); } >/dev/null && {
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5210 }; then
ad6254c5
AK
5211 ac_header_preproc=yes
5212else
ec6a6fbe 5213 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 ac_header_preproc=no
5217fi
7a197a62 5218
ad6254c5 5219rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5220{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5221$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5222
5223# So? What about this header?
8a2fc586
AK
5224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5225 yes:no: )
ec6a6fbe
AK
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5227$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5229$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5230 ac_header_preproc=yes
ad6254c5 5231 ;;
8a2fc586 5232 no:yes:* )
ec6a6fbe
AK
5233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5234$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5236$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5238$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5240$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5242$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5244$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5245
ad6254c5
AK
5246 ;;
5247esac
ec6a6fbe
AK
5248{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5249$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5251 $as_echo_n "(cached) " >&6
ad6254c5 5252else
8a2fc586 5253 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5254fi
ec6a6fbe
AK
5255ac_res=`eval 'as_val=${'$as_ac_Header'}
5256 $as_echo "$as_val"'`
5257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5258$as_echo "$ac_res" >&6; }
80992638 5259
ad6254c5 5260fi
ec6a6fbe
AK
5261as_val=`eval 'as_val=${'$as_ac_Header'}
5262 $as_echo "$as_val"'`
5263 if test "x$as_val" = x""yes; then
ad6254c5 5264 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5266_ACEOF
795ca3e5 5267
795ca3e5 5268else
ec6a6fbe
AK
5269 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5270$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5271 { (exit 1); exit 1; }; }
80992638
AK
5272fi
5273
ad6254c5 5274done
ad6254c5 5275
795ca3e5 5276
d0191583
JM
5277
5278for ac_header in termios.h sys/statvfs.h
ad6254c5 5279do
ec6a6fbe 5280as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5283$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5285 $as_echo_n "(cached) " >&6
ad6254c5 5286fi
ec6a6fbe
AK
5287ac_res=`eval 'as_val=${'$as_ac_Header'}
5288 $as_echo "$as_val"'`
5289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5290$as_echo "$ac_res" >&6; }
ad6254c5
AK
5291else
5292 # Is the header compilable?
ec6a6fbe
AK
5293{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5294$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5295cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301$ac_includes_default
5302#include <$ac_header>
5303_ACEOF
5304rm -f conftest.$ac_objext
7a197a62
AK
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
ec6a6fbe
AK
5310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5311$as_echo "$ac_try_echo") >&5
7a197a62 5312 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5313 ac_status=$?
8a2fc586
AK
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
ec6a6fbe 5317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5322 ac_header_compiler=yes
5323else
ec6a6fbe 5324 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
7a197a62 5327 ac_header_compiler=no
ad6254c5 5328fi
7a197a62
AK
5329
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5331{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5332$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5333
5334# Is the header present?
ec6a6fbe
AK
5335{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5336$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5337cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#include <$ac_header>
5344_ACEOF
7a197a62
AK
5345if { (ac_try="$ac_cpp conftest.$ac_ext"
5346case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
ec6a6fbe
AK
5350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5351$as_echo "$ac_try_echo") >&5
7a197a62 5352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
ec6a6fbe 5357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5358 (exit $ac_status); } >/dev/null && {
5359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 }; then
ad6254c5
AK
5362 ac_header_preproc=yes
5363else
ec6a6fbe 5364 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_header_preproc=no
5368fi
7a197a62 5369
ad6254c5 5370rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5371{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5372$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5373
5374# So? What about this header?
8a2fc586
AK
5375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5376 yes:no: )
ec6a6fbe
AK
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5378$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5380$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5381 ac_header_preproc=yes
ad6254c5 5382 ;;
8a2fc586 5383 no:yes:* )
ec6a6fbe
AK
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5385$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5387$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5389$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5391$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5393$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5395$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5396
ad6254c5
AK
5397 ;;
5398esac
ec6a6fbe
AK
5399{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5400$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5402 $as_echo_n "(cached) " >&6
ad6254c5 5403else
8a2fc586 5404 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5405fi
ec6a6fbe
AK
5406ac_res=`eval 'as_val=${'$as_ac_Header'}
5407 $as_echo "$as_val"'`
5408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5409$as_echo "$ac_res" >&6; }
b896caa1 5410
ad6254c5 5411fi
ec6a6fbe
AK
5412as_val=`eval 'as_val=${'$as_ac_Header'}
5413 $as_echo "$as_val"'`
5414 if test "x$as_val" = x""yes; then
ad6254c5 5415 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5417_ACEOF
5418
80992638
AK
5419fi
5420
ad6254c5 5421done
d0191583 5422
d3c8211f 5423
80992638 5424################################################################################
ec6a6fbe
AK
5425{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5426$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5427if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5428 $as_echo_n "(cached) " >&6
d3c8211f 5429else
ad6254c5 5430 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
5436
5437int
5438main ()
5439{
5440/* FIXME: Include the comments suggested by Paul. */
5441#ifndef __cplusplus
5442 /* Ultrix mips cc rejects this. */
5443 typedef int charset[2];
25fbec5b 5444 const charset cs;
ad6254c5 5445 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5446 char const *const *pcpcc;
5447 char **ppc;
ad6254c5
AK
5448 /* NEC SVR4.0.2 mips cc rejects this. */
5449 struct point {int x, y;};
5450 static struct point const zero = {0,0};
5451 /* AIX XL C 1.02.0.0 rejects this.
5452 It does not let you subtract one const X* pointer from another in
5453 an arm of an if-expression whose if-part is not a constant
5454 expression */
5455 const char *g = "string";
25fbec5b 5456 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5457 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5458 ++pcpcc;
5459 ppc = (char**) pcpcc;
5460 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5461 { /* SCO 3.2v4 cc rejects this. */
5462 char *t;
5463 char const *s = 0 ? (char *) 0 : (char const *) 0;
5464
5465 *t++ = 0;
7a197a62 5466 if (s) return 0;
ad6254c5
AK
5467 }
5468 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5469 int x[] = {25, 17};
5470 const int *foo = &x[0];
5471 ++foo;
5472 }
5473 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5474 typedef const int *iptr;
5475 iptr p = 0;
5476 ++p;
5477 }
5478 { /* AIX XL C 1.02.0.0 rejects this saying
5479 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5480 struct s { int j; const int *ap[3]; };
5481 struct s *b; b->j = 5;
5482 }
5483 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5484 const int foo = 10;
7a197a62 5485 if (!foo) return 0;
ad6254c5 5486 }
25fbec5b 5487 return !cs[0] && !zero.x;
ad6254c5
AK
5488#endif
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext
7a197a62
AK
5495if { (ac_try="$ac_compile"
5496case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499esac
ec6a6fbe
AK
5500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5501$as_echo "$ac_try_echo") >&5
7a197a62 5502 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5503 ac_status=$?
8a2fc586
AK
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
ec6a6fbe 5507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5508 (exit $ac_status); } && {
5509 test -z "$ac_c_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5512 ac_cv_c_const=yes
5513else
ec6a6fbe 5514 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
7a197a62 5517 ac_cv_c_const=no
ad6254c5 5518fi
7a197a62
AK
5519
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5521fi
ec6a6fbe
AK
5522{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5523$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5524if test $ac_cv_c_const = no; then
80992638 5525
ad6254c5 5526cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5527#define const /**/
ad6254c5 5528_ACEOF
80992638 5529
d3c8211f 5530fi
d3c8211f 5531
ec6a6fbe
AK
5532{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5533$as_echo_n "checking for inline... " >&6; }
ad6254c5 5534if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5535 $as_echo_n "(cached) " >&6
8ef2b021 5536else
ad6254c5
AK
5537 ac_cv_c_inline=no
5538for ac_kw in inline __inline__ __inline; do
5539 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
5545#ifndef __cplusplus
5546typedef int foo_t;
5547static $ac_kw foo_t static_foo () {return 0; }
5548$ac_kw foo_t foo () {return 0; }
5549#endif
80992638 5550
ad6254c5
AK
5551_ACEOF
5552rm -f conftest.$ac_objext
7a197a62
AK
5553if { (ac_try="$ac_compile"
5554case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557esac
ec6a6fbe
AK
5558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5559$as_echo "$ac_try_echo") >&5
7a197a62 5560 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5561 ac_status=$?
8a2fc586
AK
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
ec6a6fbe 5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
7a197a62 5570 ac_cv_c_inline=$ac_kw
ad6254c5 5571else
ec6a6fbe 5572 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5573sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5574
7a197a62 5575
8ce0cbda 5576fi
7a197a62
AK
5577
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 test "$ac_cv_c_inline" != no && break
ad6254c5 5580done
8ce0cbda 5581
8ce0cbda 5582fi
ec6a6fbe
AK
5583{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5584$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5585
5586
ad6254c5
AK
5587case $ac_cv_c_inline in
5588 inline | yes) ;;
8a2fc586
AK
5589 *)
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595#ifndef __cplusplus
5596#define inline $ac_val
5597#endif
c1c065a3 5598_ACEOF
d0191583
JM
5599 ;;
5600esac
5601
ec6a6fbe
AK
5602{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5603$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5604if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5605 $as_echo_n "(cached) " >&6
d0191583
JM
5606else
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613$ac_includes_default
5614int
5615main ()
5616{
5617static struct stat ac_aggr;
5618if (ac_aggr.st_rdev)
5619return 0;
5620 ;
5621 return 0;
5622}
5623_ACEOF
5624rm -f conftest.$ac_objext
5625if { (ac_try="$ac_compile"
5626case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
ec6a6fbe
AK
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
5632 (eval "$ac_compile") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
5642 ac_cv_member_struct_stat_st_rdev=yes
5643else
5644 $as_echo "$as_me: failed program was:" >&5
5645sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h. */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h. */
5653$ac_includes_default
5654int
5655main ()
5656{
5657static struct stat ac_aggr;
5658if (sizeof ac_aggr.st_rdev)
5659return 0;
5660 ;
5661 return 0;
5662}
5663_ACEOF
5664rm -f conftest.$ac_objext
5665if { (ac_try="$ac_compile"
5666case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669esac
5670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5671$as_echo "$ac_try_echo") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_cv_member_struct_stat_st_rdev=yes
5683else
5684 $as_echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_member_struct_stat_st_rdev=no
5688fi
5689
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692
5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694fi
5695{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5696$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5697if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5698
5699cat >>confdefs.h <<_ACEOF
5700#define HAVE_STRUCT_STAT_ST_RDEV 1
5701_ACEOF
5702
5703
5704fi
5705
5706{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5707$as_echo_n "checking for off_t... " >&6; }
5708if test "${ac_cv_type_off_t+set}" = set; then
5709 $as_echo_n "(cached) " >&6
5710else
5711 ac_cv_type_off_t=no
5712cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718$ac_includes_default
5719int
5720main ()
5721{
5722if (sizeof (off_t))
5723 return 0;
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (ac_try="$ac_compile"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5735$as_echo "$ac_try_echo") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && {
5743 test -z "$ac_c_werror_flag" ||
5744 test ! -s conftest.err
5745 } && test -s conftest.$ac_objext; then
5746 cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
5752$ac_includes_default
5753int
5754main ()
5755{
5756if (sizeof ((off_t)))
5757 return 0;
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762rm -f conftest.$ac_objext
5763if { (ac_try="$ac_compile"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5769$as_echo "$ac_try_echo") >&5
5770 (eval "$ac_compile") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest.$ac_objext; then
5780 :
5781else
5782 $as_echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ac_cv_type_off_t=yes
5786fi
5787
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789else
5790 $as_echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793
5794fi
5795
5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797fi
5798{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5799$as_echo "$ac_cv_type_off_t" >&6; }
5800if test "x$ac_cv_type_off_t" = x""yes; then
5801 :
5802else
5803
5804cat >>confdefs.h <<_ACEOF
5805#define off_t long int
5806_ACEOF
5807
5808fi
5809
5810{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5811$as_echo_n "checking for pid_t... " >&6; }
5812if test "${ac_cv_type_pid_t+set}" = set; then
5813 $as_echo_n "(cached) " >&6
5814else
5815 ac_cv_type_pid_t=no
5816cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */
5822$ac_includes_default
5823int
5824main ()
5825{
5826if (sizeof (pid_t))
5827 return 0;
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext
5833if { (ac_try="$ac_compile"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839$as_echo "$ac_try_echo") >&5
d0191583
JM
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
ec6a6fbe 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
ec6a6fbe 5850 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856$ac_includes_default
5857int
5858main ()
5859{
ec6a6fbe
AK
5860if (sizeof ((pid_t)))
5861 return 0;
d0191583
JM
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext
5867if { (ac_try="$ac_compile"
5868case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
ec6a6fbe
AK
5872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873$as_echo "$ac_try_echo") >&5
d0191583
JM
5874 (eval "$ac_compile") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
ec6a6fbe 5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest.$ac_objext; then
ec6a6fbe 5884 :
d0191583 5885else
ec6a6fbe 5886 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
ec6a6fbe 5889 ac_cv_type_pid_t=yes
d0191583
JM
5890fi
5891
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5893else
5894 $as_echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897
d0191583
JM
5898fi
5899
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901fi
ec6a6fbe
AK
5902{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5903$as_echo "$ac_cv_type_pid_t" >&6; }
5904if test "x$ac_cv_type_pid_t" = x""yes; then
5905 :
5906else
d0191583
JM
5907
5908cat >>confdefs.h <<_ACEOF
ec6a6fbe 5909#define pid_t int
d0191583
JM
5910_ACEOF
5911
d0191583 5912fi
8ce0cbda 5913
ec6a6fbe
AK
5914{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5915$as_echo_n "checking return type of signal handlers... " >&6; }
5916if test "${ac_cv_type_signal+set}" = set; then
5917 $as_echo_n "(cached) " >&6
ad6254c5 5918else
b145d876
ZK
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
ec6a6fbe
AK
5925#include <sys/types.h>
5926#include <signal.h>
5927
b145d876
ZK
5928int
5929main ()
5930{
ec6a6fbe 5931return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936rm -f conftest.$ac_objext
7a197a62
AK
5937if { (ac_try="$ac_compile"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
ec6a6fbe
AK
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
7a197a62 5944 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5945 ac_status=$?
8a2fc586
AK
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
ec6a6fbe 5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
ec6a6fbe 5954 ac_cv_type_signal=int
b145d876 5955else
ec6a6fbe 5956 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
ec6a6fbe 5959 ac_cv_type_signal=void
ad6254c5 5960fi
b145d876
ZK
5961
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963fi
ec6a6fbe
AK
5964{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5965$as_echo "$ac_cv_type_signal" >&6; }
80992638 5966
ad6254c5 5967cat >>confdefs.h <<_ACEOF
ec6a6fbe 5968#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5969_ACEOF
199e490e 5970
b896caa1 5971
ec6a6fbe
AK
5972{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5973$as_echo_n "checking for size_t... " >&6; }
5974if test "${ac_cv_type_size_t+set}" = set; then
5975 $as_echo_n "(cached) " >&6
ad6254c5 5976else
ec6a6fbe
AK
5977 ac_cv_type_size_t=no
5978cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h. */
5984$ac_includes_default
5985int
5986main ()
5987{
ec6a6fbe
AK
5988if (sizeof (size_t))
5989 return 0;
ad6254c5
AK
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext
7a197a62
AK
5995if { (ac_try="$ac_compile"
5996case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999esac
ec6a6fbe
AK
6000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001$as_echo "$ac_try_echo") >&5
7a197a62 6002 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6003 ac_status=$?
8a2fc586
AK
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
ec6a6fbe 6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
d0191583
JM
6012 cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h. */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */
ec6a6fbe 6018$ac_includes_default
d0191583
JM
6019int
6020main ()
6021{
ec6a6fbe
AK
6022if (sizeof ((size_t)))
6023 return 0;
d0191583
JM
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
ec6a6fbe
AK
6034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6035$as_echo "$ac_try_echo") >&5
d0191583
JM
6036 (eval "$ac_compile") 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
ec6a6fbe 6041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_objext; then
ec6a6fbe 6046 :
d0191583 6047else
ec6a6fbe 6048 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
ec6a6fbe
AK
6051 ac_cv_type_size_t=yes
6052fi
6053
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055else
6056 $as_echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059
d0191583
JM
6060fi
6061
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063fi
ec6a6fbe
AK
6064{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6065$as_echo "$ac_cv_type_size_t" >&6; }
6066if test "x$ac_cv_type_size_t" = x""yes; then
6067 :
6068else
d0191583
JM
6069
6070cat >>confdefs.h <<_ACEOF
ec6a6fbe 6071#define size_t unsigned int
d0191583
JM
6072_ACEOF
6073
ec6a6fbe 6074fi
d0191583 6075
ec6a6fbe
AK
6076{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6077$as_echo_n "checking for mode_t... " >&6; }
6078if test "${ac_cv_type_mode_t+set}" = set; then
6079 $as_echo_n "(cached) " >&6
8106cdd5 6080else
ec6a6fbe
AK
6081 ac_cv_type_mode_t=no
6082cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088$ac_includes_default
6089int
6090main ()
6091{
ec6a6fbe
AK
6092if (sizeof (mode_t))
6093 return 0;
ad6254c5
AK
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext
7a197a62
AK
6099if { (ac_try="$ac_compile"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
ec6a6fbe
AK
6104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105$as_echo "$ac_try_echo") >&5
7a197a62 6106 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6107 ac_status=$?
8a2fc586
AK
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
ec6a6fbe 6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
b145d876
ZK
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122$ac_includes_default
6123int
6124main ()
6125{
ec6a6fbe
AK
6126if (sizeof ((mode_t)))
6127 return 0;
ad6254c5
AK
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext
7a197a62
AK
6133if { (ac_try="$ac_compile"
6134case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
ec6a6fbe
AK
6138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6139$as_echo "$ac_try_echo") >&5
7a197a62 6140 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6141 ac_status=$?
8a2fc586
AK
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
ec6a6fbe 6145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6150 :
6151else
6152 $as_echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_cv_type_mode_t=yes
6156fi
6157
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6159else
ec6a6fbe 6160 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
ec6a6fbe 6163
80992638 6164fi
7a197a62
AK
6165
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6167fi
ec6a6fbe
AK
6168{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6169$as_echo "$ac_cv_type_mode_t" >&6; }
6170if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6171 :
6172else
80992638 6173
ad6254c5
AK
6174cat >>confdefs.h <<_ACEOF
6175#define mode_t int
6176_ACEOF
6177
6178fi
6179
ec6a6fbe
AK
6180{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6181$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6182if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6183 $as_echo_n "(cached) " >&6
ad6254c5
AK
6184else
6185 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191$ac_includes_default
6192int
6193main ()
6194{
6195static struct stat ac_aggr;
6196if (ac_aggr.st_rdev)
6197return 0;
6198 ;
6199 return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext
7a197a62
AK
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
ec6a6fbe
AK
6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209$as_echo "$ac_try_echo") >&5
7a197a62 6210 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6211 ac_status=$?
8a2fc586
AK
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
ec6a6fbe 6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6220 ac_cv_member_struct_stat_st_rdev=yes
6221else
ec6a6fbe 6222 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
7a197a62 6225 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231$ac_includes_default
6232int
6233main ()
6234{
6235static struct stat ac_aggr;
6236if (sizeof ac_aggr.st_rdev)
6237return 0;
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
7a197a62
AK
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
ec6a6fbe
AK
6248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249$as_echo "$ac_try_echo") >&5
7a197a62 6250 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6251 ac_status=$?
8a2fc586
AK
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
ec6a6fbe 6255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6260 ac_cv_member_struct_stat_st_rdev=yes
6261else
ec6a6fbe 6262 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
7a197a62 6265 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6266fi
7a197a62
AK
6267
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6269fi
7a197a62
AK
6270
6271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6272fi
ec6a6fbe
AK
6273{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6274$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6275if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6276
6277cat >>confdefs.h <<_ACEOF
6278#define HAVE_STRUCT_STAT_ST_RDEV 1
6279_ACEOF
6280
6281
ad6254c5
AK
6282fi
6283
ec6a6fbe
AK
6284{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6285$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6286if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6287 $as_echo_n "(cached) " >&6
ad6254c5
AK
6288else
6289 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */
6295#include <sys/types.h>
6296#include <time.h>
6297
6298int
6299main ()
6300{
25fbec5b
AK
6301struct tm tm;
6302 int *p = &tm.tm_sec;
ec6a6fbe 6303 return !p;
ad6254c5
AK
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308rm -f conftest.$ac_objext
7a197a62
AK
6309if { (ac_try="$ac_compile"
6310case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
ec6a6fbe
AK
6314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6315$as_echo "$ac_try_echo") >&5
7a197a62 6316 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6317 ac_status=$?
8a2fc586
AK
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
ec6a6fbe 6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6326 ac_cv_struct_tm=time.h
6327else
ec6a6fbe 6328 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6329sed 's/^/| /' conftest.$ac_ext >&5
6330
7a197a62 6331 ac_cv_struct_tm=sys/time.h
ad6254c5 6332fi
7a197a62
AK
6333
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6335fi
ec6a6fbe
AK
6336{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6337$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6338if test $ac_cv_struct_tm = sys/time.h; then
6339
6340cat >>confdefs.h <<\_ACEOF
6341#define TM_IN_SYS_TIME 1
6342_ACEOF
6343
6344fi
809fae91 6345
795ca3e5 6346
80992638 6347################################################################################
ad6254c5
AK
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
d0191583
JM
6362
6363
6364
6365for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6366 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6367 uname
ad6254c5 6368do
ec6a6fbe
AK
6369as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6370{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6371$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6373 $as_echo_n "(cached) " >&6
795ca3e5 6374else
ad6254c5 6375 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h. */
8a2fc586
AK
6381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6383#define $ac_func innocuous_$ac_func
6384
ad6254c5
AK
6385/* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char $ac_func (); below.
6387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388 <limits.h> exists even on freestanding compilers. */
8a2fc586 6389
ad6254c5
AK
6390#ifdef __STDC__
6391# include <limits.h>
6392#else
6393# include <assert.h>
6394#endif
8a2fc586
AK
6395
6396#undef $ac_func
6397
7a197a62
AK
6398/* Override any GCC internal prototype to avoid an error.
6399 Use char because int might match the return type of a GCC
6400 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6401#ifdef __cplusplus
6402extern "C"
ad6254c5 6403#endif
ad6254c5
AK
6404char $ac_func ();
6405/* The GNU C library defines this for functions which it implements
6406 to always fail with ENOSYS. Some functions are actually named
6407 something starting with __ and the normal name is an alias. */
7a197a62 6408#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6409choke me
ad6254c5
AK
6410#endif
6411
6412int
6413main ()
6414{
7a197a62 6415return $ac_func ();
ad6254c5
AK
6416 ;
6417 return 0;
6418}
6419_ACEOF
6420rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6421if { (ac_try="$ac_link"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
ec6a6fbe
AK
6426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6427$as_echo "$ac_try_echo") >&5
7a197a62 6428 (eval "$ac_link") 2>conftest.er1
ad6254c5 6429 ac_status=$?
8a2fc586
AK
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
ec6a6fbe 6433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
ec6a6fbe
AK
6437 } && test -s conftest$ac_exeext && {
6438 test "$cross_compiling" = yes ||
6439 $as_test_x conftest$ac_exeext
6440 }; then
fc54be10
AK
6441 eval "$as_ac_var=yes"
6442else
ec6a6fbe 6443 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 eval "$as_ac_var=no"
6447fi
6448
ec6a6fbe 6449rm -rf conftest.dSYM
25fbec5b 6450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6451 conftest$ac_exeext conftest.$ac_ext
6452fi
ec6a6fbe
AK
6453ac_res=`eval 'as_val=${'$as_ac_var'}
6454 $as_echo "$as_val"'`
6455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6456$as_echo "$ac_res" >&6; }
6457as_val=`eval 'as_val=${'$as_ac_var'}
6458 $as_echo "$as_val"'`
6459 if test "x$as_val" = x""yes; then
ad6254c5 6460 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6462_ACEOF
6463
6464else
ec6a6fbe
AK
6465 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6466$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6467 { (exit 1); exit 1; }; }
6468fi
6469done
795ca3e5 6470
ad6254c5
AK
6471# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6472# for constant arguments. Useless!
ec6a6fbe
AK
6473{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6474$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6475if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6476 $as_echo_n "(cached) " >&6
ad6254c5
AK
6477else
6478 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
6484#include <alloca.h>
6485int
6486main ()
6487{
6488char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6489 if (p) return 0;
ad6254c5
AK
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6495if { (ac_try="$ac_link"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
ec6a6fbe
AK
6500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6501$as_echo "$ac_try_echo") >&5
7a197a62 6502 (eval "$ac_link") 2>conftest.er1
ad6254c5 6503 ac_status=$?
8a2fc586
AK
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
ec6a6fbe 6507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
ec6a6fbe
AK
6511 } && test -s conftest$ac_exeext && {
6512 test "$cross_compiling" = yes ||
6513 $as_test_x conftest$ac_exeext
6514 }; then
ad6254c5
AK
6515 ac_cv_working_alloca_h=yes
6516else
ec6a6fbe 6517 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6518sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6519
7a197a62 6520 ac_cv_working_alloca_h=no
ad6254c5 6521fi
7a197a62 6522
ec6a6fbe 6523rm -rf conftest.dSYM
25fbec5b 6524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6525 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6526fi
ec6a6fbe
AK
6527{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6528$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6529if test $ac_cv_working_alloca_h = yes; then
6530
6531cat >>confdefs.h <<\_ACEOF
6532#define HAVE_ALLOCA_H 1
6533_ACEOF
6534
6535fi
6536
ec6a6fbe
AK
6537{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6538$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6539if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6540 $as_echo_n "(cached) " >&6
ad6254c5
AK
6541else
6542 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6543/* confdefs.h. */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h. */
6548#ifdef __GNUC__
6549# define alloca __builtin_alloca
6550#else
6551# ifdef _MSC_VER
6552# include <malloc.h>
6553# define alloca _alloca
6554# else
25fbec5b 6555# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6556# include <alloca.h>
6557# else
6558# ifdef _AIX
6559 #pragma alloca
6560# else
6561# ifndef alloca /* predefined by HP cc +Olibcalls */
6562char *alloca ();
6563# endif
6564# endif
6565# endif
6566# endif
6567#endif
6568
6569int
6570main ()
6571{
6572char *p = (char *) alloca (1);
7a197a62 6573 if (p) return 0;
ad6254c5
AK
6574 ;
6575 return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6579if { (ac_try="$ac_link"
6580case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583esac
ec6a6fbe
AK
6584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6585$as_echo "$ac_try_echo") >&5
7a197a62 6586 (eval "$ac_link") 2>conftest.er1
ad6254c5 6587 ac_status=$?
8a2fc586
AK
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
ec6a6fbe 6591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
ec6a6fbe
AK
6595 } && test -s conftest$ac_exeext && {
6596 test "$cross_compiling" = yes ||
6597 $as_test_x conftest$ac_exeext
6598 }; then
ad6254c5
AK
6599 ac_cv_func_alloca_works=yes
6600else
ec6a6fbe 6601 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
7a197a62 6604 ac_cv_func_alloca_works=no
ad6254c5 6605fi
7a197a62 6606
ec6a6fbe 6607rm -rf conftest.dSYM
25fbec5b 6608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6609 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6610fi
ec6a6fbe
AK
6611{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6612$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6613
6614if test $ac_cv_func_alloca_works = yes; then
6615
6616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_ALLOCA 1
6618_ACEOF
6619
6620else
6621 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6622# that cause trouble. Some versions do not even contain alloca or
6623# contain a buggy version. If you still want to use their alloca,
6624# use ar to extract alloca.o from them instead of compiling alloca.c.
6625
7a197a62 6626ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6627
6628cat >>confdefs.h <<\_ACEOF
6629#define C_ALLOCA 1
6630_ACEOF
6631
6632
ec6a6fbe
AK
6633{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6634$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6635if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6636 $as_echo_n "(cached) " >&6
ad6254c5
AK
6637else
6638 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6639/* confdefs.h. */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h. */
7a197a62 6644#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6645webecray
6646#else
6647wenotbecray
6648#endif
6649
6650_ACEOF
795ca3e5 6651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6652 $EGREP "webecray" >/dev/null 2>&1; then
6653 ac_cv_os_cray=yes
6654else
6655 ac_cv_os_cray=no
795ca3e5
AK
6656fi
6657rm -f conftest*
6658
795ca3e5 6659fi
ec6a6fbe
AK
6660{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6661$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6662if test $ac_cv_os_cray = yes; then
6663 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6665{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6666$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6667if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6668 $as_echo_n "(cached) " >&6
ad6254c5
AK
6669else
6670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6671/* confdefs.h. */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h. */
8a2fc586
AK
6676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6678#define $ac_func innocuous_$ac_func
6679
ad6254c5
AK
6680/* System header to define __stub macros and hopefully few prototypes,
6681 which can conflict with char $ac_func (); below.
6682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683 <limits.h> exists even on freestanding compilers. */
8a2fc586 6684
ad6254c5
AK
6685#ifdef __STDC__
6686# include <limits.h>
6687#else
6688# include <assert.h>
6689#endif
8a2fc586
AK
6690
6691#undef $ac_func
6692
7a197a62
AK
6693/* Override any GCC internal prototype to avoid an error.
6694 Use char because int might match the return type of a GCC
6695 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6696#ifdef __cplusplus
6697extern "C"
ad6254c5 6698#endif
ad6254c5
AK
6699char $ac_func ();
6700/* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
7a197a62 6703#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6704choke me
ad6254c5
AK
6705#endif
6706
6707int
6708main ()
6709{
7a197a62 6710return $ac_func ();
ad6254c5
AK
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6716if { (ac_try="$ac_link"
6717case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720esac
ec6a6fbe
AK
6721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6722$as_echo "$ac_try_echo") >&5
7a197a62 6723 (eval "$ac_link") 2>conftest.er1
ad6254c5 6724 ac_status=$?
8a2fc586
AK
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
ec6a6fbe 6728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
ec6a6fbe
AK
6732 } && test -s conftest$ac_exeext && {
6733 test "$cross_compiling" = yes ||
6734 $as_test_x conftest$ac_exeext
6735 }; then
ad6254c5
AK
6736 eval "$as_ac_var=yes"
6737else
ec6a6fbe 6738 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
7a197a62 6741 eval "$as_ac_var=no"
ad6254c5 6742fi
7a197a62 6743
ec6a6fbe 6744rm -rf conftest.dSYM
25fbec5b 6745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6746 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6747fi
ec6a6fbe
AK
6748ac_res=`eval 'as_val=${'$as_ac_var'}
6749 $as_echo "$as_val"'`
6750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6751$as_echo "$ac_res" >&6; }
6752as_val=`eval 'as_val=${'$as_ac_var'}
6753 $as_echo "$as_val"'`
6754 if test "x$as_val" = x""yes; then
80992638 6755
ad6254c5
AK
6756cat >>confdefs.h <<_ACEOF
6757#define CRAY_STACKSEG_END $ac_func
6758_ACEOF
6759
6760 break
6761fi
6762
6763 done
6764fi
6765
ec6a6fbe
AK
6766{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6767$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6768if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6769 $as_echo_n "(cached) " >&6
ad6254c5
AK
6770else
6771 if test "$cross_compiling" = yes; then
6772 ac_cv_c_stack_direction=0
6773else
6774 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
7a197a62 6780$ac_includes_default
ad6254c5
AK
6781int
6782find_stack_direction ()
6783{
6784 static char *addr = 0;
6785 auto char dummy;
6786 if (addr == 0)
6787 {
6788 addr = &dummy;
6789 return find_stack_direction ();
6790 }
6791 else
6792 return (&dummy > addr) ? 1 : -1;
6793}
6794
6795int
6796main ()
6797{
7a197a62 6798 return find_stack_direction () < 0;
ad6254c5
AK
6799}
6800_ACEOF
6801rm -f conftest$ac_exeext
7a197a62
AK
6802if { (ac_try="$ac_link"
6803case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806esac
ec6a6fbe
AK
6807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808$as_echo "$ac_try_echo") >&5
7a197a62 6809 (eval "$ac_link") 2>&5
ad6254c5 6810 ac_status=$?
ec6a6fbe 6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6813 { (case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
ec6a6fbe
AK
6817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6818$as_echo "$ac_try_echo") >&5
7a197a62 6819 (eval "$ac_try") 2>&5
ad6254c5 6820 ac_status=$?
ec6a6fbe 6821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6822 (exit $ac_status); }; }; then
6823 ac_cv_c_stack_direction=1
6824else
ec6a6fbe
AK
6825 $as_echo "$as_me: program exited with status $ac_status" >&5
6826$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6827sed 's/^/| /' conftest.$ac_ext >&5
6828
6829( exit $ac_status )
6830ac_cv_c_stack_direction=-1
6831fi
ec6a6fbe 6832rm -rf conftest.dSYM
7a197a62 6833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6834fi
7a197a62
AK
6835
6836
ad6254c5 6837fi
ec6a6fbe
AK
6838{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6839$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6840
6841cat >>confdefs.h <<_ACEOF
6842#define STACK_DIRECTION $ac_cv_c_stack_direction
6843_ACEOF
6844
6845
6846fi
6847
ec6a6fbe
AK
6848{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6849$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6850if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6851 $as_echo_n "(cached) " >&6
ad6254c5
AK
6852else
6853 if test "$cross_compiling" = yes; then
6854 ac_cv_func_closedir_void=yes
6855else
6856 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6857/* confdefs.h. */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h. */
6862$ac_includes_default
6863#include <$ac_header_dirent>
6864#ifndef __cplusplus
6865int closedir ();
6866#endif
6867
6868int
6869main ()
6870{
7a197a62 6871return closedir (opendir (".")) != 0;
ad6254c5
AK
6872 ;
6873 return 0;
6874}
6875_ACEOF
6876rm -f conftest$ac_exeext
7a197a62
AK
6877if { (ac_try="$ac_link"
6878case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881esac
ec6a6fbe
AK
6882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6883$as_echo "$ac_try_echo") >&5
7a197a62 6884 (eval "$ac_link") 2>&5
ad6254c5 6885 ac_status=$?
ec6a6fbe 6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6888 { (case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891esac
ec6a6fbe
AK
6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893$as_echo "$ac_try_echo") >&5
7a197a62 6894 (eval "$ac_try") 2>&5
ad6254c5 6895 ac_status=$?
ec6a6fbe 6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6897 (exit $ac_status); }; }; then
6898 ac_cv_func_closedir_void=no
6899else
ec6a6fbe
AK
6900 $as_echo "$as_me: program exited with status $ac_status" >&5
6901$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904( exit $ac_status )
6905ac_cv_func_closedir_void=yes
6906fi
ec6a6fbe 6907rm -rf conftest.dSYM
7a197a62 6908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6909fi
7a197a62
AK
6910
6911
ad6254c5 6912fi
ec6a6fbe
AK
6913{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6914$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6915if test $ac_cv_func_closedir_void = yes; then
6916
6917cat >>confdefs.h <<\_ACEOF
6918#define CLOSEDIR_VOID 1
6919_ACEOF
6920
6921fi
6922
6923
7a197a62 6924for ac_header in vfork.h
ad6254c5 6925do
ec6a6fbe 6926as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6929$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6931 $as_echo_n "(cached) " >&6
ad6254c5 6932fi
ec6a6fbe
AK
6933ac_res=`eval 'as_val=${'$as_ac_Header'}
6934 $as_echo "$as_val"'`
6935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6936$as_echo "$ac_res" >&6; }
ad6254c5
AK
6937else
6938 # Is the header compilable?
ec6a6fbe
AK
6939{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6940$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6941cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
6947$ac_includes_default
6948#include <$ac_header>
6949_ACEOF
6950rm -f conftest.$ac_objext
7a197a62
AK
6951if { (ac_try="$ac_compile"
6952case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955esac
ec6a6fbe
AK
6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957$as_echo "$ac_try_echo") >&5
7a197a62 6958 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6959 ac_status=$?
8a2fc586
AK
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
ec6a6fbe 6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6968 ac_header_compiler=yes
6969else
ec6a6fbe 6970 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
7a197a62 6973 ac_header_compiler=no
ad6254c5 6974fi
7a197a62
AK
6975
6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6978$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6979
6980# Is the header present?
ec6a6fbe
AK
6981{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6982$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6983cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6984/* confdefs.h. */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h. */
6989#include <$ac_header>
6990_ACEOF
7a197a62
AK
6991if { (ac_try="$ac_cpp conftest.$ac_ext"
6992case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995esac
ec6a6fbe
AK
6996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997$as_echo "$ac_try_echo") >&5
7a197a62 6998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
ec6a6fbe 7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7004 (exit $ac_status); } >/dev/null && {
7005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 }; then
ad6254c5
AK
7008 ac_header_preproc=yes
7009else
ec6a6fbe 7010 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ac_header_preproc=no
7014fi
7a197a62 7015
ad6254c5 7016rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7018$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7019
7020# So? What about this header?
8a2fc586
AK
7021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7022 yes:no: )
ec6a6fbe
AK
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7024$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7026$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7027 ac_header_preproc=yes
ad6254c5 7028 ;;
8a2fc586 7029 no:yes:* )
ec6a6fbe
AK
7030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7031$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7033$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7035$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7037$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7039$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7041$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7042
ad6254c5
AK
7043 ;;
7044esac
ec6a6fbe
AK
7045{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7046$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7048 $as_echo_n "(cached) " >&6
ad6254c5 7049else
8a2fc586 7050 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7051fi
ec6a6fbe
AK
7052ac_res=`eval 'as_val=${'$as_ac_Header'}
7053 $as_echo "$as_val"'`
7054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7055$as_echo "$ac_res" >&6; }
ad6254c5 7056
795ca3e5 7057fi
ec6a6fbe
AK
7058as_val=`eval 'as_val=${'$as_ac_Header'}
7059 $as_echo "$as_val"'`
7060 if test "x$as_val" = x""yes; then
ad6254c5 7061 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7063_ACEOF
7064
7065fi
7066
7067done
795ca3e5 7068
ad6254c5
AK
7069
7070
7071for ac_func in fork vfork
7072do
ec6a6fbe
AK
7073as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7074{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7075$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7077 $as_echo_n "(cached) " >&6
795ca3e5 7078else
ad6254c5 7079 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7080/* confdefs.h. */
7081_ACEOF
7082cat confdefs.h >>conftest.$ac_ext
7083cat >>conftest.$ac_ext <<_ACEOF
7084/* end confdefs.h. */
8a2fc586
AK
7085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7087#define $ac_func innocuous_$ac_func
7088
ad6254c5
AK
7089/* System header to define __stub macros and hopefully few prototypes,
7090 which can conflict with char $ac_func (); below.
7091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 <limits.h> exists even on freestanding compilers. */
8a2fc586 7093
ad6254c5
AK
7094#ifdef __STDC__
7095# include <limits.h>
7096#else
7097# include <assert.h>
795ca3e5 7098#endif
8a2fc586
AK
7099
7100#undef $ac_func
7101
7a197a62
AK
7102/* Override any GCC internal prototype to avoid an error.
7103 Use char because int might match the return type of a GCC
7104 builtin and then its argument prototype would still apply. */
795ca3e5 7105#ifdef __cplusplus
ad6254c5 7106extern "C"
ad6254c5 7107#endif
ad6254c5
AK
7108char $ac_func ();
7109/* The GNU C library defines this for functions which it implements
7110 to always fail with ENOSYS. Some functions are actually named
7111 something starting with __ and the normal name is an alias. */
7a197a62 7112#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7113choke me
795ca3e5
AK
7114#endif
7115
ad6254c5
AK
7116int
7117main ()
7118{
7a197a62 7119return $ac_func ();
ad6254c5
AK
7120 ;
7121 return 0;
7122}
7123_ACEOF
7124rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7125if { (ac_try="$ac_link"
7126case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
ec6a6fbe
AK
7130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131$as_echo "$ac_try_echo") >&5
7a197a62 7132 (eval "$ac_link") 2>conftest.er1
ad6254c5 7133 ac_status=$?
8a2fc586
AK
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
ec6a6fbe 7137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
ec6a6fbe
AK
7141 } && test -s conftest$ac_exeext && {
7142 test "$cross_compiling" = yes ||
7143 $as_test_x conftest$ac_exeext
7144 }; then
ad6254c5 7145 eval "$as_ac_var=yes"
795ca3e5 7146else
ec6a6fbe 7147 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7a197a62 7150 eval "$as_ac_var=no"
795ca3e5 7151fi
7a197a62 7152
ec6a6fbe 7153rm -rf conftest.dSYM
25fbec5b 7154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7155 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7156fi
ec6a6fbe
AK
7157ac_res=`eval 'as_val=${'$as_ac_var'}
7158 $as_echo "$as_val"'`
7159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7160$as_echo "$ac_res" >&6; }
7161as_val=`eval 'as_val=${'$as_ac_var'}
7162 $as_echo "$as_val"'`
7163 if test "x$as_val" = x""yes; then
ad6254c5 7164 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7166_ACEOF
7167
7168fi
7169done
7170
7171if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7172 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7173$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7174if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7175 $as_echo_n "(cached) " >&6
ad6254c5
AK
7176else
7177 if test "$cross_compiling" = yes; then
7178 ac_cv_func_fork_works=cross
7179else
7180 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
7186$ac_includes_default
7187int
7188main ()
7189{
7190
7191 /* By Ruediger Kuhlmann. */
7192 return fork () < 0;
7193
7194 ;
7195 return 0;
7196}
ad6254c5
AK
7197_ACEOF
7198rm -f conftest$ac_exeext
7a197a62
AK
7199if { (ac_try="$ac_link"
7200case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203esac
ec6a6fbe
AK
7204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205$as_echo "$ac_try_echo") >&5
7a197a62 7206 (eval "$ac_link") 2>&5
ad6254c5 7207 ac_status=$?
ec6a6fbe 7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7210 { (case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213esac
ec6a6fbe
AK
7214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7215$as_echo "$ac_try_echo") >&5
7a197a62 7216 (eval "$ac_try") 2>&5
ad6254c5 7217 ac_status=$?
ec6a6fbe 7218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7219 (exit $ac_status); }; }; then
7220 ac_cv_func_fork_works=yes
7221else
ec6a6fbe
AK
7222 $as_echo "$as_me: program exited with status $ac_status" >&5
7223$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7224sed 's/^/| /' conftest.$ac_ext >&5
7225
7226( exit $ac_status )
7227ac_cv_func_fork_works=no
7228fi
ec6a6fbe 7229rm -rf conftest.dSYM
7a197a62 7230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7231fi
7a197a62
AK
7232
7233
ad6254c5 7234fi
ec6a6fbe
AK
7235{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7236$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7237
7238else
7239 ac_cv_func_fork_works=$ac_cv_func_fork
7240fi
7241if test "x$ac_cv_func_fork_works" = xcross; then
7242 case $host in
7243 *-*-amigaos* | *-*-msdosdjgpp*)
7244 # Override, as these systems have only a dummy fork() stub
7245 ac_cv_func_fork_works=no
7246 ;;
7247 *)
7248 ac_cv_func_fork_works=yes
7249 ;;
7250 esac
ec6a6fbe
AK
7251 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7252$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7253fi
7254ac_cv_func_vfork_works=$ac_cv_func_vfork
7255if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7256 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7257$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7258if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7259 $as_echo_n "(cached) " >&6
ad6254c5
AK
7260else
7261 if test "$cross_compiling" = yes; then
7262 ac_cv_func_vfork_works=cross
7263else
7264 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270/* Thanks to Paul Eggert for this test. */
7a197a62 7271$ac_includes_default
ad6254c5 7272#include <sys/wait.h>
25fbec5b 7273#ifdef HAVE_VFORK_H
ad6254c5
AK
7274# include <vfork.h>
7275#endif
7276/* On some sparc systems, changes by the child to local and incoming
7277 argument registers are propagated back to the parent. The compiler
7278 is told about this with #include <vfork.h>, but some compilers
7279 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7280 static variable whose address is put into a register that is
7281 clobbered by the vfork. */
7282static void
7283#ifdef __cplusplus
7284sparc_address_test (int arg)
7285# else
7286sparc_address_test (arg) int arg;
7287#endif
7288{
7289 static pid_t child;
7290 if (!child) {
7291 child = vfork ();
7292 if (child < 0) {
7293 perror ("vfork");
7294 _exit(2);
7295 }
7296 if (!child) {
7297 arg = getpid();
7298 write(-1, "", 0);
7299 _exit (arg);
7300 }
7301 }
7302}
7303
7304int
7305main ()
7306{
7307 pid_t parent = getpid ();
7308 pid_t child;
7309
7310 sparc_address_test (0);
7311
7312 child = vfork ();
7313
7314 if (child == 0) {
7315 /* Here is another test for sparc vfork register problems. This
7316 test uses lots of local variables, at least as many local
7317 variables as main has allocated so far including compiler
7318 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7319 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7320 reuse the register of parent for one of the local variables,
7321 since it will think that parent can't possibly be used any more
7322 in this routine. Assigning to the local variable will thus
7323 munge parent in the parent process. */
7324 pid_t
7325 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7326 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7327 /* Convince the compiler that p..p7 are live; otherwise, it might
7328 use the same hardware register for all 8 local variables. */
7329 if (p != p1 || p != p2 || p != p3 || p != p4
7330 || p != p5 || p != p6 || p != p7)
7331 _exit(1);
7332
7333 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7334 from child file descriptors. If the child closes a descriptor
7335 before it execs or exits, this munges the parent's descriptor
7336 as well. Test for this by closing stdout in the child. */
7337 _exit(close(fileno(stdout)) != 0);
7338 } else {
7339 int status;
7340 struct stat st;
7341
7342 while (wait(&status) != child)
7343 ;
7a197a62 7344 return (
ad6254c5
AK
7345 /* Was there some problem with vforking? */
7346 child < 0
7347
7348 /* Did the child fail? (This shouldn't happen.) */
7349 || status
7350
7351 /* Did the vfork/compiler bug occur? */
7352 || parent != getpid()
7353
7354 /* Did the file descriptor bug occur? */
7355 || fstat(fileno(stdout), &st) != 0
7356 );
7357 }
7358}
7359_ACEOF
7360rm -f conftest$ac_exeext
7a197a62
AK
7361if { (ac_try="$ac_link"
7362case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
ec6a6fbe
AK
7366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367$as_echo "$ac_try_echo") >&5
7a197a62 7368 (eval "$ac_link") 2>&5
ad6254c5 7369 ac_status=$?
ec6a6fbe 7370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7372 { (case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
ec6a6fbe
AK
7376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377$as_echo "$ac_try_echo") >&5
7a197a62 7378 (eval "$ac_try") 2>&5
ad6254c5 7379 ac_status=$?
ec6a6fbe 7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7381 (exit $ac_status); }; }; then
7382 ac_cv_func_vfork_works=yes
7383else
ec6a6fbe
AK
7384 $as_echo "$as_me: program exited with status $ac_status" >&5
7385$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388( exit $ac_status )
7389ac_cv_func_vfork_works=no
7390fi
ec6a6fbe 7391rm -rf conftest.dSYM
7a197a62 7392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7393fi
7a197a62
AK
7394
7395
ad6254c5 7396fi
ec6a6fbe
AK
7397{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7398$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7399
7400fi;
7401if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7402 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7403 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7404$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7405fi
7406
7407if test "x$ac_cv_func_vfork_works" = xyes; then
7408
7409cat >>confdefs.h <<\_ACEOF
7410#define HAVE_WORKING_VFORK 1
7411_ACEOF
7412
7413else
7414
7415cat >>confdefs.h <<\_ACEOF
7416#define vfork fork
7417_ACEOF
7418
7419fi
7420if test "x$ac_cv_func_fork_works" = xyes; then
7421
7422cat >>confdefs.h <<\_ACEOF
7423#define HAVE_WORKING_FORK 1
7424_ACEOF
7425
7426fi
7427
ec6a6fbe
AK
7428{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7429$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7430if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7431 $as_echo_n "(cached) " >&6
ad6254c5
AK
7432else
7433 rm -f conftest.sym conftest.file
7434echo >conftest.file
7435if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7436 if test "$cross_compiling" = yes; then
7437 ac_cv_func_lstat_dereferences_slashed_symlink=no
7438else
7439 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7440/* confdefs.h. */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h. */
7445$ac_includes_default
7446int
7447main ()
7448{
7449struct stat sbuf;
7450 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7451 That is better in the sense that it means we will not
7452 have to compile and use the lstat wrapper. */
7a197a62 7453 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7454 ;
7455 return 0;
7456}
7457_ACEOF
7458rm -f conftest$ac_exeext
7a197a62
AK
7459if { (ac_try="$ac_link"
7460case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463esac
ec6a6fbe
AK
7464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7465$as_echo "$ac_try_echo") >&5
7a197a62 7466 (eval "$ac_link") 2>&5
ad6254c5 7467 ac_status=$?
ec6a6fbe 7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7470 { (case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473esac
ec6a6fbe
AK
7474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475$as_echo "$ac_try_echo") >&5
7a197a62 7476 (eval "$ac_try") 2>&5
ad6254c5 7477 ac_status=$?
ec6a6fbe 7478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7479 (exit $ac_status); }; }; then
7480 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7481else
ec6a6fbe
AK
7482 $as_echo "$as_me: program exited with status $ac_status" >&5
7483$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486( exit $ac_status )
7487ac_cv_func_lstat_dereferences_slashed_symlink=no
7488fi
ec6a6fbe 7489rm -rf conftest.dSYM
7a197a62 7490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7491fi
7a197a62
AK
7492
7493
ad6254c5
AK
7494else
7495 # If the `ln -s' command failed, then we probably don't even
7496 # have an lstat function.
7497 ac_cv_func_lstat_dereferences_slashed_symlink=no
7498fi
7499rm -f conftest.sym conftest.file
7500
7501fi
ec6a6fbe
AK
7502{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7503$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7504
7505test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7506
7507cat >>confdefs.h <<_ACEOF
7508#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7509_ACEOF
7510
7511
7512if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7513 case " $LIBOBJS " in
8a2fc586 7514 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7515 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7516 ;;
8a2fc586
AK
7517esac
7518
ad6254c5
AK
7519fi
7520
ec6a6fbe
AK
7521{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7522$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7523if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7524 $as_echo_n "(cached) " >&6
ad6254c5
AK
7525else
7526 if test "$cross_compiling" = yes; then
7527 ac_cv_func_lstat_empty_string_bug=yes
7528else
7529 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7530/* confdefs.h. */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h. */
7535$ac_includes_default
7536int
7537main ()
7538{
7539struct stat sbuf;
7a197a62 7540 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545rm -f conftest$ac_exeext
7a197a62
AK
7546if { (ac_try="$ac_link"
7547case "(($ac_try" in
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7550esac
ec6a6fbe
AK
7551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7552$as_echo "$ac_try_echo") >&5
7a197a62 7553 (eval "$ac_link") 2>&5
ad6254c5 7554 ac_status=$?
ec6a6fbe 7555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7557 { (case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560esac
ec6a6fbe
AK
7561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7562$as_echo "$ac_try_echo") >&5
7a197a62 7563 (eval "$ac_try") 2>&5
ad6254c5 7564 ac_status=$?
ec6a6fbe 7565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7566 (exit $ac_status); }; }; then
7a197a62 7567 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7568else
ec6a6fbe
AK
7569 $as_echo "$as_me: program exited with status $ac_status" >&5
7570$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573( exit $ac_status )
7a197a62 7574ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7575fi
ec6a6fbe 7576rm -rf conftest.dSYM
7a197a62 7577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7578fi
7a197a62
AK
7579
7580
ad6254c5 7581fi
ec6a6fbe
AK
7582{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7583$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7584if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7585 case " $LIBOBJS " in
8a2fc586 7586 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7587 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7588 ;;
8a2fc586
AK
7589esac
7590
ad6254c5
AK
7591
7592cat >>confdefs.h <<_ACEOF
7593#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7594_ACEOF
7595
7596fi
7597
7598
7599for ac_header in stdlib.h
7600do
ec6a6fbe 7601as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7604$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7606 $as_echo_n "(cached) " >&6
ad6254c5 7607fi
ec6a6fbe
AK
7608ac_res=`eval 'as_val=${'$as_ac_Header'}
7609 $as_echo "$as_val"'`
7610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7611$as_echo "$ac_res" >&6; }
ad6254c5
AK
7612else
7613 # Is the header compilable?
ec6a6fbe
AK
7614{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7615$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7616cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7617/* confdefs.h. */
7618_ACEOF
7619cat confdefs.h >>conftest.$ac_ext
7620cat >>conftest.$ac_ext <<_ACEOF
7621/* end confdefs.h. */
7622$ac_includes_default
7623#include <$ac_header>
7624_ACEOF
7625rm -f conftest.$ac_objext
7a197a62
AK
7626if { (ac_try="$ac_compile"
7627case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630esac
ec6a6fbe
AK
7631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632$as_echo "$ac_try_echo") >&5
7a197a62 7633 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7634 ac_status=$?
8a2fc586
AK
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
ec6a6fbe 7638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7639 (exit $ac_status); } && {
7640 test -z "$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7643 ac_header_compiler=yes
7644else
ec6a6fbe 7645 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7a197a62 7648 ac_header_compiler=no
ad6254c5 7649fi
7a197a62
AK
7650
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7652{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7653$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7654
7655# Is the header present?
ec6a6fbe
AK
7656{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7657$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7658cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664#include <$ac_header>
7665_ACEOF
7a197a62
AK
7666if { (ac_try="$ac_cpp conftest.$ac_ext"
7667case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670esac
ec6a6fbe
AK
7671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672$as_echo "$ac_try_echo") >&5
7a197a62 7673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
ec6a6fbe 7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7679 (exit $ac_status); } >/dev/null && {
7680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 }; then
ad6254c5
AK
7683 ac_header_preproc=yes
7684else
ec6a6fbe 7685 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 ac_header_preproc=no
7689fi
7a197a62 7690
ad6254c5 7691rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7692{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7693$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7694
7695# So? What about this header?
8a2fc586
AK
7696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7697 yes:no: )
ec6a6fbe
AK
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7699$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7701$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7702 ac_header_preproc=yes
ad6254c5 7703 ;;
8a2fc586 7704 no:yes:* )
ec6a6fbe
AK
7705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7706$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7708$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7710$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7712$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7714$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7716$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7717
ad6254c5
AK
7718 ;;
7719esac
ec6a6fbe
AK
7720{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7721$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7723 $as_echo_n "(cached) " >&6
ad6254c5 7724else
8a2fc586 7725 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7726fi
ec6a6fbe
AK
7727ac_res=`eval 'as_val=${'$as_ac_Header'}
7728 $as_echo "$as_val"'`
7729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7730$as_echo "$ac_res" >&6; }
ad6254c5
AK
7731
7732fi
ec6a6fbe
AK
7733as_val=`eval 'as_val=${'$as_ac_Header'}
7734 $as_echo "$as_val"'`
7735 if test "x$as_val" = x""yes; then
ad6254c5 7736 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7738_ACEOF
7739
7740fi
7741
7742done
7743
ec6a6fbe
AK
7744{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7745$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7746if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7747 $as_echo_n "(cached) " >&6
ad6254c5
AK
7748else
7749 if test "$cross_compiling" = yes; then
7750 ac_cv_func_malloc_0_nonnull=no
7751else
7752 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h. */
25fbec5b 7758#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7759# include <stdlib.h>
7760#else
7761char *malloc ();
7762#endif
7763
7764int
7765main ()
7766{
7a197a62 7767return ! malloc (0);
ad6254c5
AK
7768 ;
7769 return 0;
7770}
7771_ACEOF
7772rm -f conftest$ac_exeext
7a197a62
AK
7773if { (ac_try="$ac_link"
7774case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
ec6a6fbe
AK
7778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779$as_echo "$ac_try_echo") >&5
7a197a62 7780 (eval "$ac_link") 2>&5
ad6254c5 7781 ac_status=$?
ec6a6fbe 7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787esac
ec6a6fbe
AK
7788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7789$as_echo "$ac_try_echo") >&5
7a197a62 7790 (eval "$ac_try") 2>&5
ad6254c5 7791 ac_status=$?
ec6a6fbe 7792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7793 (exit $ac_status); }; }; then
7794 ac_cv_func_malloc_0_nonnull=yes
7795else
ec6a6fbe
AK
7796 $as_echo "$as_me: program exited with status $ac_status" >&5
7797$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800( exit $ac_status )
7801ac_cv_func_malloc_0_nonnull=no
7802fi
ec6a6fbe 7803rm -rf conftest.dSYM
7a197a62 7804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7805fi
7a197a62
AK
7806
7807
ad6254c5 7808fi
ec6a6fbe
AK
7809{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7810$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7811if test $ac_cv_func_malloc_0_nonnull = yes; then
7812
7813cat >>confdefs.h <<\_ACEOF
7814#define HAVE_MALLOC 1
7815_ACEOF
7816
7817else
7818 cat >>confdefs.h <<\_ACEOF
7819#define HAVE_MALLOC 0
7820_ACEOF
7821
7a197a62 7822 case " $LIBOBJS " in
8a2fc586 7823 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7824 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7825 ;;
8a2fc586
AK
7826esac
7827
ad6254c5
AK
7828
7829cat >>confdefs.h <<\_ACEOF
7830#define malloc rpl_malloc
7831_ACEOF
7832
7833fi
7834
7835
7836
ec6a6fbe
AK
7837{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7838$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7839if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7840 $as_echo_n "(cached) " >&6
ad6254c5
AK
7841else
7842 if test "$cross_compiling" = yes; then
7843 ac_cv_func_memcmp_working=no
7844else
7845 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
8a2fc586 7851$ac_includes_default
ad6254c5
AK
7852int
7853main ()
7854{
7855
7856 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7857 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7858 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7859 return 1;
ad6254c5
AK
7860
7861 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7862 or more and with at least one buffer not starting on a 4-byte boundary.
7863 William Lewis provided this test program. */
7864 {
7865 char foo[21];
7866 char bar[21];
7867 int i;
7868 for (i = 0; i < 4; i++)
7869 {
8a2fc586
AK
7870 char *a = foo + i;
7871 char *b = bar + i;
7872 strcpy (a, "--------01111111");
7873 strcpy (b, "--------10000000");
7874 if (memcmp (a, b, 16) >= 0)
7a197a62 7875 return 1;
ad6254c5 7876 }
7a197a62 7877 return 0;
ad6254c5
AK
7878 }
7879
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884rm -f conftest$ac_exeext
7a197a62
AK
7885if { (ac_try="$ac_link"
7886case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
ec6a6fbe
AK
7890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891$as_echo "$ac_try_echo") >&5
7a197a62 7892 (eval "$ac_link") 2>&5
ad6254c5 7893 ac_status=$?
ec6a6fbe 7894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
ec6a6fbe
AK
7900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7901$as_echo "$ac_try_echo") >&5
7a197a62 7902 (eval "$ac_try") 2>&5
ad6254c5 7903 ac_status=$?
ec6a6fbe 7904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7905 (exit $ac_status); }; }; then
7906 ac_cv_func_memcmp_working=yes
7907else
ec6a6fbe
AK
7908 $as_echo "$as_me: program exited with status $ac_status" >&5
7909$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7910sed 's/^/| /' conftest.$ac_ext >&5
7911
7912( exit $ac_status )
7913ac_cv_func_memcmp_working=no
7914fi
ec6a6fbe 7915rm -rf conftest.dSYM
7a197a62 7916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7917fi
7a197a62
AK
7918
7919
ad6254c5 7920fi
ec6a6fbe
AK
7921{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7922$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7923test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7924 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7925 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7926 ;;
8a2fc586
AK
7927esac
7928
ad6254c5
AK
7929
7930
7931
7932for ac_header in stdlib.h unistd.h
7933do
ec6a6fbe 7934as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7936 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7937$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7939 $as_echo_n "(cached) " >&6
ad6254c5 7940fi
ec6a6fbe
AK
7941ac_res=`eval 'as_val=${'$as_ac_Header'}
7942 $as_echo "$as_val"'`
7943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7944$as_echo "$ac_res" >&6; }
ad6254c5
AK
7945else
7946 # Is the header compilable?
ec6a6fbe
AK
7947{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7948$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7949cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7950/* confdefs.h. */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h. */
7955$ac_includes_default
7956#include <$ac_header>
7957_ACEOF
7958rm -f conftest.$ac_objext
7a197a62
AK
7959if { (ac_try="$ac_compile"
7960case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963esac
ec6a6fbe
AK
7964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7965$as_echo "$ac_try_echo") >&5
7a197a62 7966 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7967 ac_status=$?
8a2fc586
AK
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
ec6a6fbe 7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7976 ac_header_compiler=yes
7977else
ec6a6fbe 7978 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7a197a62 7981 ac_header_compiler=no
ad6254c5 7982fi
7a197a62
AK
7983
7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7985{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7986$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7987
7988# Is the header present?
ec6a6fbe
AK
7989{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7990$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7991cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997#include <$ac_header>
7998_ACEOF
7a197a62
AK
7999if { (ac_try="$ac_cpp conftest.$ac_ext"
8000case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003esac
ec6a6fbe
AK
8004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005$as_echo "$ac_try_echo") >&5
7a197a62 8006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
ec6a6fbe 8011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8012 (exit $ac_status); } >/dev/null && {
8013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 }; then
ad6254c5
AK
8016 ac_header_preproc=yes
8017else
ec6a6fbe 8018 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_header_preproc=no
8022fi
7a197a62 8023
ad6254c5 8024rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8025{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8026$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8027
8028# So? What about this header?
8a2fc586
AK
8029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8030 yes:no: )
ec6a6fbe
AK
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8032$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8034$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8035 ac_header_preproc=yes
ad6254c5 8036 ;;
8a2fc586 8037 no:yes:* )
ec6a6fbe
AK
8038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8041$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8043$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8045$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8047$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8049$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8050
ad6254c5
AK
8051 ;;
8052esac
ec6a6fbe
AK
8053{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8054$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8056 $as_echo_n "(cached) " >&6
ad6254c5 8057else
8a2fc586 8058 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8059fi
ec6a6fbe
AK
8060ac_res=`eval 'as_val=${'$as_ac_Header'}
8061 $as_echo "$as_val"'`
8062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8063$as_echo "$ac_res" >&6; }
ad6254c5
AK
8064
8065fi
ec6a6fbe
AK
8066as_val=`eval 'as_val=${'$as_ac_Header'}
8067 $as_echo "$as_val"'`
8068 if test "x$as_val" = x""yes; then
ad6254c5 8069 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8071_ACEOF
8072
8073fi
8074
8075done
8076
8077
8078for ac_func in getpagesize
8079do
ec6a6fbe
AK
8080as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8081{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8082$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8084 $as_echo_n "(cached) " >&6
ad6254c5
AK
8085else
8086 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h. */
8a2fc586
AK
8092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8094#define $ac_func innocuous_$ac_func
8095
ad6254c5
AK
8096/* System header to define __stub macros and hopefully few prototypes,
8097 which can conflict with char $ac_func (); below.
8098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8099 <limits.h> exists even on freestanding compilers. */
8a2fc586 8100
ad6254c5
AK
8101#ifdef __STDC__
8102# include <limits.h>
8103#else
8104# include <assert.h>
8105#endif
8a2fc586
AK
8106
8107#undef $ac_func
8108
7a197a62
AK
8109/* Override any GCC internal prototype to avoid an error.
8110 Use char because int might match the return type of a GCC
8111 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8112#ifdef __cplusplus
8113extern "C"
ad6254c5 8114#endif
ad6254c5
AK
8115char $ac_func ();
8116/* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
7a197a62 8119#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8120choke me
ad6254c5
AK
8121#endif
8122
8123int
8124main ()
8125{
7a197a62 8126return $ac_func ();
ad6254c5
AK
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8132if { (ac_try="$ac_link"
8133case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136esac
ec6a6fbe
AK
8137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8138$as_echo "$ac_try_echo") >&5
7a197a62 8139 (eval "$ac_link") 2>conftest.er1
ad6254c5 8140 ac_status=$?
8a2fc586
AK
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
ec6a6fbe 8144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
ec6a6fbe
AK
8148 } && test -s conftest$ac_exeext && {
8149 test "$cross_compiling" = yes ||
8150 $as_test_x conftest$ac_exeext
8151 }; then
ad6254c5
AK
8152 eval "$as_ac_var=yes"
8153else
ec6a6fbe 8154 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
7a197a62 8157 eval "$as_ac_var=no"
ad6254c5 8158fi
7a197a62 8159
ec6a6fbe 8160rm -rf conftest.dSYM
25fbec5b 8161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8162 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8163fi
ec6a6fbe
AK
8164ac_res=`eval 'as_val=${'$as_ac_var'}
8165 $as_echo "$as_val"'`
8166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8167$as_echo "$ac_res" >&6; }
8168as_val=`eval 'as_val=${'$as_ac_var'}
8169 $as_echo "$as_val"'`
8170 if test "x$as_val" = x""yes; then
ad6254c5 8171 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8172#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8173_ACEOF
8174
8175fi
8176done
8177
ec6a6fbe
AK
8178{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8179$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8180if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8181 $as_echo_n "(cached) " >&6
ad6254c5
AK
8182else
8183 if test "$cross_compiling" = yes; then
8184 ac_cv_func_mmap_fixed_mapped=no
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192$ac_includes_default
8193/* malloc might have been renamed as rpl_malloc. */
8194#undef malloc
8195
8196/* Thanks to Mike Haertel and Jim Avera for this test.
8197 Here is a matrix of mmap possibilities:
8198 mmap private not fixed
8199 mmap private fixed at somewhere currently unmapped
8200 mmap private fixed at somewhere already mapped
8201 mmap shared not fixed
8202 mmap shared fixed at somewhere currently unmapped
8203 mmap shared fixed at somewhere already mapped
8204 For private mappings, we should verify that changes cannot be read()
8205 back from the file, nor mmap's back from the file at a different
8206 address. (There have been systems where private was not correctly
8207 implemented like the infamous i386 svr4.0, and systems where the
8208 VM page cache was not coherent with the file system buffer cache
8209 like early versions of FreeBSD and possibly contemporary NetBSD.)
8210 For shared mappings, we should conversely verify that changes get
8211 propagated back to all the places they're supposed to be.
8212
8213 Grep wants private fixed already mapped.
8214 The main things grep needs to know about mmap are:
8215 * does it exist and is it safe to write into the mmap'd area
8216 * how to use it (BSD variants) */
8217
8218#include <fcntl.h>
8219#include <sys/mman.h>
8220
25fbec5b 8221#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8222char *malloc ();
8223#endif
8224
8225/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8226#ifndef HAVE_GETPAGESIZE
ad6254c5 8227/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8228# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8229# define HAVE_SYS_PARAM_H 1
8230# endif
8231
8232# ifdef _SC_PAGESIZE
8233# define getpagesize() sysconf(_SC_PAGESIZE)
8234# else /* no _SC_PAGESIZE */
25fbec5b 8235# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8236# include <sys/param.h>
8237# ifdef EXEC_PAGESIZE
8238# define getpagesize() EXEC_PAGESIZE
8239# else /* no EXEC_PAGESIZE */
8240# ifdef NBPG
8241# define getpagesize() NBPG * CLSIZE
8242# ifndef CLSIZE
8243# define CLSIZE 1
8244# endif /* no CLSIZE */
8245# else /* no NBPG */
8246# ifdef NBPC
8247# define getpagesize() NBPC
8248# else /* no NBPC */
8249# ifdef PAGESIZE
8250# define getpagesize() PAGESIZE
8251# endif /* PAGESIZE */
8252# endif /* no NBPC */
8253# endif /* no NBPG */
8254# endif /* no EXEC_PAGESIZE */
8255# else /* no HAVE_SYS_PARAM_H */
8256# define getpagesize() 8192 /* punt totally */
8257# endif /* no HAVE_SYS_PARAM_H */
8258# endif /* no _SC_PAGESIZE */
8259
8260#endif /* no HAVE_GETPAGESIZE */
8261
8262int
8263main ()
8264{
8265 char *data, *data2, *data3;
8266 int i, pagesize;
8267 int fd;
8268
8269 pagesize = getpagesize ();
8270
8271 /* First, make a file with some known garbage in it. */
8272 data = (char *) malloc (pagesize);
8273 if (!data)
7a197a62 8274 return 1;
ad6254c5
AK
8275 for (i = 0; i < pagesize; ++i)
8276 *(data + i) = rand ();
8277 umask (0);
8278 fd = creat ("conftest.mmap", 0600);
8279 if (fd < 0)
7a197a62 8280 return 1;
ad6254c5 8281 if (write (fd, data, pagesize) != pagesize)
7a197a62 8282 return 1;
ad6254c5
AK
8283 close (fd);
8284
8285 /* Next, try to mmap the file at a fixed address which already has
8286 something else allocated at it. If we can, also make sure that
8287 we see the same garbage. */
8288 fd = open ("conftest.mmap", O_RDWR);
8289 if (fd < 0)
7a197a62 8290 return 1;
ad6254c5
AK
8291 data2 = (char *) malloc (2 * pagesize);
8292 if (!data2)
7a197a62
AK
8293 return 1;
8294 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8297 return 1;
ad6254c5
AK
8298 for (i = 0; i < pagesize; ++i)
8299 if (*(data + i) != *(data2 + i))
7a197a62 8300 return 1;
ad6254c5
AK
8301
8302 /* Finally, make sure that changes to the mapped area do not
8303 percolate back to the file as seen by read(). (This is a bug on
8304 some variants of i386 svr4.0.) */
8305 for (i = 0; i < pagesize; ++i)
8306 *(data2 + i) = *(data2 + i) + 1;
8307 data3 = (char *) malloc (pagesize);
8308 if (!data3)
7a197a62 8309 return 1;
ad6254c5 8310 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8311 return 1;
ad6254c5
AK
8312 for (i = 0; i < pagesize; ++i)
8313 if (*(data + i) != *(data3 + i))
7a197a62 8314 return 1;
ad6254c5 8315 close (fd);
7a197a62 8316 return 0;
ad6254c5
AK
8317}
8318_ACEOF
8319rm -f conftest$ac_exeext
7a197a62
AK
8320if { (ac_try="$ac_link"
8321case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
ec6a6fbe
AK
8325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8326$as_echo "$ac_try_echo") >&5
7a197a62 8327 (eval "$ac_link") 2>&5
ad6254c5 8328 ac_status=$?
ec6a6fbe 8329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
ec6a6fbe
AK
8335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336$as_echo "$ac_try_echo") >&5
7a197a62 8337 (eval "$ac_try") 2>&5
ad6254c5 8338 ac_status=$?
ec6a6fbe 8339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8340 (exit $ac_status); }; }; then
8341 ac_cv_func_mmap_fixed_mapped=yes
8342else
ec6a6fbe
AK
8343 $as_echo "$as_me: program exited with status $ac_status" >&5
8344$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
8347( exit $ac_status )
8348ac_cv_func_mmap_fixed_mapped=no
8349fi
ec6a6fbe 8350rm -rf conftest.dSYM
7a197a62 8351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8352fi
7a197a62
AK
8353
8354
ad6254c5 8355fi
ec6a6fbe
AK
8356{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8357$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8358if test $ac_cv_func_mmap_fixed_mapped = yes; then
8359
8360cat >>confdefs.h <<\_ACEOF
8361#define HAVE_MMAP 1
8362_ACEOF
8363
8364fi
8365rm -f conftest.mmap
8366
ec6a6fbe
AK
8367{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8368$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8369if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8370 $as_echo_n "(cached) " >&6
ad6254c5
AK
8371else
8372 if test "$cross_compiling" = yes; then
8373 ac_cv_func_stat_empty_string_bug=yes
8374else
8375 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8376/* confdefs.h. */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h. */
8381$ac_includes_default
8382int
8383main ()
8384{
8385struct stat sbuf;
7a197a62 8386 return stat ("", &sbuf) == 0;
ad6254c5
AK
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest$ac_exeext
7a197a62
AK
8392if { (ac_try="$ac_link"
8393case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
ec6a6fbe
AK
8397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8398$as_echo "$ac_try_echo") >&5
7a197a62 8399 (eval "$ac_link") 2>&5
ad6254c5 8400 ac_status=$?
ec6a6fbe 8401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
ec6a6fbe
AK
8407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8408$as_echo "$ac_try_echo") >&5
7a197a62 8409 (eval "$ac_try") 2>&5
ad6254c5 8410 ac_status=$?
ec6a6fbe 8411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8412 (exit $ac_status); }; }; then
7a197a62 8413 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8414else
ec6a6fbe
AK
8415 $as_echo "$as_me: program exited with status $ac_status" >&5
8416$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419( exit $ac_status )
7a197a62 8420ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8421fi
ec6a6fbe 8422rm -rf conftest.dSYM
7a197a62 8423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8424fi
7a197a62
AK
8425
8426
ad6254c5 8427fi
ec6a6fbe
AK
8428{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8429$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8430if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8431 case " $LIBOBJS " in
8a2fc586 8432 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8433 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8434 ;;
8a2fc586
AK
8435esac
8436
ad6254c5
AK
8437
8438cat >>confdefs.h <<_ACEOF
8439#define HAVE_STAT_EMPTY_STRING_BUG 1
8440_ACEOF
8441
8442fi
8443
ec6a6fbe
AK
8444{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8445$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8446if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8447 $as_echo_n "(cached) " >&6
ad6254c5
AK
8448else
8449 if test "$cross_compiling" = yes; then
8450 ac_cv_func_strtod=no
8451else
8452 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8453/* confdefs.h. */
8454_ACEOF
8455cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF
8457/* end confdefs.h. */
8458
7a197a62
AK
8459$ac_includes_default
8460#ifndef strtod
ad6254c5 8461double strtod ();
7a197a62 8462#endif
ad6254c5
AK
8463int
8464main()
8465{
8466 {
8467 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8468 char *string = " +69";
8469 char *term;
8470 double value;
8471 value = strtod (string, &term);
8472 if (value != 69 || term != (string + 4))
7a197a62 8473 return 1;
ad6254c5
AK
8474 }
8475
8476 {
8477 /* Under Solaris 2.4, strtod returns the wrong value for the
8478 terminating character under some conditions. */
8479 char *string = "NaN";
8480 char *term;
8481 strtod (string, &term);
8482 if (term != string && *(term - 1) == 0)
7a197a62 8483 return 1;
ad6254c5 8484 }
7a197a62 8485 return 0;
ad6254c5
AK
8486}
8487
8488_ACEOF
8489rm -f conftest$ac_exeext
7a197a62
AK
8490if { (ac_try="$ac_link"
8491case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
ec6a6fbe
AK
8495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496$as_echo "$ac_try_echo") >&5
7a197a62 8497 (eval "$ac_link") 2>&5
ad6254c5 8498 ac_status=$?
ec6a6fbe 8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
ec6a6fbe
AK
8505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
7a197a62 8507 (eval "$ac_try") 2>&5
ad6254c5 8508 ac_status=$?
ec6a6fbe 8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_strtod=yes
8512else
ec6a6fbe
AK
8513 $as_echo "$as_me: program exited with status $ac_status" >&5
8514$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517( exit $ac_status )
8518ac_cv_func_strtod=no
8519fi
ec6a6fbe 8520rm -rf conftest.dSYM
7a197a62 8521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8522fi
7a197a62
AK
8523
8524
ad6254c5 8525fi
ec6a6fbe
AK
8526{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8527$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8528if test $ac_cv_func_strtod = no; then
7a197a62 8529 case " $LIBOBJS " in
8a2fc586 8530 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8531 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8532 ;;
8a2fc586
AK
8533esac
8534
ec6a6fbe
AK
8535{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8536$as_echo_n "checking for pow... " >&6; }
ad6254c5 8537if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8538 $as_echo_n "(cached) " >&6
ad6254c5
AK
8539else
8540 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8541/* confdefs.h. */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h. */
8a2fc586
AK
8546/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548#define pow innocuous_pow
8549
ad6254c5
AK
8550/* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char pow (); below.
8552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553 <limits.h> exists even on freestanding compilers. */
8a2fc586 8554
ad6254c5
AK
8555#ifdef __STDC__
8556# include <limits.h>
8557#else
8558# include <assert.h>
8559#endif
8a2fc586
AK
8560
8561#undef pow
8562
7a197a62
AK
8563/* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8566#ifdef __cplusplus
8567extern "C"
ad6254c5 8568#endif
ad6254c5
AK
8569char pow ();
8570/* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
7a197a62 8573#if defined __stub_pow || defined __stub___pow
ad6254c5 8574choke me
ad6254c5
AK
8575#endif
8576
8577int
8578main ()
8579{
7a197a62 8580return pow ();
ad6254c5
AK
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8586if { (ac_try="$ac_link"
8587case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
ec6a6fbe
AK
8591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592$as_echo "$ac_try_echo") >&5
7a197a62 8593 (eval "$ac_link") 2>conftest.er1
ad6254c5 8594 ac_status=$?
8a2fc586
AK
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
ec6a6fbe 8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
ec6a6fbe
AK
8602 } && test -s conftest$ac_exeext && {
8603 test "$cross_compiling" = yes ||
8604 $as_test_x conftest$ac_exeext
8605 }; then
ad6254c5
AK
8606 ac_cv_func_pow=yes
8607else
ec6a6fbe 8608 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
7a197a62 8611 ac_cv_func_pow=no
ad6254c5 8612fi
7a197a62 8613
ec6a6fbe 8614rm -rf conftest.dSYM
25fbec5b 8615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8616 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8617fi
ec6a6fbe
AK
8618{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8619$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8620
8621if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8622 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8623$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8624if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8625 $as_echo_n "(cached) " >&6
ad6254c5
AK
8626else
8627 ac_check_lib_save_LIBS=$LIBS
8628LIBS="-lm $LIBS"
8629cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
7a197a62
AK
8636/* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8639#ifdef __cplusplus
8640extern "C"
8641#endif
ad6254c5
AK
8642char pow ();
8643int
8644main ()
8645{
7a197a62 8646return pow ();
ad6254c5
AK
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8652if { (ac_try="$ac_link"
8653case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656esac
ec6a6fbe
AK
8657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8658$as_echo "$ac_try_echo") >&5
7a197a62 8659 (eval "$ac_link") 2>conftest.er1
ad6254c5 8660 ac_status=$?
8a2fc586
AK
8661 grep -v '^ *+' conftest.er1 >conftest.err
8662 rm -f conftest.er1
8663 cat conftest.err >&5
ec6a6fbe 8664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8665 (exit $ac_status); } && {
8666 test -z "$ac_c_werror_flag" ||
8667 test ! -s conftest.err
ec6a6fbe
AK
8668 } && test -s conftest$ac_exeext && {
8669 test "$cross_compiling" = yes ||
8670 $as_test_x conftest$ac_exeext
8671 }; then
ad6254c5
AK
8672 ac_cv_lib_m_pow=yes
8673else
ec6a6fbe 8674 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
7a197a62 8677 ac_cv_lib_m_pow=no
ad6254c5 8678fi
7a197a62 8679
ec6a6fbe 8680rm -rf conftest.dSYM
25fbec5b 8681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8682 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8683LIBS=$ac_check_lib_save_LIBS
d0191583 8684fi
ec6a6fbe
AK
8685{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8686$as_echo "$ac_cv_lib_m_pow" >&6; }
8687if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8688 POW_LIB=-lm
8689else
ec6a6fbe
AK
8690 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8691$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8692fi
72b2cb61 8693
d0191583 8694fi
72b2cb61 8695
ad6254c5
AK
8696fi
8697
ad6254c5 8698
d0191583
JM
8699for ac_func in vprintf
8700do
ec6a6fbe
AK
8701as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8703$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8705 $as_echo_n "(cached) " >&6
ad6254c5 8706else
d0191583
JM
8707 cat >conftest.$ac_ext <<_ACEOF
8708/* confdefs.h. */
8709_ACEOF
8710cat confdefs.h >>conftest.$ac_ext
8711cat >>conftest.$ac_ext <<_ACEOF
8712/* end confdefs.h. */
8713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8715#define $ac_func innocuous_$ac_func
7a197a62 8716
d0191583
JM
8717/* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char $ac_func (); below.
8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 <limits.h> exists even on freestanding compilers. */
ad6254c5 8721
d0191583
JM
8722#ifdef __STDC__
8723# include <limits.h>
8724#else
8725# include <assert.h>
8726#endif
ad6254c5 8727
d0191583 8728#undef $ac_func
72b2cb61 8729
d0191583
JM
8730/* Override any GCC internal prototype to avoid an error.
8731 Use char because int might match the return type of a GCC
8732 builtin and then its argument prototype would still apply. */
8733#ifdef __cplusplus
8734extern "C"
8735#endif
8736char $ac_func ();
8737/* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740#if defined __stub_$ac_func || defined __stub___$ac_func
8741choke me
8742#endif
8743
8744int
8745main ()
8746{
8747return $ac_func ();
8748 ;
8749 return 0;
8750}
72b2cb61 8751_ACEOF
d0191583
JM
8752rm -f conftest.$ac_objext conftest$ac_exeext
8753if { (ac_try="$ac_link"
8754case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757esac
ec6a6fbe
AK
8758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8759$as_echo "$ac_try_echo") >&5
d0191583
JM
8760 (eval "$ac_link") 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
ec6a6fbe 8765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
ec6a6fbe
AK
8769 } && test -s conftest$ac_exeext && {
8770 test "$cross_compiling" = yes ||
8771 $as_test_x conftest$ac_exeext
8772 }; then
d0191583
JM
8773 eval "$as_ac_var=yes"
8774else
ec6a6fbe 8775 $as_echo "$as_me: failed program was:" >&5
d0191583 8776sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8777
d0191583 8778 eval "$as_ac_var=no"
ad6254c5
AK
8779fi
8780
ec6a6fbe 8781rm -rf conftest.dSYM
d0191583
JM
8782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8783 conftest$ac_exeext conftest.$ac_ext
7a197a62 8784fi
ec6a6fbe
AK
8785ac_res=`eval 'as_val=${'$as_ac_var'}
8786 $as_echo "$as_val"'`
8787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8788$as_echo "$ac_res" >&6; }
8789as_val=`eval 'as_val=${'$as_ac_var'}
8790 $as_echo "$as_val"'`
8791 if test "x$as_val" = x""yes; then
d0191583 8792 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8794_ACEOF
7a197a62 8795
ec6a6fbe
AK
8796{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8797$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8798if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8799 $as_echo_n "(cached) " >&6
ad6254c5 8800else
d0191583
JM
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809#define _doprnt innocuous__doprnt
7a197a62 8810
d0191583
JM
8811/* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char _doprnt (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
ad6254c5 8815
d0191583
JM
8816#ifdef __STDC__
8817# include <limits.h>
8818#else
8819# include <assert.h>
8820#endif
72b2cb61 8821
d0191583
JM
8822#undef _doprnt
8823
8824/* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827#ifdef __cplusplus
8828extern "C"
8829#endif
8830char _doprnt ();
8831/* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834#if defined __stub__doprnt || defined __stub____doprnt
8835choke me
8836#endif
8837
8838int
8839main ()
8840{
8841return _doprnt ();
8842 ;
8843 return 0;
8844}
72b2cb61 8845_ACEOF
d0191583
JM
8846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (ac_try="$ac_link"
8848case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851esac
ec6a6fbe
AK
8852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853$as_echo "$ac_try_echo") >&5
d0191583
JM
8854 (eval "$ac_link") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
ec6a6fbe 8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
ec6a6fbe
AK
8863 } && test -s conftest$ac_exeext && {
8864 test "$cross_compiling" = yes ||
8865 $as_test_x conftest$ac_exeext
8866 }; then
d0191583
JM
8867 ac_cv_func__doprnt=yes
8868else
ec6a6fbe 8869 $as_echo "$as_me: failed program was:" >&5
d0191583 8870sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8871
d0191583 8872 ac_cv_func__doprnt=no
ad6254c5
AK
8873fi
8874
ec6a6fbe 8875rm -rf conftest.dSYM
d0191583
JM
8876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8877 conftest$ac_exeext conftest.$ac_ext
7a197a62 8878fi
ec6a6fbe
AK
8879{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8880$as_echo "$ac_cv_func__doprnt" >&6; }
8881if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8882
d0191583
JM
8883cat >>confdefs.h <<\_ACEOF
8884#define HAVE_DOPRNT 1
8885_ACEOF
ad6254c5 8886
7a197a62
AK
8887fi
8888
d0191583
JM
8889fi
8890done
8b1a3214 8891
ad6254c5 8892
7a197a62 8893
9c961554 8894################################################################################
ec6a6fbe
AK
8895{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8896$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8897# Check whether --enable-static_link was given.
8898if test "${enable_static_link+set}" = set; then
8899 enableval=$enable_static_link; STATIC_LINK=$enableval
8900else
8901 STATIC_LINK=no
8902fi
8903
ec6a6fbe
AK
8904{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8905$as_echo "$STATIC_LINK" >&6; }
9c961554 8906
d0191583 8907################################################################################
ad6254c5 8908
ad6254c5
AK
8909
8910################################################################################
ec6a6fbe
AK
8911{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8912$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8913OWNER="root"
8914
8915
8916# Check whether --with-user was given.
8917if test "${with_user+set}" = set; then
8918 withval=$with_user; OWNER="$withval"
7a197a62
AK
8919fi
8920
ec6a6fbe
AK
8921{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8922$as_echo "$OWNER" >&6; }
ad6254c5 8923
d0191583
JM
8924if test x$OWNER != x; then
8925 OWNER="-o $OWNER"
ad6254c5
AK
8926fi
8927
8928################################################################################
ec6a6fbe
AK
8929{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8930$as_echo_n "checking group owner... " >&6; }
d0191583 8931GROUP="root"
ad6254c5 8932
d0191583
JM
8933# Check whether --with-group was given.
8934if test "${with_group+set}" = set; then
8935 withval=$with_group; GROUP="$withval"
7a197a62
AK
8936fi
8937
ec6a6fbe
AK
8938{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8939$as_echo "$GROUP" >&6; }
d0191583
JM
8940
8941if test x$GROUP != x; then
8942 GROUP="-g $GROUP"
8943fi
ad6254c5 8944
24bbc4d7 8945################################################################################
ec6a6fbe
AK
8946{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8947$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8948
8949
8950# Check whether --with-device-uid was given.
8951if test "${with_device_uid+set}" = set; then
8952 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8953else
8954 DM_DEVICE_UID="0"
8955fi
8956
ec6a6fbe
AK
8957{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8958$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8959
8960################################################################################
ec6a6fbe
AK
8961{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8962$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8963
8964
8965# Check whether --with-device-gid was given.
8966if test "${with_device_gid+set}" = set; then
8967 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8968else
8969 DM_DEVICE_GID="0"
8970fi
8971
ec6a6fbe
AK
8972{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8973$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8974
93bd259b 8975################################################################################
ec6a6fbe
AK
8976{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8977$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8978
8979
8980# Check whether --with-device-mode was given.
8981if test "${with_device_mode+set}" = set; then
8982 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8983else
8984 DM_DEVICE_MODE="0600"
8985fi
8986
ec6a6fbe
AK
8987{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8988$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8989
ad6254c5 8990################################################################################
ec6a6fbe
AK
8991{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8992$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8993# Check whether --enable-lvm1_fallback was given.
8994if test "${enable_lvm1_fallback+set}" = set; then
8995 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8996else
8997 LVM1_FALLBACK=no
7a197a62
AK
8998fi
8999
ec6a6fbe
AK
9000{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9001$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9002
d0191583 9003if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9004
9005cat >>confdefs.h <<\_ACEOF
d0191583 9006#define LVM1_FALLBACK 1
72b2cb61
AK
9007_ACEOF
9008
ad6254c5
AK
9009fi
9010
9011################################################################################
ec6a6fbe
AK
9012{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9013$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9014
9015# Check whether --with-lvm1 was given.
9016if test "${with_lvm1+set}" = set; then
9017 withval=$with_lvm1; LVM1="$withval"
9018else
9019 LVM1="internal"
7a197a62
AK
9020fi
9021
ec6a6fbe
AK
9022{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9023$as_echo "$LVM1" >&6; }
ad6254c5 9024
d0191583 9025if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9026 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9027" >&5
ec6a6fbe 9028$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9029" >&2;}
9030 { (exit 1); exit 1; }; }
9031fi;
9032
9033if test x$LVM1 = xinternal; then
72b2cb61
AK
9034
9035cat >>confdefs.h <<\_ACEOF
d0191583 9036#define LVM1_INTERNAL 1
72b2cb61
AK
9037_ACEOF
9038
ad6254c5
AK
9039fi
9040
9041################################################################################
ec6a6fbe
AK
9042{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9043$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9044
9045# Check whether --with-pool was given.
9046if test "${with_pool+set}" = set; then
9047 withval=$with_pool; POOL="$withval"
ad6254c5 9048else
d0191583 9049 POOL="internal"
7a197a62
AK
9050fi
9051
ec6a6fbe
AK
9052{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9053$as_echo "$POOL" >&6; }
ad6254c5 9054
d0191583 9055if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9056 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9057" >&5
ec6a6fbe 9058$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9059" >&2;}
9060 { (exit 1); exit 1; }; }
9061fi;
7a197a62 9062
d0191583
JM
9063if test x$POOL = xinternal; then
9064
9065cat >>confdefs.h <<\_ACEOF
9066#define POOL_INTERNAL 1
9067_ACEOF
9068
9069fi
ad6254c5 9070
06f62ad1 9071################################################################################
ec6a6fbe
AK
9072{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9073$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9074
9075# Check whether --with-cluster was given.
9076if test "${with_cluster+set}" = set; then
9077 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9078fi
9079
ec6a6fbe
AK
9080{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9081$as_echo "$CLUSTER" >&6; }
06f62ad1 9082
d0191583 9083if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9084 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9085" >&5
ec6a6fbe 9086$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9087" >&2;}
9088 { (exit 1); exit 1; }; }
d0191583 9089fi;
06f62ad1 9090
d0191583 9091if test x$CLUSTER = xinternal; then
72b2cb61
AK
9092
9093cat >>confdefs.h <<\_ACEOF
d0191583 9094#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9095_ACEOF
9096
15d91f5a 9097fi
ad6254c5
AK
9098
9099################################################################################
ec6a6fbe
AK
9100{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9101$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9102
d0191583
JM
9103# Check whether --with-snapshots was given.
9104if test "${with_snapshots+set}" = set; then
9105 withval=$with_snapshots; SNAPSHOTS="$withval"
9106else
9107 SNAPSHOTS="internal"
ad6254c5
AK
9108fi
9109
ec6a6fbe
AK
9110{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9111$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9112
d0191583 9113if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9114 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9115" >&5
ec6a6fbe 9116$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9117" >&2;}
9118 { (exit 1); exit 1; }; }
9119fi;
9120
9121if test x$SNAPSHOTS = xinternal; then
9122
9123cat >>confdefs.h <<\_ACEOF
9124#define SNAPSHOT_INTERNAL 1
9125_ACEOF
ad6254c5 9126
ad6254c5 9127fi
7a197a62 9128
d0191583 9129################################################################################
ec6a6fbe
AK
9130{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9131$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9132
9133# Check whether --with-mirrors was given.
9134if test "${with_mirrors+set}" = set; then
9135 withval=$with_mirrors; MIRRORS="$withval"
9136else
9137 MIRRORS="internal"
ad6254c5 9138fi
ad6254c5 9139
ec6a6fbe
AK
9140{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9141$as_echo "$MIRRORS" >&6; }
ad6254c5 9142
d0191583 9143if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9144 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9145" >&5
ec6a6fbe 9146$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9147" >&2;}
9148 { (exit 1); exit 1; }; }
9149fi;
ad6254c5 9150
d0191583 9151if test x$MIRRORS = xinternal; then
ad6254c5 9152
d0191583
JM
9153cat >>confdefs.h <<\_ACEOF
9154#define MIRRORED_INTERNAL 1
ad6254c5 9155_ACEOF
8a2fc586 9156
d0191583 9157fi
8a2fc586 9158
d0191583 9159################################################################################
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9161$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9162# Check whether --enable-readline was given.
9163if test "${enable_readline+set}" = set; then
9164 enableval=$enable_readline; READLINE=$enableval
9165else
06e459df 9166 READLINE=maybe
d0191583 9167fi
8a2fc586 9168
ec6a6fbe
AK
9169{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9170$as_echo "$READLINE" >&6; }
8a2fc586 9171
d0191583 9172################################################################################
ec6a6fbe
AK
9173{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9174$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9175# Check whether --enable-realtime was given.
9176if test "${enable_realtime+set}" = set; then
9177 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9178fi
ad6254c5 9179
ec6a6fbe
AK
9180{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9181$as_echo "$REALTIME" >&6; }
d0191583
JM
9182
9183################################################################################
ec6a6fbe
AK
9184{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9185$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9186
9187# Check whether --with-clvmd was given.
9188if test "${with_clvmd+set}" = set; then
9189 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9190else
d0191583
JM
9191 CLVMD="none"
9192fi
8a2fc586 9193
d0191583
JM
9194if test x$CLVMD = xyes; then
9195 CLVMD=all
9196fi
ec6a6fbe
AK
9197{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9198$as_echo "$CLVMD" >&6; }
8a2fc586 9199
d0191583
JM
9200if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9201 CLUSTER=internal
9202fi
8a2fc586 9203
f15a2320 9204if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
e2997b73
AK
9205
9206
9207if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9208 if test -n "$ac_tool_prefix"; then
9209 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9210set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9212$as_echo_n "checking for $ac_word... " >&6; }
9213if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9214 $as_echo_n "(cached) " >&6
9215else
9216 case $PKG_CONFIG in
9217 [\\/]* | ?:[\\/]*)
9218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9219 ;;
9220 *)
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232done
9233done
9234IFS=$as_save_IFS
9235
9236 ;;
9237esac
9238fi
9239PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9240if test -n "$PKG_CONFIG"; then
9241 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9242$as_echo "$PKG_CONFIG" >&6; }
9243else
9244 { $as_echo "$as_me:$LINENO: result: no" >&5
9245$as_echo "no" >&6; }
9246fi
9247
9248
9249fi
9250if test -z "$ac_cv_path_PKG_CONFIG"; then
9251 ac_pt_PKG_CONFIG=$PKG_CONFIG
9252 # Extract the first word of "pkg-config", so it can be a program name with args.
9253set dummy pkg-config; ac_word=$2
9254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9255$as_echo_n "checking for $ac_word... " >&6; }
9256if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9257 $as_echo_n "(cached) " >&6
9258else
9259 case $ac_pt_PKG_CONFIG in
9260 [\\/]* | ?:[\\/]*)
9261 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9262 ;;
9263 *)
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9271 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 break 2
9274 fi
9275done
9276done
9277IFS=$as_save_IFS
9278
9279 ;;
9280esac
9281fi
9282ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9283if test -n "$ac_pt_PKG_CONFIG"; then
9284 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9285$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9286else
9287 { $as_echo "$as_me:$LINENO: result: no" >&5
9288$as_echo "no" >&6; }
9289fi
9290
9291 if test "x$ac_pt_PKG_CONFIG" = x; then
9292 PKG_CONFIG=""
9293 else
9294 case $cross_compiling:$ac_tool_warned in
9295yes:)
9296{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9298ac_tool_warned=yes ;;
9299esac
9300 PKG_CONFIG=$ac_pt_PKG_CONFIG
9301 fi
9302else
9303 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9304fi
9305
9306fi
9307if test -n "$PKG_CONFIG"; then
9308 _pkg_min_version=0.9.0
9309 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9310$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9311 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9312 { $as_echo "$as_me:$LINENO: result: yes" >&5
9313$as_echo "yes" >&6; }
9314 else
9315 { $as_echo "$as_me:$LINENO: result: no" >&5
9316$as_echo "no" >&6; }
9317 PKG_CONFIG=""
9318 fi
9319
9320fi
9321
9322pkg_failed=no
9323{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9324$as_echo_n "checking for QUORUM... " >&6; }
9325
9326if test -n "$QUORUM_CFLAGS"; then
9327 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9328 elif test -n "$PKG_CONFIG"; then
9329 if test -n "$PKG_CONFIG" && \
9330 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9331 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9332 ac_status=$?
9333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; then
9335 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9336else
9337 pkg_failed=yes
9338fi
9339 else
9340 pkg_failed=untried
9341fi
9342if test -n "$QUORUM_LIBS"; then
9343 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9344 elif test -n "$PKG_CONFIG"; then
9345 if test -n "$PKG_CONFIG" && \
9346 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9347 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9348 ac_status=$?
9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; then
9351 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9352else
9353 pkg_failed=yes
9354fi
9355 else
9356 pkg_failed=untried
9357fi
9358
9359
9360
9361if test $pkg_failed = yes; then
9362
9363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9364 _pkg_short_errors_supported=yes
9365else
9366 _pkg_short_errors_supported=no
9367fi
9368 if test $_pkg_short_errors_supported = yes; then
9369 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9370 else
9371 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9372 fi
9373 # Put the nasty error message in config.log where it belongs
9374 echo "$QUORUM_PKG_ERRORS" >&5
9375
9376 { $as_echo "$as_me:$LINENO: result: no" >&5
9377$as_echo "no" >&6; }
9378 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9379$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9380 QUORUM_LIBS="-lquorum"
9381elif test $pkg_failed = untried; then
9382 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9383$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9384 QUORUM_LIBS="-lquorum"
9385else
9386 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9387 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9388 { $as_echo "$as_me:$LINENO: result: yes" >&5
9389$as_echo "yes" >&6; }
9390 :
9391fi
9392
9393pkg_failed=no
9394{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9395$as_echo_n "checking for CONFDB... " >&6; }
9396
9397if test -n "$CONFDB_CFLAGS"; then
9398 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9399 elif test -n "$PKG_CONFIG"; then
9400 if test -n "$PKG_CONFIG" && \
9401 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9402 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9403 ac_status=$?
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; then
9406 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9407else
9408 pkg_failed=yes
9409fi
9410 else
9411 pkg_failed=untried
9412fi
9413if test -n "$CONFDB_LIBS"; then
9414 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9415 elif test -n "$PKG_CONFIG"; then
9416 if test -n "$PKG_CONFIG" && \
9417 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9418 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9419 ac_status=$?
9420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; then
9422 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9423else
9424 pkg_failed=yes
9425fi
9426 else
9427 pkg_failed=untried
9428fi
9429
9430
9431
9432if test $pkg_failed = yes; then
9433
9434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9435 _pkg_short_errors_supported=yes
9436else
9437 _pkg_short_errors_supported=no
9438fi
9439 if test $_pkg_short_errors_supported = yes; then
9440 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9441 else
9442 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9443 fi
9444 # Put the nasty error message in config.log where it belongs
9445 echo "$CONFDB_PKG_ERRORS" >&5
9446
9447 { $as_echo "$as_me:$LINENO: result: no" >&5
9448$as_echo "no" >&6; }
9449 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9450$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9451 CONFDB_LIBS="-lconfdb"
9452elif test $pkg_failed = untried; then
9453 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9454$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9455 CONFDB_LIBS="-lconfdb"
9456else
9457 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9458 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9459 { $as_echo "$as_me:$LINENO: result: yes" >&5
9460$as_echo "yes" >&6; }
9461 :
9462fi
9463
9464pkg_failed=no
9465{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9466$as_echo_n "checking for CPG... " >&6; }
9467
9468if test -n "$CPG_CFLAGS"; then
9469 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9470 elif test -n "$PKG_CONFIG"; then
9471 if test -n "$PKG_CONFIG" && \
9472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9473 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9474 ac_status=$?
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; then
9477 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9478else
9479 pkg_failed=yes
9480fi
9481 else
9482 pkg_failed=untried
9483fi
9484if test -n "$CPG_LIBS"; then
9485 pkg_cv_CPG_LIBS="$CPG_LIBS"
9486 elif test -n "$PKG_CONFIG"; then
9487 if test -n "$PKG_CONFIG" && \
9488 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9489 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9490 ac_status=$?
9491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; then
9493 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9494else
9495 pkg_failed=yes
9496fi
9497 else
9498 pkg_failed=untried
9499fi
9500
9501
9502
9503if test $pkg_failed = yes; then
9504
9505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9506 _pkg_short_errors_supported=yes
9507else
9508 _pkg_short_errors_supported=no
9509fi
9510 if test $_pkg_short_errors_supported = yes; then
9511 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9512 else
9513 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9514 fi
9515 # Put the nasty error message in config.log where it belongs
9516 echo "$CPG_PKG_ERRORS" >&5
9517
9518 { $as_echo "$as_me:$LINENO: result: no" >&5
9519$as_echo "no" >&6; }
9520 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9521$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9522 CPG_LIBS="-lcpg"
9523elif test $pkg_failed = untried; then
9524 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9525$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9526 CPG_LIBS="-lcpg"
9527else
9528 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9529 CPG_LIBS=$pkg_cv_CPG_LIBS
9530 { $as_echo "$as_me:$LINENO: result: yes" >&5
9531$as_echo "yes" >&6; }
9532 :
9533fi
9534fi
9535
d0191583 9536################################################################################
ec6a6fbe
AK
9537{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9538$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9539# Check whether --enable-debug was given.
9540if test "${enable_debug+set}" = set; then
9541 enableval=$enable_debug; DEBUG=$enableval
9542else
9543 DEBUG=no
9544fi
8a2fc586 9545
ec6a6fbe
AK
9546{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9547$as_echo "$DEBUG" >&6; }
ad6254c5 9548
d0191583
JM
9549if test x$DEBUG = xyes; then
9550 COPTIMISE_FLAG=
fc54be10 9551else
d0191583
JM
9552 CSCOPE_CMD=
9553fi
fc54be10 9554
d0191583 9555################################################################################
ec6a6fbe
AK
9556{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9557$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9558
9559# Check whether --with-optimisation was given.
9560if test "${with_optimisation+set}" = set; then
9561 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9562fi
9563
ec6a6fbe
AK
9564{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9565$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9566
9567################################################################################
ec6a6fbe
AK
9568{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9569$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9570# Check whether --enable-profiling was given.
9571if test "${enable_profiling+set}" = set; then
5556819a 9572 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9573else
5556819a 9574 PROFILING=no
fddafd51
ZK
9575fi
9576
ec6a6fbe
AK
9577{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9578$as_echo "$PROFILING" >&6; }
5556819a
AK
9579
9580if test "x$PROFILING" = xyes; then
9581 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9582 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9583set dummy lcov; ac_word=$2
ec6a6fbe
AK
9584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9586if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9587 $as_echo_n "(cached) " >&6
fddafd51
ZK
9588else
9589 case $LCOV in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9592 ;;
9593 *)
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9603 break 2
9604 fi
9605done
9606done
9607IFS=$as_save_IFS
9608
b145d876 9609 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9610 ;;
9611esac
9612fi
9613LCOV=$ac_cv_path_LCOV
9614if test -n "$LCOV"; then
ec6a6fbe
AK
9615 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9616$as_echo "$LCOV" >&6; }
fddafd51 9617else
ec6a6fbe
AK
9618 { $as_echo "$as_me:$LINENO: result: no" >&5
9619$as_echo "no" >&6; }
fddafd51
ZK
9620fi
9621
9622
5556819a 9623 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9624set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9625{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9626$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9627if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9628 $as_echo_n "(cached) " >&6
fddafd51
ZK
9629else
9630 case $GENHTML in
9631 [\\/]* | ?:[\\/]*)
9632 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9633 ;;
9634 *)
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9642 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9644 break 2
9645 fi
9646done
9647done
9648IFS=$as_save_IFS
9649
b145d876 9650 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9651 ;;
9652esac
9653fi
9654GENHTML=$ac_cv_path_GENHTML
9655if test -n "$GENHTML"; then
ec6a6fbe
AK
9656 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9657$as_echo "$GENHTML" >&6; }
fddafd51 9658else
ec6a6fbe
AK
9659 { $as_echo "$as_me:$LINENO: result: no" >&5
9660$as_echo "no" >&6; }
fddafd51
ZK
9661fi
9662
9663
b145d876 9664 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9665 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9666$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9667 { (exit 1); exit 1; }; }
9668 fi
5556819a 9669fi
d0191583
JM
9670
9671################################################################################
ec6a6fbe
AK
9672{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9673$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9674# Check whether --enable-devmapper was given.
9675if test "${enable_devmapper+set}" = set; then
9676 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9677fi
9678
ec6a6fbe
AK
9679{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9680$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9681
9682if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9683
9684cat >>confdefs.h <<\_ACEOF
d0191583 9685#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9686_ACEOF
9687
9688fi
9689
a5f46f6a
AK
9690################################################################################
9691{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
9692$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
9693# Check whether --enable-udev_sync was given.
9694if test "${enable_udev_sync+set}" = set; then
9695 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
9696else
9697 UDEV_SYNC=no
9698fi
9699
9700{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
9701$as_echo "$UDEV_SYNC" >&6; }
9702
9703if test x$UDEV_SYNC = xyes; then
9704
9705cat >>confdefs.h <<\_ACEOF
9706#define UDEV_SYNC_SUPPORT 1
9707_ACEOF
9708
9709fi
9710
9711{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
9712$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
9713# Check whether --enable-udev_rules was given.
9714if test "${enable_udev_rules+set}" = set; then
9715 enableval=$enable_udev_rules; UDEV_RULES=$enableval
9716else
9717 UDEV_RULES=$UDEV_SYNC
9718fi
9719
9720{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
9721$as_echo "$UDEV_RULES" >&6; }
9722
93bd259b
AK
9723################################################################################
9724# Check whether --enable-compat was given.
9725if test "${enable_compat+set}" = set; then
9726 enableval=$enable_compat; DM_COMPAT=$enableval
9727else
9728 DM_COMPAT=no
9729fi
9730
9731
9732################################################################################
9733# Check whether --enable-ioctl was given.
9734if test "${enable_ioctl+set}" = set; then
9735 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9736fi
9737
9738
d0191583 9739################################################################################
ec6a6fbe
AK
9740{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9741$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9742# Check whether --enable-o_direct was given.
9743if test "${enable_o_direct+set}" = set; then
9744 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9745fi
ad6254c5 9746
ec6a6fbe
AK
9747{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9748$as_echo "$ODIRECT" >&6; }
ad6254c5 9749
d0191583 9750if test x$ODIRECT = xyes; then
ad6254c5 9751
d0191583
JM
9752cat >>confdefs.h <<\_ACEOF
9753#define O_DIRECT_SUPPORT 1
9754_ACEOF
ad6254c5 9755
d0191583 9756fi
ad6254c5 9757
572fefeb
AK
9758################################################################################
9759{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9760$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9761# Check whether --enable-applib was given.
9762if test "${enable_applib+set}" = set; then
9763 enableval=$enable_applib; APPLIB=$enableval
9764else
9765 APPLIB=no
9766fi
9767
9768{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9769$as_echo "$APPLIB" >&6; }
9770
9771test x$APPLIB = xyes \
9772 && LVM2APP_LIB=-llvm2app \
9773 || LVM2APP_LIB=
9774
d0191583 9775################################################################################
ec6a6fbe
AK
9776{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9777$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9778# Check whether --enable-cmdlib was given.
9779if test "${enable_cmdlib+set}" = set; then
9780 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9781else
d0191583
JM
9782 CMDLIB=no
9783fi
8a2fc586 9784
ec6a6fbe
AK
9785{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9786$as_echo "$CMDLIB" >&6; }
8a2fc586 9787
2a9a80c9 9788test x$CMDLIB = xyes \
d179cc7a
JM
9789 && LVM2CMD_LIB=-llvm2cmd \
9790 || LVM2CMD_LIB=
9791
93bd259b
AK
9792################################################################################
9793# Check whether --enable-pkgconfig was given.
9794if test "${enable_pkgconfig+set}" = set; then
9795 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9796else
9797 PKGCONFIG=no
9798fi
9799
2a9a80c9 9800
d0191583 9801################################################################################
ec6a6fbe
AK
9802{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9803$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9804# Check whether --enable-fsadm was given.
9805if test "${enable_fsadm+set}" = set; then
9806 enableval=$enable_fsadm; FSADM=$enableval
9807fi
8a2fc586 9808
ec6a6fbe
AK
9809{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9810$as_echo "$FSADM" >&6; }
8a2fc586 9811
d0191583 9812################################################################################
ec6a6fbe
AK
9813{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9814$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9815# Check whether --enable-dmeventd was given.
9816if test "${enable_dmeventd+set}" = set; then
9817 enableval=$enable_dmeventd; DMEVENTD=$enableval
9818fi
ad6254c5 9819
ec6a6fbe
AK
9820{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9821$as_echo "$DMEVENTD" >&6; }
ad6254c5 9822
93bd259b
AK
9823BUILD_DMEVENTD=$DMEVENTD
9824
2a9a80c9
PR
9825if test x$DMEVENTD = xyes; then
9826 if test x$MIRRORS != xinternal; then
ec6a6fbe 9827 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9828 " >&5
ec6a6fbe 9829$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9830 " >&2;}
d0191583 9831 { (exit 1); exit 1; }; }
2a9a80c9
PR
9832 fi
9833 if test x$CMDLIB = xno; then
ec6a6fbe 9834 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9835 " >&5
ec6a6fbe 9836$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9837 " >&2;}
9838 { (exit 1); exit 1; }; }
9839 fi
ad6254c5 9840fi
7a197a62 9841
d0191583
JM
9842if test x$DMEVENTD = xyes; then
9843
9844cat >>confdefs.h <<\_ACEOF
9845#define DMEVENTD 1
ad6254c5
AK
9846_ACEOF
9847
ad6254c5 9848fi
93bd259b
AK
9849
9850################################################################################
9851
ec6a6fbe
AK
9852{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9853$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9854if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9855 $as_echo_n "(cached) " >&6
93bd259b
AK
9856else
9857 ac_check_lib_save_LIBS=$LIBS
9858LIBS="-lc $LIBS"
9859cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h. */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h. */
9865
9866/* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869#ifdef __cplusplus
9870extern "C"
9871#endif
9872char getline ();
9873int
9874main ()
9875{
9876return getline ();
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext conftest$ac_exeext
9882if { (ac_try="$ac_link"
9883case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
ec6a6fbe
AK
9887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9888$as_echo "$ac_try_echo") >&5
93bd259b
AK
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
ec6a6fbe 9894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
ec6a6fbe
AK
9898 } && test -s conftest$ac_exeext && {
9899 test "$cross_compiling" = yes ||
9900 $as_test_x conftest$ac_exeext
9901 }; then
93bd259b
AK
9902 ac_cv_lib_c_getline=yes
9903else
ec6a6fbe 9904 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_lib_c_getline=no
9908fi
9909
ec6a6fbe 9910rm -rf conftest.dSYM
93bd259b
AK
9911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9912 conftest$ac_exeext conftest.$ac_ext
9913LIBS=$ac_check_lib_save_LIBS
9914fi
ec6a6fbe
AK
9915{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9916$as_echo "$ac_cv_lib_c_getline" >&6; }
9917if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9918
9919cat >>confdefs.h <<\_ACEOF
9920#define HAVE_GETLINE 1
9921_ACEOF
9922
9923fi
9924
9925
9926################################################################################
9927
ec6a6fbe
AK
9928{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9929$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9930if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9931 $as_echo_n "(cached) " >&6
93bd259b
AK
9932else
9933 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-lc $LIBS"
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941
9942/* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
9948char canonicalize_file_name ();
9949int
9950main ()
9951{
9952return canonicalize_file_name ();
9953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
9958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
ec6a6fbe
AK
9963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9964$as_echo "$ac_try_echo") >&5
93bd259b
AK
9965 (eval "$ac_link") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
ec6a6fbe 9970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9971 (exit $ac_status); } && {
9972 test -z "$ac_c_werror_flag" ||
9973 test ! -s conftest.err
ec6a6fbe
AK
9974 } && test -s conftest$ac_exeext && {
9975 test "$cross_compiling" = yes ||
9976 $as_test_x conftest$ac_exeext
9977 }; then
93bd259b
AK
9978 ac_cv_lib_c_canonicalize_file_name=yes
9979else
ec6a6fbe 9980 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ac_cv_lib_c_canonicalize_file_name=no
9984fi
9985
ec6a6fbe 9986rm -rf conftest.dSYM
93bd259b
AK
9987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9988 conftest$ac_exeext conftest.$ac_ext
9989LIBS=$ac_check_lib_save_LIBS
9990fi
ec6a6fbe
AK
9991{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9992$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9993if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9994
9995cat >>confdefs.h <<\_ACEOF
9996#define HAVE_CANONICALIZE_FILE_NAME 1
9997_ACEOF
9998
9999fi
10000
10001
d0191583
JM
10002################################################################################
10003if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
10004 then exec_prefix="";
10005fi;
ad6254c5
AK
10006
10007################################################################################
06e459df 10008if test x$READLINE != xno; then
ec6a6fbe
AK
10009 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10010$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 10011if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 10012 $as_echo_n "(cached) " >&6
ad6254c5
AK
10013else
10014 ac_func_search_save_LIBS=$LIBS
ad6254c5 10015cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10016/* confdefs.h. */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h. */
10021
7a197a62
AK
10022/* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10025#ifdef __cplusplus
10026extern "C"
10027#endif
ad6254c5
AK
10028char tgetent ();
10029int
10030main ()
10031{
7a197a62 10032return tgetent ();
ad6254c5
AK
10033 ;
10034 return 0;
10035}
10036_ACEOF
18dcfb69 10037for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
10038 if test -z "$ac_lib"; then
10039 ac_res="none required"
10040 else
10041 ac_res=-l$ac_lib
10042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10043 fi
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045if { (ac_try="$ac_link"
10046case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
ec6a6fbe
AK
10050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051$as_echo "$ac_try_echo") >&5
7a197a62 10052 (eval "$ac_link") 2>conftest.er1
ad6254c5 10053 ac_status=$?
8a2fc586
AK
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
ec6a6fbe 10057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
ec6a6fbe
AK
10061 } && test -s conftest$ac_exeext && {
10062 test "$cross_compiling" = yes ||
10063 $as_test_x conftest$ac_exeext
10064 }; then
7a197a62 10065 ac_cv_search_tgetent=$ac_res
ad6254c5 10066else
ec6a6fbe 10067 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
ad6254c5 10070
7a197a62 10071fi
ad6254c5 10072
ec6a6fbe 10073rm -rf conftest.dSYM
25fbec5b 10074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10075 conftest$ac_exeext
10076 if test "${ac_cv_search_tgetent+set}" = set; then
10077 break
ad6254c5 10078fi
7a197a62
AK
10079done
10080if test "${ac_cv_search_tgetent+set}" = set; then
10081 :
10082else
10083 ac_cv_search_tgetent=no
ad6254c5 10084fi
7a197a62 10085rm conftest.$ac_ext
ad6254c5
AK
10086LIBS=$ac_func_search_save_LIBS
10087fi
ec6a6fbe
AK
10088{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10089$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10090ac_res=$ac_cv_search_tgetent
10091if test "$ac_res" != no; then
10092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10093 tg_found=yes
ad6254c5 10094else
06e459df
JM
10095 tg_found=no
10096fi
10097
10098 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10099 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10100--enable-readline option (which is enabled by default). Either disable readline
10101support with --disable-readline or download and install termcap from:
10102 ftp.gnu.org/gnu/termcap
10103Note: if you are using precompiled packages you will also need the development
10104 package as well (which may be called termcap-devel or something similar).
10105Note: (n)curses also seems to work as a substitute for termcap. This was
10106 not found either - but you could try installing that as well.
10107" >&5
ec6a6fbe 10108$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10109--enable-readline option (which is enabled by default). Either disable readline
10110support with --disable-readline or download and install termcap from:
10111 ftp.gnu.org/gnu/termcap
10112Note: if you are using precompiled packages you will also need the development
10113 package as well (which may be called termcap-devel or something similar).
10114Note: (n)curses also seems to work as a substitute for termcap. This was
10115 not found either - but you could try installing that as well.
10116" >&2;}
10117 { (exit 1); exit 1; }; }
ad6254c5
AK
10118fi
10119
10120################################################################################
ec6a6fbe
AK
10121{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10122$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10123if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10124 $as_echo_n "(cached) " >&6
ad6254c5
AK
10125else
10126 ac_check_lib_save_LIBS=$LIBS
10127LIBS="-ldl $LIBS"
10128cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134
7a197a62
AK
10135/* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10138#ifdef __cplusplus
10139extern "C"
10140#endif
ad6254c5
AK
10141char dlopen ();
10142int
10143main ()
10144{
7a197a62 10145return dlopen ();
ad6254c5
AK
10146 ;
10147 return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10151if { (ac_try="$ac_link"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
ec6a6fbe
AK
10156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157$as_echo "$ac_try_echo") >&5
7a197a62 10158 (eval "$ac_link") 2>conftest.er1
ad6254c5 10159 ac_status=$?
8a2fc586
AK
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
ec6a6fbe 10163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
ec6a6fbe
AK
10167 } && test -s conftest$ac_exeext && {
10168 test "$cross_compiling" = yes ||
10169 $as_test_x conftest$ac_exeext
10170 }; then
ad6254c5
AK
10171 ac_cv_lib_dl_dlopen=yes
10172else
ec6a6fbe 10173 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
7a197a62 10176 ac_cv_lib_dl_dlopen=no
ad6254c5 10177fi
7a197a62 10178
ec6a6fbe 10179rm -rf conftest.dSYM
25fbec5b 10180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10181 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10182LIBS=$ac_check_lib_save_LIBS
10183fi
ec6a6fbe
AK
10184{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10185$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10186if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10187 HAVE_LIBDL=yes
10188else
10189 HAVE_LIBDL=no
10190fi
10191
10192
7e9e9502 10193if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10194
10195cat >>confdefs.h <<\_ACEOF
10196#define HAVE_LIBDL 1
10197_ACEOF
10198
ad6254c5
AK
10199 LIBS="-ldl $LIBS"
10200else
10201 HAVE_LIBDL=no
10202fi
10203
10204################################################################################
10205if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10206 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10207 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10208 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10209" >&5
ec6a6fbe 10210$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10211" >&2;}
10212 { (exit 1); exit 1; }; }
10213fi
10214
d0191583 10215################################################################################
ec6a6fbe
AK
10216{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10217$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10218# Check whether --enable-selinux was given.
10219if test "${enable_selinux+set}" = set; then
10220 enableval=$enable_selinux; SELINUX=$enableval
10221fi
10222
ec6a6fbe
AK
10223{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10224$as_echo "$SELINUX" >&6; }
d0191583 10225
ad6254c5
AK
10226################################################################################
10227if test x$SELINUX = xyes; then
ec6a6fbe
AK
10228 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10229$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10230if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10231 $as_echo_n "(cached) " >&6
8a2fc586
AK
10232else
10233 ac_check_lib_save_LIBS=$LIBS
10234LIBS="-lsepol $LIBS"
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241
7a197a62
AK
10242/* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10245#ifdef __cplusplus
10246extern "C"
10247#endif
8a2fc586
AK
10248char sepol_check_context ();
10249int
10250main ()
10251{
7a197a62 10252return sepol_check_context ();
8a2fc586
AK
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10258if { (ac_try="$ac_link"
10259case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262esac
ec6a6fbe
AK
10263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10264$as_echo "$ac_try_echo") >&5
7a197a62 10265 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
ec6a6fbe 10270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
ec6a6fbe
AK
10274 } && test -s conftest$ac_exeext && {
10275 test "$cross_compiling" = yes ||
10276 $as_test_x conftest$ac_exeext
10277 }; then
8a2fc586
AK
10278 ac_cv_lib_sepol_sepol_check_context=yes
10279else
ec6a6fbe 10280 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
7a197a62 10283 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10284fi
7a197a62 10285
ec6a6fbe 10286rm -rf conftest.dSYM
25fbec5b 10287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10288 conftest$ac_exeext conftest.$ac_ext
10289LIBS=$ac_check_lib_save_LIBS
10290fi
ec6a6fbe
AK
10291{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10292$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10293if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10294 HAVE_SEPOL=yes
10295else
10296 HAVE_SEPOL=no
10297fi
10298
8a2fc586
AK
10299
10300 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10301
10302cat >>confdefs.h <<\_ACEOF
10303#define HAVE_SEPOL 1
10304_ACEOF
10305
8a2fc586
AK
10306 LIBS="-lsepol $LIBS"
10307 fi
10308
ec6a6fbe
AK
10309 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10310$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10311if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10312 $as_echo_n "(cached) " >&6
ad6254c5
AK
10313else
10314 ac_check_lib_save_LIBS=$LIBS
10315LIBS="-lselinux $LIBS"
10316cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
10322
7a197a62
AK
10323/* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10326#ifdef __cplusplus
10327extern "C"
10328#endif
ad6254c5
AK
10329char is_selinux_enabled ();
10330int
10331main ()
10332{
7a197a62 10333return is_selinux_enabled ();
ad6254c5
AK
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
ec6a6fbe
AK
10344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345$as_echo "$ac_try_echo") >&5
7a197a62 10346 (eval "$ac_link") 2>conftest.er1
ad6254c5 10347 ac_status=$?
8a2fc586
AK
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
ec6a6fbe 10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
ec6a6fbe
AK
10355 } && test -s conftest$ac_exeext && {
10356 test "$cross_compiling" = yes ||
10357 $as_test_x conftest$ac_exeext
10358 }; then
ad6254c5
AK
10359 ac_cv_lib_selinux_is_selinux_enabled=yes
10360else
ec6a6fbe 10361 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
7a197a62 10364 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10365fi
7a197a62 10366
ec6a6fbe 10367rm -rf conftest.dSYM
25fbec5b 10368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10369 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10370LIBS=$ac_check_lib_save_LIBS
10371fi
ec6a6fbe
AK
10372{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10373$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10374if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10375 HAVE_SELINUX=yes
10376else
10377 HAVE_SELINUX=no
10378fi
10379
ad6254c5
AK
10380
10381 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10382
10383cat >>confdefs.h <<\_ACEOF
10384#define HAVE_SELINUX 1
10385_ACEOF
10386
ad6254c5
AK
10387 LIBS="-lselinux $LIBS"
10388 else
ec6a6fbe
AK
10389 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10390$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10391 fi
10392
d0191583 10393 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10394 # fails on at least Debian unstable due to unsatisfied references
10395 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10396 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10397 lvm_saved_libs=$LIBS
10398 LIBS="$LIBS -static"
ec6a6fbe
AK
10399 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10400$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10401if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10402 $as_echo_n "(cached) " >&6
66e941e8
JM
10403else
10404 ac_func_search_save_LIBS=$LIBS
10405cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411
10412/* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415#ifdef __cplusplus
10416extern "C"
10417#endif
10418char pthread_mutex_lock ();
10419int
10420main ()
10421{
10422return pthread_mutex_lock ();
10423 ;
10424 return 0;
10425}
10426_ACEOF
10427for ac_lib in '' pthread; do
10428 if test -z "$ac_lib"; then
10429 ac_res="none required"
10430 else
10431 ac_res=-l$ac_lib
10432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10433 fi
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (ac_try="$ac_link"
10436case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
ec6a6fbe
AK
10440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441$as_echo "$ac_try_echo") >&5
66e941e8
JM
10442 (eval "$ac_link") 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
ec6a6fbe 10447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10448 (exit $ac_status); } && {
10449 test -z "$ac_c_werror_flag" ||
10450 test ! -s conftest.err
ec6a6fbe
AK
10451 } && test -s conftest$ac_exeext && {
10452 test "$cross_compiling" = yes ||
10453 $as_test_x conftest$ac_exeext
10454 }; then
66e941e8
JM
10455 ac_cv_search_pthread_mutex_lock=$ac_res
10456else
ec6a6fbe 10457 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460
10461fi
10462
ec6a6fbe 10463rm -rf conftest.dSYM
25fbec5b 10464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10465 conftest$ac_exeext
10466 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10467 break
10468fi
10469done
10470if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10471 :
10472else
10473 ac_cv_search_pthread_mutex_lock=no
10474fi
10475rm conftest.$ac_ext
10476LIBS=$ac_func_search_save_LIBS
10477fi
ec6a6fbe
AK
10478{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10479$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10480ac_res=$ac_cv_search_pthread_mutex_lock
10481if test "$ac_res" != no; then
10482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10483 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10484 LIB_PTHREAD=-lpthread
10485fi
10486
10487 LIBS=$lvm_saved_libs
ad6254c5
AK
10488 fi
10489fi
10490
8b1a3214
AK
10491################################################################################
10492if test x$REALTIME = xyes; then
ec6a6fbe
AK
10493 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10494$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10495if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10496 $as_echo_n "(cached) " >&6
8b1a3214
AK
10497else
10498 ac_check_lib_save_LIBS=$LIBS
10499LIBS="-lrt $LIBS"
10500cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
10506
7a197a62
AK
10507/* Override any GCC internal prototype to avoid an error.
10508 Use char because int might match the return type of a GCC
10509 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10510#ifdef __cplusplus
10511extern "C"
10512#endif
8b1a3214
AK
10513char clock_gettime ();
10514int
10515main ()
10516{
7a197a62 10517return clock_gettime ();
8b1a3214
AK
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10523if { (ac_try="$ac_link"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
ec6a6fbe
AK
10528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529$as_echo "$ac_try_echo") >&5
7a197a62 10530 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
ec6a6fbe 10535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
ec6a6fbe
AK
10539 } && test -s conftest$ac_exeext && {
10540 test "$cross_compiling" = yes ||
10541 $as_test_x conftest$ac_exeext
10542 }; then
8b1a3214
AK
10543 ac_cv_lib_rt_clock_gettime=yes
10544else
ec6a6fbe 10545 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
7a197a62 10548 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10549fi
7a197a62 10550
ec6a6fbe 10551rm -rf conftest.dSYM
25fbec5b 10552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10553 conftest$ac_exeext conftest.$ac_ext
10554LIBS=$ac_check_lib_save_LIBS
10555fi
ec6a6fbe
AK
10556{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10557$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10558if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10559 HAVE_REALTIME=yes
10560else
10561 HAVE_REALTIME=no
10562fi
10563
8b1a3214
AK
10564
10565 if test x$HAVE_REALTIME = xyes; then
10566
10567cat >>confdefs.h <<\_ACEOF
10568#define HAVE_REALTIME 1
10569_ACEOF
10570
10571 LIBS="-lrt $LIBS"
10572 else
ec6a6fbe
AK
10573 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10574$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10575 fi
10576fi
10577
ad6254c5
AK
10578################################################################################
10579
10580for ac_header in getopt.h
10581do
ec6a6fbe 10582as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10585$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10587 $as_echo_n "(cached) " >&6
ad6254c5 10588fi
ec6a6fbe
AK
10589ac_res=`eval 'as_val=${'$as_ac_Header'}
10590 $as_echo "$as_val"'`
10591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10592$as_echo "$ac_res" >&6; }
ad6254c5
AK
10593else
10594 # Is the header compilable?
ec6a6fbe
AK
10595{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10597cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603$ac_includes_default
10604#include <$ac_header>
10605_ACEOF
10606rm -f conftest.$ac_objext
7a197a62
AK
10607if { (ac_try="$ac_compile"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
ec6a6fbe
AK
10612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613$as_echo "$ac_try_echo") >&5
7a197a62 10614 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10615 ac_status=$?
8a2fc586
AK
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
ec6a6fbe 10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10624 ac_header_compiler=yes
10625else
ec6a6fbe 10626 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
7a197a62 10629 ac_header_compiler=no
ad6254c5 10630fi
7a197a62
AK
10631
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10633{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10634$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10635
10636# Is the header present?
ec6a6fbe
AK
10637{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10638$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10639cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10640/* confdefs.h. */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h. */
10645#include <$ac_header>
10646_ACEOF
7a197a62
AK
10647if { (ac_try="$ac_cpp conftest.$ac_ext"
10648case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651esac
ec6a6fbe
AK
10652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653$as_echo "$ac_try_echo") >&5
7a197a62 10654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
ec6a6fbe 10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10660 (exit $ac_status); } >/dev/null && {
10661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 }; then
ad6254c5
AK
10664 ac_header_preproc=yes
10665else
ec6a6fbe 10666 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_header_preproc=no
10670fi
7a197a62 10671
ad6254c5 10672rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10673{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10675
10676# So? What about this header?
8a2fc586
AK
10677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678 yes:no: )
ec6a6fbe
AK
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10683 ac_header_preproc=yes
ad6254c5 10684 ;;
8a2fc586 10685 no:yes:* )
ec6a6fbe
AK
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10689$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10693$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10698
ad6254c5
AK
10699 ;;
10700esac
ec6a6fbe
AK
10701{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10702$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10704 $as_echo_n "(cached) " >&6
ad6254c5 10705else
8a2fc586 10706 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10707fi
ec6a6fbe
AK
10708ac_res=`eval 'as_val=${'$as_ac_Header'}
10709 $as_echo "$as_val"'`
10710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10711$as_echo "$ac_res" >&6; }
ad6254c5
AK
10712
10713fi
ec6a6fbe
AK
10714as_val=`eval 'as_val=${'$as_ac_Header'}
10715 $as_echo "$as_val"'`
10716 if test "x$as_val" = x""yes; then
ad6254c5 10717 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10719_ACEOF
72b2cb61
AK
10720
10721cat >>confdefs.h <<\_ACEOF
10722#define HAVE_GETOPTLONG 1
10723_ACEOF
10724
ad6254c5
AK
10725fi
10726
10727done
10728
10729
10730################################################################################
06e459df 10731if test x$READLINE != xno; then
bc1024f8
JM
10732 rl_found=yes
10733
ec6a6fbe
AK
10734{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10735$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10736if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10737 $as_echo_n "(cached) " >&6
ad6254c5
AK
10738else
10739 ac_check_lib_save_LIBS=$LIBS
10740LIBS="-lreadline $LIBS"
10741cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10742/* confdefs.h. */
10743_ACEOF
10744cat confdefs.h >>conftest.$ac_ext
10745cat >>conftest.$ac_ext <<_ACEOF
10746/* end confdefs.h. */
10747
7a197a62
AK
10748/* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10751#ifdef __cplusplus
10752extern "C"
10753#endif
ad6254c5
AK
10754char readline ();
10755int
10756main ()
10757{
7a197a62 10758return readline ();
ad6254c5
AK
10759 ;
10760 return 0;
10761}
10762_ACEOF
10763rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10764if { (ac_try="$ac_link"
10765case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768esac
ec6a6fbe
AK
10769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770$as_echo "$ac_try_echo") >&5
7a197a62 10771 (eval "$ac_link") 2>conftest.er1
ad6254c5 10772 ac_status=$?
8a2fc586
AK
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
ec6a6fbe 10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
ec6a6fbe
AK
10780 } && test -s conftest$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest$ac_exeext
10783 }; then
ad6254c5
AK
10784 ac_cv_lib_readline_readline=yes
10785else
ec6a6fbe 10786 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
7a197a62 10789 ac_cv_lib_readline_readline=no
ad6254c5 10790fi
7a197a62 10791
ec6a6fbe 10792rm -rf conftest.dSYM
25fbec5b 10793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10794 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10795LIBS=$ac_check_lib_save_LIBS
10796fi
ec6a6fbe
AK
10797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10798$as_echo "$ac_cv_lib_readline_readline" >&6; }
10799if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10800 cat >>confdefs.h <<_ACEOF
10801#define HAVE_LIBREADLINE 1
10802_ACEOF
10803
10804 LIBS="-lreadline $LIBS"
10805
ad6254c5 10806else
06e459df
JM
10807 rl_found=no
10808fi
10809
10810 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10811 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10812--enable-readline option (which is enabled by default). Either disable readline
10813support with --disable-readline or download and install readline from:
10814 ftp.gnu.org/gnu/readline
10815Note: if you are using precompiled packages you will also need the development
10816package as well (which may be called readline-devel or something similar).
10817" >&5
ec6a6fbe 10818$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10819--enable-readline option (which is enabled by default). Either disable readline
10820support with --disable-readline or download and install readline from:
10821 ftp.gnu.org/gnu/readline
10822Note: if you are using precompiled packages you will also need the development
10823package as well (which may be called readline-devel or something similar).
10824" >&2;}
10825 { (exit 1); exit 1; }; }
06e459df 10826 if test $rl_found = yes; then
bc1024f8
JM
10827
10828for ac_func in rl_completion_matches
10829do
ec6a6fbe
AK
10830as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10831{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10832$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10834 $as_echo_n "(cached) " >&6
ad6254c5
AK
10835else
10836 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h. */
bc1024f8 10842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10844#define $ac_func innocuous_$ac_func
8a2fc586 10845
ad6254c5 10846/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10847 which can conflict with char $ac_func (); below.
ad6254c5
AK
10848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10849 <limits.h> exists even on freestanding compilers. */
8a2fc586 10850
ad6254c5
AK
10851#ifdef __STDC__
10852# include <limits.h>
10853#else
10854# include <assert.h>
10855#endif
8a2fc586 10856
bc1024f8 10857#undef $ac_func
8a2fc586 10858
7a197a62
AK
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10862#ifdef __cplusplus
10863extern "C"
ad6254c5 10864#endif
bc1024f8 10865char $ac_func ();
ad6254c5
AK
10866/* The GNU C library defines this for functions which it implements
10867 to always fail with ENOSYS. Some functions are actually named
10868 something starting with __ and the normal name is an alias. */
bc1024f8 10869#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10870choke me
ad6254c5
AK
10871#endif
10872
10873int
10874main ()
10875{
bc1024f8 10876return $ac_func ();
ad6254c5
AK
10877 ;
10878 return 0;
10879}
10880_ACEOF
10881rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10882if { (ac_try="$ac_link"
10883case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
ec6a6fbe
AK
10887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888$as_echo "$ac_try_echo") >&5
7a197a62 10889 (eval "$ac_link") 2>conftest.er1
ad6254c5 10890 ac_status=$?
8a2fc586
AK
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
ec6a6fbe 10894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
ec6a6fbe
AK
10898 } && test -s conftest$ac_exeext && {
10899 test "$cross_compiling" = yes ||
10900 $as_test_x conftest$ac_exeext
10901 }; then
bc1024f8 10902 eval "$as_ac_var=yes"
ad6254c5 10903else
ec6a6fbe 10904 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
bc1024f8 10907 eval "$as_ac_var=no"
ad6254c5 10908fi
7a197a62 10909
ec6a6fbe 10910rm -rf conftest.dSYM
25fbec5b 10911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10912 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10913fi
ec6a6fbe
AK
10914ac_res=`eval 'as_val=${'$as_ac_var'}
10915 $as_echo "$as_val"'`
10916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917$as_echo "$ac_res" >&6; }
10918as_val=`eval 'as_val=${'$as_ac_var'}
10919 $as_echo "$as_val"'`
10920 if test "x$as_val" = x""yes; then
bc1024f8 10921 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10922#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10923_ACEOF
10924
10925fi
bc1024f8 10926done
ad6254c5 10927
d179cc7a
JM
10928
10929cat >>confdefs.h <<\_ACEOF
10930#define READLINE_SUPPORT 1
10931_ACEOF
10932
06e459df 10933 fi
ad6254c5
AK
10934fi
10935
10936################################################################################
ec6a6fbe
AK
10937{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10938$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10939# Check whether --enable-nls was given.
ad6254c5 10940if test "${enable_nls+set}" = set; then
7a197a62 10941 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10942else
10943 INTL=no
7a197a62
AK
10944fi
10945
ec6a6fbe
AK
10946{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10947$as_echo "$INTL" >&6; }
ad6254c5
AK
10948
10949if test x$INTL = xyes; then
93bd259b 10950# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10951 INTL_PACKAGE="lvm2"
10952 # Extract the first word of "msgfmt", so it can be a program name with args.
10953set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10954{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10955$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10956if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10957 $as_echo_n "(cached) " >&6
ad6254c5
AK
10958else
10959 case $MSGFMT in
10960 [\\/]* | ?:[\\/]*)
10961 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10962 ;;
10963 *)
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965for as_dir in $PATH
10966do
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10971 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10973 break 2
10974 fi
10975done
10976done
7a197a62 10977IFS=$as_save_IFS
ad6254c5
AK
10978
10979 ;;
10980esac
10981fi
10982MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10983if test -n "$MSGFMT"; then
ec6a6fbe
AK
10984 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10985$as_echo "$MSGFMT" >&6; }
ad6254c5 10986else
ec6a6fbe
AK
10987 { $as_echo "$as_me:$LINENO: result: no" >&5
10988$as_echo "no" >&6; }
ad6254c5
AK
10989fi
10990
7a197a62 10991
ad6254c5 10992 if [ "x$MSGFMT" == x ];
ec6a6fbe 10993 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10994 " >&5
ec6a6fbe 10995$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10996 " >&2;}
10997 { (exit 1); exit 1; }; }
10998 fi;
10999
11000
7a197a62 11001# Check whether --with-localedir was given.
ad6254c5 11002if test "${with_localedir+set}" = set; then
7a197a62 11003 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
11004else
11005 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
11006fi
11007
ad6254c5
AK
11008fi
11009
11010################################################################################
11011
7a197a62 11012# Check whether --with-confdir was given.
ad6254c5 11013if test "${with_confdir+set}" = set; then
7a197a62 11014 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
11015else
11016 CONFDIR='/etc'
7a197a62
AK
11017fi
11018
ad6254c5
AK
11019
11020
7a197a62 11021# Check whether --with-staticdir was given.
ad6254c5 11022if test "${with_staticdir+set}" = set; then
7a197a62 11023 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
11024else
11025 STATICDIR='${exec_prefix}/sbin'
7a197a62 11026fi
ad6254c5 11027
33f732c5 11028
7a197a62 11029
68f2de6d
AK
11030# Check whether --with-usrlibdir was given.
11031if test "${with_usrlibdir+set}" = set; then
11032 withval=$with_usrlibdir; usrlibdir="$withval"
11033else
11034 usrlibdir='${prefix}/lib'
11035fi
11036
11037
11038
11039# Check whether --with-usrsbindir was given.
11040if test "${with_usrsbindir+set}" = set; then
11041 withval=$with_usrsbindir; usrsbindir="$withval"
11042else
11043 usrsbindir='${prefix}/sbin'
11044fi
11045
11046
a5f46f6a
AK
11047################################################################################
11048
11049# Check whether --with-udev_prefix was given.
11050if test "${with_udev_prefix+set}" = set; then
11051 withval=$with_udev_prefix; udev_prefix="$withval"
11052else
11053 udev_prefix='${exec_prefix}'
11054fi
11055
11056
78ce7acc
AK
11057
11058# Check whether --with-udevdir was given.
11059if test "${with_udevdir+set}" = set; then
11060 withval=$with_udevdir; udevdir="$withval"
11061else
11062 udevdir='${udev_prefix}/lib/udev/rules.d'
11063fi
11064
a5f46f6a 11065
ad6254c5
AK
11066################################################################################
11067if test x$READLINE = xyes; then
11068
11069
11070for ac_header in readline/readline.h readline/history.h
11071do
ec6a6fbe 11072as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11075$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11077 $as_echo_n "(cached) " >&6
ad6254c5 11078fi
ec6a6fbe
AK
11079ac_res=`eval 'as_val=${'$as_ac_Header'}
11080 $as_echo "$as_val"'`
11081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11082$as_echo "$ac_res" >&6; }
ad6254c5
AK
11083else
11084 # Is the header compilable?
ec6a6fbe
AK
11085{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093$ac_includes_default
11094#include <$ac_header>
11095_ACEOF
11096rm -f conftest.$ac_objext
7a197a62
AK
11097if { (ac_try="$ac_compile"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
ec6a6fbe
AK
11102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11103$as_echo "$ac_try_echo") >&5
7a197a62 11104 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11105 ac_status=$?
8a2fc586
AK
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
ec6a6fbe 11109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11114 ac_header_compiler=yes
11115else
ec6a6fbe 11116 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
7a197a62 11119 ac_header_compiler=no
ad6254c5 11120fi
7a197a62
AK
11121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11123{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11125
11126# Is the header present?
ec6a6fbe
AK
11127{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11129cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */
11135#include <$ac_header>
11136_ACEOF
7a197a62
AK
11137if { (ac_try="$ac_cpp conftest.$ac_ext"
11138case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141esac
ec6a6fbe
AK
11142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11143$as_echo "$ac_try_echo") >&5
7a197a62 11144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
ec6a6fbe 11149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11150 (exit $ac_status); } >/dev/null && {
11151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11152 test ! -s conftest.err
11153 }; then
ad6254c5
AK
11154 ac_header_preproc=yes
11155else
ec6a6fbe 11156 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11157sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_header_preproc=no
11160fi
7a197a62 11161
ad6254c5 11162rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11163{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11164$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11165
11166# So? What about this header?
8a2fc586
AK
11167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11168 yes:no: )
ec6a6fbe
AK
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11170$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11172$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11173 ac_header_preproc=yes
ad6254c5 11174 ;;
8a2fc586 11175 no:yes:* )
ec6a6fbe
AK
11176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11177$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11179$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11181$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11183$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11185$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11187$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11188
ad6254c5
AK
11189 ;;
11190esac
ec6a6fbe
AK
11191{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11192$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11194 $as_echo_n "(cached) " >&6
ad6254c5 11195else
8a2fc586 11196 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11197fi
ec6a6fbe
AK
11198ac_res=`eval 'as_val=${'$as_ac_Header'}
11199 $as_echo "$as_val"'`
11200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11201$as_echo "$ac_res" >&6; }
ad6254c5
AK
11202
11203fi
ec6a6fbe
AK
11204as_val=`eval 'as_val=${'$as_ac_Header'}
11205 $as_echo "$as_val"'`
11206 if test "x$as_val" = x""yes; then
ad6254c5 11207 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11209_ACEOF
11210
11211else
ec6a6fbe
AK
11212 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11213$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11214 { (exit 1); exit 1; }; }
11215fi
11216
11217done
11218
11219fi
11220
5c7fc7c4 11221if test x$CLVMD != xnone; then
ad6254c5
AK
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232for 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
11233do
ec6a6fbe 11234as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11237$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11239 $as_echo_n "(cached) " >&6
ad6254c5 11240fi
ec6a6fbe
AK
11241ac_res=`eval 'as_val=${'$as_ac_Header'}
11242 $as_echo "$as_val"'`
11243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11244$as_echo "$ac_res" >&6; }
ad6254c5
AK
11245else
11246 # Is the header compilable?
ec6a6fbe
AK
11247{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11249cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255$ac_includes_default
11256#include <$ac_header>
11257_ACEOF
11258rm -f conftest.$ac_objext
7a197a62
AK
11259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
ec6a6fbe
AK
11264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265$as_echo "$ac_try_echo") >&5
7a197a62 11266 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11267 ac_status=$?
8a2fc586
AK
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
ec6a6fbe 11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11276 ac_header_compiler=yes
11277else
ec6a6fbe 11278 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
7a197a62 11281 ac_header_compiler=no
ad6254c5 11282fi
7a197a62
AK
11283
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11285{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11287
11288# Is the header present?
ec6a6fbe
AK
11289{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11291cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <$ac_header>
11298_ACEOF
7a197a62
AK
11299if { (ac_try="$ac_cpp conftest.$ac_ext"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
ec6a6fbe
AK
11304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305$as_echo "$ac_try_echo") >&5
7a197a62 11306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
ec6a6fbe 11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11312 (exit $ac_status); } >/dev/null && {
11313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 }; then
ad6254c5
AK
11316 ac_header_preproc=yes
11317else
ec6a6fbe 11318 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_header_preproc=no
11322fi
7a197a62 11323
ad6254c5 11324rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11325{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11326$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11327
11328# So? What about this header?
8a2fc586
AK
11329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11330 yes:no: )
ec6a6fbe
AK
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11332$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11334$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11335 ac_header_preproc=yes
ad6254c5 11336 ;;
8a2fc586 11337 no:yes:* )
ec6a6fbe
AK
11338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11339$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11341$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11343$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11345$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11347$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11349$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11350
ad6254c5
AK
11351 ;;
11352esac
ec6a6fbe
AK
11353{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11354$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11356 $as_echo_n "(cached) " >&6
ad6254c5 11357else
8a2fc586 11358 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11359fi
ec6a6fbe
AK
11360ac_res=`eval 'as_val=${'$as_ac_Header'}
11361 $as_echo "$as_val"'`
11362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11363$as_echo "$ac_res" >&6; }
ad6254c5
AK
11364
11365fi
ec6a6fbe
AK
11366as_val=`eval 'as_val=${'$as_ac_Header'}
11367 $as_echo "$as_val"'`
11368 if test "x$as_val" = x""yes; then
ad6254c5 11369 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11371_ACEOF
11372
11373else
ec6a6fbe
AK
11374 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11375$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11376 { (exit 1); exit 1; }; }
795ca3e5
AK
11377fi
11378
ad6254c5
AK
11379done
11380
11381
795ca3e5 11382
8106cdd5 11383
ad6254c5
AK
11384
11385
11386for ac_func in dup2 getmntent memmove select socket
11387do
ec6a6fbe
AK
11388as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11390$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11392 $as_echo_n "(cached) " >&6
795ca3e5 11393else
ad6254c5 11394 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
8a2fc586
AK
11400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402#define $ac_func innocuous_$ac_func
11403
795ca3e5 11404/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
8a2fc586 11408
ad6254c5
AK
11409#ifdef __STDC__
11410# include <limits.h>
11411#else
11412# include <assert.h>
11413#endif
8a2fc586
AK
11414
11415#undef $ac_func
11416
7a197a62
AK
11417/* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11420#ifdef __cplusplus
11421extern "C"
ad6254c5 11422#endif
ad6254c5 11423char $ac_func ();
795ca3e5
AK
11424/* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
7a197a62 11427#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11428choke me
795ca3e5
AK
11429#endif
11430
ad6254c5
AK
11431int
11432main ()
11433{
7a197a62 11434return $ac_func ();
ad6254c5
AK
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11440if { (ac_try="$ac_link"
11441case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444esac
ec6a6fbe
AK
11445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446$as_echo "$ac_try_echo") >&5
7a197a62 11447 (eval "$ac_link") 2>conftest.er1
ad6254c5 11448 ac_status=$?
8a2fc586
AK
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
ec6a6fbe 11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
ec6a6fbe
AK
11456 } && test -s conftest$ac_exeext && {
11457 test "$cross_compiling" = yes ||
11458 $as_test_x conftest$ac_exeext
11459 }; then
ad6254c5 11460 eval "$as_ac_var=yes"
795ca3e5 11461else
ec6a6fbe 11462 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
7a197a62 11465 eval "$as_ac_var=no"
80992638 11466fi
7a197a62 11467
ec6a6fbe 11468rm -rf conftest.dSYM
25fbec5b 11469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11470 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11471fi
ec6a6fbe
AK
11472ac_res=`eval 'as_val=${'$as_ac_var'}
11473 $as_echo "$as_val"'`
11474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11475$as_echo "$ac_res" >&6; }
11476as_val=`eval 'as_val=${'$as_ac_var'}
11477 $as_echo "$as_val"'`
11478 if test "x$as_val" = x""yes; then
ad6254c5 11479 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11481_ACEOF
80992638
AK
11482
11483else
ec6a6fbe
AK
11484 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11485$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11486 { (exit 1); exit 1; }; }
8106cdd5 11487fi
ad6254c5 11488done
795ca3e5 11489
25fbec5b
AK
11490 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11491# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11492{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11493$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11494if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11495 $as_echo_n "(cached) " >&6
25fbec5b
AK
11496else
11497 ac_func_search_save_LIBS=$LIBS
11498cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h. */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h. */
80992638 11504
7a197a62
AK
11505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
ad6254c5 11507 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11508#ifdef __cplusplus
11509extern "C"
11510#endif
25fbec5b 11511char getmntent ();
ad6254c5
AK
11512int
11513main ()
11514{
25fbec5b 11515return getmntent ();
ad6254c5
AK
11516 ;
11517 return 0;
11518}
11519_ACEOF
25fbec5b
AK
11520for ac_lib in '' sun seq gen; do
11521 if test -z "$ac_lib"; then
11522 ac_res="none required"
11523 else
11524 ac_res=-l$ac_lib
11525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11526 fi
11527 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11528if { (ac_try="$ac_link"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
ec6a6fbe
AK
11533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11534$as_echo "$ac_try_echo") >&5
7a197a62 11535 (eval "$ac_link") 2>conftest.er1
ad6254c5 11536 ac_status=$?
8a2fc586
AK
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
ec6a6fbe 11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
ec6a6fbe
AK
11544 } && test -s conftest$ac_exeext && {
11545 test "$cross_compiling" = yes ||
11546 $as_test_x conftest$ac_exeext
11547 }; then
25fbec5b 11548 ac_cv_search_getmntent=$ac_res
80992638 11549else
ec6a6fbe 11550 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
25fbec5b 11553
795ca3e5
AK
11554fi
11555
ec6a6fbe 11556rm -rf conftest.dSYM
25fbec5b
AK
11557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11558 conftest$ac_exeext
11559 if test "${ac_cv_search_getmntent+set}" = set; then
11560 break
795ca3e5 11561fi
25fbec5b
AK
11562done
11563if test "${ac_cv_search_getmntent+set}" = set; then
11564 :
11565else
11566 ac_cv_search_getmntent=no
11567fi
11568rm conftest.$ac_ext
11569LIBS=$ac_func_search_save_LIBS
11570fi
ec6a6fbe
AK
11571{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11572$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11573ac_res=$ac_cv_search_getmntent
11574if test "$ac_res" != no; then
11575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11576 ac_cv_func_getmntent=yes
11577
11578cat >>confdefs.h <<\_ACEOF
9c961554 11579#define HAVE_GETMNTENT 1
ad6254c5 11580_ACEOF
795ca3e5 11581
25fbec5b
AK
11582else
11583 ac_cv_func_getmntent=no
795ca3e5 11584fi
795ca3e5
AK
11585
11586
ad6254c5
AK
11587# AC_FUNC_REALLOC
11588
11589
11590for ac_header in sys/select.h sys/socket.h
11591do
ec6a6fbe 11592as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11595$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11597 $as_echo_n "(cached) " >&6
ad6254c5 11598fi
ec6a6fbe
AK
11599ac_res=`eval 'as_val=${'$as_ac_Header'}
11600 $as_echo "$as_val"'`
11601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11602$as_echo "$ac_res" >&6; }
795ca3e5 11603else
ad6254c5 11604 # Is the header compilable?
ec6a6fbe
AK
11605{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11606$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11607cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11608/* confdefs.h. */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */
11613$ac_includes_default
11614#include <$ac_header>
11615_ACEOF
11616rm -f conftest.$ac_objext
7a197a62
AK
11617if { (ac_try="$ac_compile"
11618case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621esac
ec6a6fbe
AK
11622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623$as_echo "$ac_try_echo") >&5
7a197a62 11624 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11625 ac_status=$?
8a2fc586
AK
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
ec6a6fbe 11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
ad6254c5 11634 ac_header_compiler=yes
80992638 11635else
ec6a6fbe 11636 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
7a197a62 11639 ac_header_compiler=no
ad6254c5 11640fi
7a197a62
AK
11641
11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11643{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11645
11646# Is the header present?
ec6a6fbe
AK
11647{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11649cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655#include <$ac_header>
11656_ACEOF
7a197a62
AK
11657if { (ac_try="$ac_cpp conftest.$ac_ext"
11658case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661esac
ec6a6fbe
AK
11662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663$as_echo "$ac_try_echo") >&5
7a197a62 11664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
ec6a6fbe 11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11670 (exit $ac_status); } >/dev/null && {
11671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 }; then
ad6254c5
AK
11674 ac_header_preproc=yes
11675else
ec6a6fbe 11676 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11677sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_header_preproc=no
11680fi
7a197a62 11681
ad6254c5 11682rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11683{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11685
11686# So? What about this header?
8a2fc586
AK
11687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 yes:no: )
ec6a6fbe
AK
11689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11693 ac_header_preproc=yes
ad6254c5 11694 ;;
8a2fc586 11695 no:yes:* )
ec6a6fbe
AK
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11708
ad6254c5
AK
11709 ;;
11710esac
ec6a6fbe
AK
11711{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11712$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11714 $as_echo_n "(cached) " >&6
ad6254c5 11715else
8a2fc586 11716 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11717fi
ec6a6fbe
AK
11718ac_res=`eval 'as_val=${'$as_ac_Header'}
11719 $as_echo "$as_val"'`
11720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11721$as_echo "$ac_res" >&6; }
8106cdd5 11722
795ca3e5 11723fi
ec6a6fbe
AK
11724as_val=`eval 'as_val=${'$as_ac_Header'}
11725 $as_echo "$as_val"'`
11726 if test "x$as_val" = x""yes; then
ad6254c5 11727 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11729_ACEOF
11730
795ca3e5
AK
11731fi
11732
ad6254c5
AK
11733done
11734
ec6a6fbe
AK
11735{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11736$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11737if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11738 $as_echo_n "(cached) " >&6
26e7f2e0 11739else
ad6254c5 11740 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11741 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11742 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11743 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749$ac_includes_default
25fbec5b 11750#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11751# include <sys/select.h>
11752#endif
25fbec5b 11753#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11754# include <sys/socket.h>
11755#endif
11756
11757int
11758main ()
11759{
11760extern int select ($ac_arg1,
8a2fc586
AK
11761 $ac_arg234, $ac_arg234, $ac_arg234,
11762 $ac_arg5);
ad6254c5
AK
11763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext
7a197a62
AK
11768if { (ac_try="$ac_compile"
11769case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
ec6a6fbe
AK
11773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774$as_echo "$ac_try_echo") >&5
7a197a62 11775 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11776 ac_status=$?
8a2fc586
AK
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
ec6a6fbe 11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11785 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11786else
ec6a6fbe 11787 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11788sed 's/^/| /' conftest.$ac_ext >&5
11789
7a197a62 11790
ad6254c5 11791fi
7a197a62
AK
11792
11793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11794 done
11795 done
11796done
11797# Provide a safe default value.
11798: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11799
26e7f2e0 11800fi
ec6a6fbe
AK
11801{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11802$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11803ac_save_IFS=$IFS; IFS=','
11804set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11805IFS=$ac_save_IFS
11806shift
11807
11808cat >>confdefs.h <<_ACEOF
11809#define SELECT_TYPE_ARG1 $1
11810_ACEOF
11811
11812
11813cat >>confdefs.h <<_ACEOF
11814#define SELECT_TYPE_ARG234 ($2)
11815_ACEOF
11816
11817
11818cat >>confdefs.h <<_ACEOF
11819#define SELECT_TYPE_ARG5 ($3)
11820_ACEOF
11821
80992638 11822rm -f conftest*
80992638 11823
8106cdd5 11824fi
ad6254c5 11825
ad6254c5
AK
11826if test x$CLUSTER != xnone; then
11827
11828
11829for ac_header in sys/socket.h sys/un.h
b896caa1 11830do
ec6a6fbe 11831as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11834$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11836 $as_echo_n "(cached) " >&6
ad6254c5 11837fi
ec6a6fbe
AK
11838ac_res=`eval 'as_val=${'$as_ac_Header'}
11839 $as_echo "$as_val"'`
11840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11841$as_echo "$ac_res" >&6; }
ad6254c5
AK
11842else
11843 # Is the header compilable?
ec6a6fbe
AK
11844{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11846cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852$ac_includes_default
11853#include <$ac_header>
11854_ACEOF
11855rm -f conftest.$ac_objext
7a197a62
AK
11856if { (ac_try="$ac_compile"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
ec6a6fbe
AK
11861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862$as_echo "$ac_try_echo") >&5
7a197a62 11863 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11864 ac_status=$?
8a2fc586
AK
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
ec6a6fbe 11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11873 ac_header_compiler=yes
11874else
ec6a6fbe 11875 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
7a197a62 11878 ac_header_compiler=no
ad6254c5 11879fi
7a197a62
AK
11880
11881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11882{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11884
11885# Is the header present?
ec6a6fbe
AK
11886{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11887$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11888cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894#include <$ac_header>
11895_ACEOF
7a197a62
AK
11896if { (ac_try="$ac_cpp conftest.$ac_ext"
11897case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
ec6a6fbe
AK
11901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902$as_echo "$ac_try_echo") >&5
7a197a62 11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
ec6a6fbe 11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 }; then
ad6254c5
AK
11913 ac_header_preproc=yes
11914else
ec6a6fbe 11915 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_header_preproc=no
11919fi
7a197a62 11920
ad6254c5 11921rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11922{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11924
11925# So? What about this header?
8a2fc586
AK
11926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
ec6a6fbe
AK
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11932 ac_header_preproc=yes
ad6254c5 11933 ;;
8a2fc586 11934 no:yes:* )
ec6a6fbe
AK
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11947
ad6254c5
AK
11948 ;;
11949esac
ec6a6fbe
AK
11950{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11951$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11953 $as_echo_n "(cached) " >&6
ad6254c5 11954else
8a2fc586 11955 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11956fi
ec6a6fbe
AK
11957ac_res=`eval 'as_val=${'$as_ac_Header'}
11958 $as_echo "$as_val"'`
11959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11960$as_echo "$ac_res" >&6; }
ad6254c5
AK
11961
11962fi
ec6a6fbe
AK
11963as_val=`eval 'as_val=${'$as_ac_Header'}
11964 $as_echo "$as_val"'`
11965 if test "x$as_val" = x""yes; then
ad6254c5 11966 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11968_ACEOF
11969
80992638 11970else
ec6a6fbe
AK
11971 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11972$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11973 { (exit 1); exit 1; }; }
b896caa1 11974fi
ad6254c5 11975
b896caa1
AK
11976done
11977
11978
ad6254c5
AK
11979for ac_func in socket
11980do
ec6a6fbe
AK
11981as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11983$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11985 $as_echo_n "(cached) " >&6
795ca3e5 11986else
ad6254c5 11987 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */
8a2fc586
AK
11993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11995#define $ac_func innocuous_$ac_func
11996
ad6254c5
AK
11997/* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
8a2fc586 12001
ad6254c5
AK
12002#ifdef __STDC__
12003# include <limits.h>
12004#else
12005# include <assert.h>
12006#endif
8a2fc586
AK
12007
12008#undef $ac_func
12009
7a197a62
AK
12010/* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12013#ifdef __cplusplus
12014extern "C"
ad6254c5 12015#endif
ad6254c5
AK
12016char $ac_func ();
12017/* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
7a197a62 12020#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 12021choke me
ad6254c5
AK
12022#endif
12023
12024int
12025main ()
12026{
7a197a62 12027return $ac_func ();
ad6254c5
AK
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12033if { (ac_try="$ac_link"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
ec6a6fbe
AK
12038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12039$as_echo "$ac_try_echo") >&5
7a197a62 12040 (eval "$ac_link") 2>conftest.er1
ad6254c5 12041 ac_status=$?
8a2fc586
AK
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
ec6a6fbe 12045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12046 (exit $ac_status); } && {
12047 test -z "$ac_c_werror_flag" ||
12048 test ! -s conftest.err
ec6a6fbe
AK
12049 } && test -s conftest$ac_exeext && {
12050 test "$cross_compiling" = yes ||
12051 $as_test_x conftest$ac_exeext
12052 }; then
ad6254c5
AK
12053 eval "$as_ac_var=yes"
12054else
ec6a6fbe 12055 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
7a197a62 12058 eval "$as_ac_var=no"
ad6254c5 12059fi
7a197a62 12060
ec6a6fbe 12061rm -rf conftest.dSYM
25fbec5b 12062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12063 conftest$ac_exeext conftest.$ac_ext
ad6254c5 12064fi
ec6a6fbe
AK
12065ac_res=`eval 'as_val=${'$as_ac_var'}
12066 $as_echo "$as_val"'`
12067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12068$as_echo "$ac_res" >&6; }
12069as_val=`eval 'as_val=${'$as_ac_var'}
12070 $as_echo "$as_val"'`
12071 if test "x$as_val" = x""yes; then
ad6254c5 12072 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
12074_ACEOF
12075
12076else
ec6a6fbe
AK
12077 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12078$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
12079 { (exit 1); exit 1; }; }
12080fi
12081done
12082
12083fi
12084
12085if test x$HAVE_LIBDL = xyes; then
12086
12087for ac_header in dlfcn.h
12088do
ec6a6fbe 12089as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12092$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12094 $as_echo_n "(cached) " >&6
ad6254c5 12095fi
ec6a6fbe
AK
12096ac_res=`eval 'as_val=${'$as_ac_Header'}
12097 $as_echo "$as_val"'`
12098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12099$as_echo "$ac_res" >&6; }
ad6254c5
AK
12100else
12101 # Is the header compilable?
ec6a6fbe
AK
12102{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12103$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12104cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12105/* confdefs.h. */
12106_ACEOF
12107cat confdefs.h >>conftest.$ac_ext
12108cat >>conftest.$ac_ext <<_ACEOF
12109/* end confdefs.h. */
12110$ac_includes_default
12111#include <$ac_header>
12112_ACEOF
12113rm -f conftest.$ac_objext
7a197a62
AK
12114if { (ac_try="$ac_compile"
12115case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
ec6a6fbe
AK
12119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120$as_echo "$ac_try_echo") >&5
7a197a62 12121 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12122 ac_status=$?
8a2fc586
AK
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
ec6a6fbe 12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12131 ac_header_compiler=yes
12132else
ec6a6fbe 12133 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
7a197a62 12136 ac_header_compiler=no
ad6254c5 12137fi
7a197a62
AK
12138
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12140{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12142
12143# Is the header present?
ec6a6fbe
AK
12144{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12146cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152#include <$ac_header>
12153_ACEOF
7a197a62
AK
12154if { (ac_try="$ac_cpp conftest.$ac_ext"
12155case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158esac
ec6a6fbe
AK
12159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12160$as_echo "$ac_try_echo") >&5
7a197a62 12161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
ec6a6fbe 12166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12167 (exit $ac_status); } >/dev/null && {
12168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 }; then
ad6254c5
AK
12171 ac_header_preproc=yes
12172else
ec6a6fbe 12173 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_header_preproc=no
12177fi
7a197a62 12178
ad6254c5 12179rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12180{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12182
12183# So? What about this header?
8a2fc586
AK
12184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12185 yes:no: )
ec6a6fbe
AK
12186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12190 ac_header_preproc=yes
ad6254c5 12191 ;;
8a2fc586 12192 no:yes:* )
ec6a6fbe
AK
12193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12196$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12200$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12205
ad6254c5
AK
12206 ;;
12207esac
ec6a6fbe
AK
12208{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12209$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12211 $as_echo_n "(cached) " >&6
ad6254c5 12212else
8a2fc586 12213 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12214fi
ec6a6fbe
AK
12215ac_res=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218$as_echo "$ac_res" >&6; }
80992638 12219
8106cdd5 12220fi
ec6a6fbe
AK
12221as_val=`eval 'as_val=${'$as_ac_Header'}
12222 $as_echo "$as_val"'`
12223 if test "x$as_val" = x""yes; then
ad6254c5 12224 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12226_ACEOF
795ca3e5
AK
12227
12228else
ec6a6fbe
AK
12229 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12230$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12231 { (exit 1); exit 1; }; }
795ca3e5
AK
12232fi
12233
ad6254c5 12234done
80992638 12235
ad6254c5 12236fi
80992638 12237
ad6254c5 12238if test x$INTL = xyes; then
83912faa 12239
ad6254c5
AK
12240for ac_header in libintl.h
12241do
ec6a6fbe 12242as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12245$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12247 $as_echo_n "(cached) " >&6
ad6254c5 12248fi
ec6a6fbe
AK
12249ac_res=`eval 'as_val=${'$as_ac_Header'}
12250 $as_echo "$as_val"'`
12251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12252$as_echo "$ac_res" >&6; }
83912faa 12253else
ad6254c5 12254 # Is the header compilable?
ec6a6fbe
AK
12255{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12256$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12257cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h. */
12263$ac_includes_default
12264#include <$ac_header>
12265_ACEOF
12266rm -f conftest.$ac_objext
7a197a62
AK
12267if { (ac_try="$ac_compile"
12268case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
ec6a6fbe
AK
12272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12273$as_echo "$ac_try_echo") >&5
7a197a62 12274 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12275 ac_status=$?
8a2fc586
AK
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
ec6a6fbe 12279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12284 ac_header_compiler=yes
12285else
ec6a6fbe 12286 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12287sed 's/^/| /' conftest.$ac_ext >&5
12288
7a197a62 12289 ac_header_compiler=no
ad6254c5 12290fi
7a197a62
AK
12291
12292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12293{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12294$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12295
12296# Is the header present?
ec6a6fbe
AK
12297{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12298$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12299cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
12305#include <$ac_header>
12306_ACEOF
7a197a62
AK
12307if { (ac_try="$ac_cpp conftest.$ac_ext"
12308case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
ec6a6fbe
AK
12312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12313$as_echo "$ac_try_echo") >&5
7a197a62 12314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
ec6a6fbe 12319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12320 (exit $ac_status); } >/dev/null && {
12321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12322 test ! -s conftest.err
12323 }; then
ad6254c5
AK
12324 ac_header_preproc=yes
12325else
ec6a6fbe 12326 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_header_preproc=no
12330fi
7a197a62 12331
ad6254c5 12332rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12333{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12334$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12335
12336# So? What about this header?
8a2fc586
AK
12337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12338 yes:no: )
ec6a6fbe
AK
12339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12340$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12342$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12343 ac_header_preproc=yes
ad6254c5 12344 ;;
8a2fc586 12345 no:yes:* )
ec6a6fbe
AK
12346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12347$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12349$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12351$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12353$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12355$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12357$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12358
ad6254c5
AK
12359 ;;
12360esac
ec6a6fbe
AK
12361{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12362$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12364 $as_echo_n "(cached) " >&6
80992638 12365else
8a2fc586 12366 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12367fi
ec6a6fbe
AK
12368ac_res=`eval 'as_val=${'$as_ac_Header'}
12369 $as_echo "$as_val"'`
12370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12371$as_echo "$ac_res" >&6; }
83912faa 12372
69792976 12373fi
ec6a6fbe
AK
12374as_val=`eval 'as_val=${'$as_ac_Header'}
12375 $as_echo "$as_val"'`
12376 if test "x$as_val" = x""yes; then
ad6254c5 12377 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12379_ACEOF
69792976 12380
69792976 12381else
ec6a6fbe
AK
12382 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12383$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12384 { (exit 1); exit 1; }; }
80992638
AK
12385fi
12386
ad6254c5 12387done
69792976 12388
ad6254c5
AK
12389fi
12390
ad6254c5
AK
12391if test x$HAVE_SELINUX = xyes; then
12392
12393for ac_header in selinux/selinux.h
12394do
ec6a6fbe 12395as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12398$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12400 $as_echo_n "(cached) " >&6
ad6254c5 12401fi
ec6a6fbe
AK
12402ac_res=`eval 'as_val=${'$as_ac_Header'}
12403 $as_echo "$as_val"'`
12404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12405$as_echo "$ac_res" >&6; }
4a7f3eb2 12406else
ad6254c5 12407 # Is the header compilable?
ec6a6fbe
AK
12408{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12409$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12410cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12411/* confdefs.h. */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h. */
12416$ac_includes_default
12417#include <$ac_header>
12418_ACEOF
12419rm -f conftest.$ac_objext
7a197a62
AK
12420if { (ac_try="$ac_compile"
12421case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424esac
ec6a6fbe
AK
12425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12426$as_echo "$ac_try_echo") >&5
7a197a62 12427 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12428 ac_status=$?
8a2fc586
AK
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
ec6a6fbe 12432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12437 ac_header_compiler=yes
12438else
ec6a6fbe 12439 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
7a197a62 12442 ac_header_compiler=no
ad6254c5 12443fi
7a197a62
AK
12444
12445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12446{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12448
12449# Is the header present?
ec6a6fbe
AK
12450{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12452cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458#include <$ac_header>
12459_ACEOF
7a197a62
AK
12460if { (ac_try="$ac_cpp conftest.$ac_ext"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
ec6a6fbe
AK
12465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466$as_echo "$ac_try_echo") >&5
7a197a62 12467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
ec6a6fbe 12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12473 (exit $ac_status); } >/dev/null && {
12474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 }; then
ad6254c5
AK
12477 ac_header_preproc=yes
12478else
ec6a6fbe 12479 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 ac_header_preproc=no
12483fi
7a197a62 12484
ad6254c5 12485rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12486{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12487$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12488
12489# So? What about this header?
8a2fc586
AK
12490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12491 yes:no: )
ec6a6fbe
AK
12492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12493$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12495$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12496 ac_header_preproc=yes
ad6254c5 12497 ;;
8a2fc586 12498 no:yes:* )
ec6a6fbe
AK
12499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12500$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12502$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12504$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12506$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12508$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12510$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12511
ad6254c5
AK
12512 ;;
12513esac
ec6a6fbe
AK
12514{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12515$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12517 $as_echo_n "(cached) " >&6
ad6254c5 12518else
8a2fc586 12519 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12520fi
ec6a6fbe
AK
12521ac_res=`eval 'as_val=${'$as_ac_Header'}
12522 $as_echo "$as_val"'`
12523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12524$as_echo "$ac_res" >&6; }
4a7f3eb2 12525
ad6254c5 12526fi
ec6a6fbe
AK
12527as_val=`eval 'as_val=${'$as_ac_Header'}
12528 $as_echo "$as_val"'`
12529 if test "x$as_val" = x""yes; then
ad6254c5 12530 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12532_ACEOF
0a62c911 12533
0a62c911 12534else
ec6a6fbe
AK
12535 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12536$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12537 { (exit 1); exit 1; }; }
80992638
AK
12538fi
12539
ad6254c5 12540done
0a62c911 12541
ad6254c5 12542fi
0a62c911 12543
a5f46f6a
AK
12544if test x$UDEV_SYNC = xyes; then
12545
12546
12547for ac_header in sys/ipc.h sys/sem.h
12548do
12549as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12551 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12552$as_echo_n "checking for $ac_header... " >&6; }
12553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12554 $as_echo_n "(cached) " >&6
12555fi
12556ac_res=`eval 'as_val=${'$as_ac_Header'}
12557 $as_echo "$as_val"'`
12558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12559$as_echo "$ac_res" >&6; }
12560else
12561 # Is the header compilable?
12562{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563$as_echo_n "checking $ac_header usability... " >&6; }
12564cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570$ac_includes_default
12571#include <$ac_header>
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12580$as_echo "$ac_try_echo") >&5
12581 (eval "$ac_compile") 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && {
12588 test -z "$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12590 } && test -s conftest.$ac_objext; then
12591 ac_header_compiler=yes
12592else
12593 $as_echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_header_compiler=no
12597fi
12598
12599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12601$as_echo "$ac_header_compiler" >&6; }
12602
12603# Is the header present?
12604{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12605$as_echo_n "checking $ac_header presence... " >&6; }
12606cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612#include <$ac_header>
12613_ACEOF
12614if { (ac_try="$ac_cpp conftest.$ac_ext"
12615case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618esac
12619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620$as_echo "$ac_try_echo") >&5
12621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } >/dev/null && {
12628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 }; then
12631 ac_header_preproc=yes
12632else
12633 $as_echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_header_preproc=no
12637fi
12638
12639rm -f conftest.err conftest.$ac_ext
12640{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12641$as_echo "$ac_header_preproc" >&6; }
12642
12643# So? What about this header?
12644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12645 yes:no: )
12646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12647$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12649$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12650 ac_header_preproc=yes
12651 ;;
12652 no:yes:* )
12653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12654$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12656$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12658$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12660$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12662$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12664$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12665
12666 ;;
12667esac
12668{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12669$as_echo_n "checking for $ac_header... " >&6; }
12670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12671 $as_echo_n "(cached) " >&6
12672else
12673 eval "$as_ac_Header=\$ac_header_preproc"
12674fi
12675ac_res=`eval 'as_val=${'$as_ac_Header'}
12676 $as_echo "$as_val"'`
12677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12678$as_echo "$ac_res" >&6; }
12679
12680fi
12681as_val=`eval 'as_val=${'$as_ac_Header'}
12682 $as_echo "$as_val"'`
12683 if test "x$as_val" = x""yes; then
12684 cat >>confdefs.h <<_ACEOF
12685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12686_ACEOF
12687
12688else
12689 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12690$as_echo "$as_me: error: bailing out" >&2;}
12691 { (exit 1); exit 1; }; }
12692fi
12693
12694done
12695
12696fi
12697
a653923f
AK
12698################################################################################
12699# Extract the first word of "modprobe", so it can be a program name with args.
12700set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12702$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12703if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12704 $as_echo_n "(cached) " >&6
72b2cb61
AK
12705else
12706 case $MODPROBE_CMD in
12707 [\\/]* | ?:[\\/]*)
12708 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12709 ;;
12710 *)
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712for as_dir in $PATH
12713do
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
12716 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12718 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12720 break 2
12721 fi
12722done
12723done
7a197a62 12724IFS=$as_save_IFS
72b2cb61
AK
12725
12726 ;;
12727esac
12728fi
12729MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12730if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12731 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12732$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12733else
ec6a6fbe
AK
12734 { $as_echo "$as_me:$LINENO: result: no" >&5
12735$as_echo "no" >&6; }
72b2cb61
AK
12736fi
12737
a653923f 12738
7a197a62 12739
a653923f 12740if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12741
12742cat >>confdefs.h <<_ACEOF
12743#define MODPROBE_CMD "$MODPROBE_CMD"
12744_ACEOF
12745
a653923f
AK
12746fi
12747
80992638 12748################################################################################
93bd259b
AK
12749
12750
12751if test "$BUILD_DMEVENTD" = yes; then
12752
12753# Check whether --with-dmeventd-pidfile was given.
12754if test "${with_dmeventd_pidfile+set}" = set; then
12755 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12756#define DMEVENTD_PIDFILE "$withval"
12757_ACEOF
12758
12759else
12760 cat >>confdefs.h <<_ACEOF
12761#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12762_ACEOF
12763
12764fi
12765
12766fi
12767
12768
12769
12770if test "$BUILD_DMEVENTD" = yes; then
12771 dmeventd_prefix="$exec_prefix"
12772 if test "x$dmeventd_prefix" = "xNONE"; then
12773 dmeventd_prefix="$prefix"
12774 fi
12775 if test "x$dmeventd_prefix" = "xNONE"; then
12776 dmeventd_prefix=""
12777 fi
12778
12779# Check whether --with-dmeventd-path was given.
12780if test "${with_dmeventd_path+set}" = set; then
12781 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12782#define DMEVENTD_PATH "$withval"
12783_ACEOF
12784
12785else
12786 cat >>confdefs.h <<_ACEOF
12787#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12788_ACEOF
12789
12790fi
12791
12792fi
12793
12794################################################################################
ec6a6fbe
AK
12795{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12796$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12797
12798# Check whether --with-interface was given.
12799if test "${with_interface+set}" = set; then
12800 withval=$with_interface; interface="$withval"
12801else
12802 interface=ioctl
12803fi
12804
12805if [ "x$interface" != xioctl ];
12806then
ec6a6fbe
AK
12807 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12808$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12809 { (exit 1); exit 1; }; }
12810fi
ec6a6fbe
AK
12811{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12812$as_echo "$interface" >&6; }
93bd259b
AK
12813
12814################################################################################
2c44337b 12815DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12816
12817cat >>confdefs.h <<_ACEOF
12818#define DM_LIB_VERSION $DM_LIB_VERSION
12819_ACEOF
12820
12821
ec6a6fbe 12822DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12823
d0191583 12824LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12825
ec6a6fbe 12826VER=`cat VERSION`
bf456146 12827LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
12828VER=`echo "$VER" | $AWK '{print $1}'`
12829LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12830VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12831LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12832LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
12833LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
12834LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 12835
80992638 12836################################################################################
fae0c576 12837
83912faa 12838
795ca3e5
AK
12839
12840
12841
12842
12843
12844
5a52dca9 12845
8ef2b021 12846
199e490e 12847
69792976
AK
12848
12849
12850
d0191583 12851
69792976 12852
8106cdd5
AK
12853
12854
12855
12856
12857
d68a82ec 12858
036f273a 12859
7d1552c9 12860
8106cdd5 12861
0a62c911 12862
8106cdd5 12863
4a7f3eb2 12864
4922197a
AK
12865
12866
d8ac0fbc 12867
1a9ea74d 12868
8a2fc586
AK
12869
12870
d0191583 12871
93bd259b
AK
12872
12873
12874
12875
12876
d0191583
JM
12877
12878
12879
12880
12881
8a2fc586 12882
8ce0cbda 12883
8b1a3214 12884
ec6a6fbe
AK
12885
12886
12887
12888
e2997b73
AK
12889
12890
12891
12892
12893
12894
ec6a6fbe 12895
33f732c5 12896
66e941e8 12897
d3c8211f 12898
7e3fe830 12899
a5f46f6a
AK
12900
12901
12902
572fefeb 12903
bf456146 12904
68f2de6d
AK
12905
12906
80992638 12907################################################################################
a5f46f6a 12908ac_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 12909
ad6254c5 12910cat >confcache <<\_ACEOF
795ca3e5
AK
12911# This file is a shell script that caches the results of configure
12912# tests run on this system so they can be shared between configure
ad6254c5
AK
12913# scripts and configure runs, see configure's option --config-cache.
12914# It is not useful on other systems. If it contains results you don't
12915# want to keep, you may remove or edit it.
795ca3e5 12916#
ad6254c5
AK
12917# config.status only pays attention to the cache file if you give it
12918# the --recheck option to rerun configure.
795ca3e5 12919#
ad6254c5
AK
12920# `ac_cv_env_foo' variables (set or unset) will be overridden when
12921# loading this file, other *unset* `ac_cv_foo' will be assigned the
12922# following values.
12923
12924_ACEOF
12925
795ca3e5
AK
12926# The following way of writing the cache mishandles newlines in values,
12927# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12928# So, we kill variables containing newlines.
795ca3e5
AK
12929# Ultrix sh set writes to stderr and can't be redirected directly,
12930# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12931(
12932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12933 eval ac_val=\$$ac_var
12934 case $ac_val in #(
12935 *${as_nl}*)
12936 case $ac_var in #(
ec6a6fbe
AK
12937 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12939 esac
12940 case $ac_var in #(
12941 _ | IFS | as_nl) ;; #(
ec6a6fbe 12942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12943 *) $as_unset $ac_var ;;
12944 esac ;;
12945 esac
12946 done
12947
ad6254c5 12948 (set) 2>&1 |
7a197a62
AK
12949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12950 *${as_nl}ac_space=\ *)
ad6254c5
AK
12951 # `set' does not quote correctly, so add quotes (double-quote
12952 # substitution turns \\\\ into \\, and sed turns \\ into \).
12953 sed -n \
8a2fc586
AK
12954 "s/'/'\\\\''/g;
12955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12956 ;; #(
ad6254c5
AK
12957 *)
12958 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12960 ;;
7a197a62
AK
12961 esac |
12962 sort
12963) |
ad6254c5 12964 sed '
7a197a62 12965 /^ac_cv_env_/b end
ad6254c5 12966 t clear
7a197a62 12967 :clear
ad6254c5
AK
12968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12969 t end
7a197a62
AK
12970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12971 :end' >>confcache
12972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12973 if test -w "$cache_file"; then
12974 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12975 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12976$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12977 cat confcache >$cache_file
795ca3e5 12978 else
ec6a6fbe
AK
12979 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12980$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12981 fi
12982fi
12983rm -f confcache
12984
795ca3e5
AK
12985test "x$prefix" = xNONE && prefix=$ac_default_prefix
12986# Let make expand exec_prefix.
12987test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12988
72b2cb61 12989DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12990
12991ac_libobjs=
12992ac_ltlibobjs=
12993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12994 # 1. Remove the extension, and $U if already installed.
7a197a62 12995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12998 # will be set to the directory where LIBOBJS objects are built.
12999 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13000 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
13001done
13002LIBOBJS=$ac_libobjs
80992638 13003
ad6254c5
AK
13004LTLIBOBJS=$ac_ltlibobjs
13005
13006
13007
13008: ${CONFIG_STATUS=./config.status}
ec6a6fbe 13009ac_write_fail=0
ad6254c5
AK
13010ac_clean_files_save=$ac_clean_files
13011ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
13012{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13013$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13014cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13015#! $SHELL
13016# Generated by $as_me.
795ca3e5 13017# Run this file to recreate the current configuration.
795ca3e5 13018# Compiler output produced by configure, useful for debugging
ad6254c5
AK
13019# configure, is in config.log if it exists.
13020
13021debug=false
13022ac_cs_recheck=false
13023ac_cs_silent=false
13024SHELL=\${CONFIG_SHELL-$SHELL}
13025_ACEOF
13026
ec6a6fbe 13027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13028## --------------------- ##
13029## M4sh Initialization. ##
13030## --------------------- ##
13031
25fbec5b
AK
13032# Be more Bourne compatible
13033DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
13034if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13035 emulate sh
13036 NULLCMD=:
ec6a6fbe 13037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
13038 # is contrary to our usage. Disable this feature.
13039 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
13040 setopt NO_GLOB_SUBST
13041else
25fbec5b
AK
13042 case `(set -o) 2>/dev/null` in
13043 *posix*) set -o posix ;;
13044esac
13045
7a197a62 13046fi
25fbec5b
AK
13047
13048
7a197a62
AK
13049
13050
13051# PATH needs CR
13052# Avoid depending upon Character Ranges.
13053as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13054as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13055as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13056as_cr_digits='0123456789'
13057as_cr_alnum=$as_cr_Letters$as_cr_digits
13058
ec6a6fbe
AK
13059as_nl='
13060'
13061export as_nl
13062# Printing a long string crashes Solaris 7 /usr/bin/printf.
13063as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13064as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13066if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13067 as_echo='printf %s\n'
13068 as_echo_n='printf %s'
13069else
13070 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13071 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13072 as_echo_n='/usr/ucb/echo -n'
68f2de6d 13073 else
ec6a6fbe
AK
13074 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13075 as_echo_n_body='eval
13076 arg=$1;
13077 case $arg in
13078 *"$as_nl"*)
13079 expr "X$arg" : "X\\(.*\\)$as_nl";
13080 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13081 esac;
13082 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13083 '
13084 export as_echo_n_body
13085 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 13086 fi
ec6a6fbe
AK
13087 export as_echo_body
13088 as_echo='sh -c $as_echo_body as_echo'
13089fi
13090
13091# The user is always right.
13092if test "${PATH_SEPARATOR+set}" != set; then
13093 PATH_SEPARATOR=:
13094 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13095 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13096 PATH_SEPARATOR=';'
13097 }
ad6254c5
AK
13098fi
13099
13100# Support unset when possible.
8a2fc586 13101if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
13102 as_unset=unset
13103else
13104 as_unset=false
13105fi
8106cdd5 13106
ad6254c5 13107
7a197a62
AK
13108# IFS
13109# We need space, tab and new line, in precisely that order. Quoting is
13110# there to prevent editors from complaining about space-tab.
13111# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13112# splitting by setting IFS to empty value.)
7a197a62
AK
13113IFS=" "" $as_nl"
13114
13115# Find who we are. Look in the path if we contain no directory separator.
13116case $0 in
13117 *[\\/]* ) as_myself=$0 ;;
13118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13124done
13125IFS=$as_save_IFS
13126
13127 ;;
13128esac
13129# We did not find ourselves, most probably we were run as `sh COMMAND'
13130# in which case we are not to be found in the path.
13131if test "x$as_myself" = x; then
13132 as_myself=$0
13133fi
13134if test ! -f "$as_myself"; then
ec6a6fbe 13135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
13136 { (exit 1); exit 1; }
13137fi
13138
ad6254c5 13139# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
13140for as_var in ENV MAIL MAILPATH
13141do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13142done
ad6254c5
AK
13143PS1='$ '
13144PS2='> '
13145PS4='+ '
13146
13147# NLS nuisances.
ec6a6fbe
AK
13148LC_ALL=C
13149export LC_ALL
13150LANGUAGE=C
13151export LANGUAGE
8106cdd5 13152
ad6254c5 13153# Required to use basename.
7a197a62
AK
13154if expr a : '\(a\)' >/dev/null 2>&1 &&
13155 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13156 as_expr=expr
13157else
13158 as_expr=false
13159fi
8106cdd5 13160
7a197a62 13161if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
13162 as_basename=basename
13163else
13164 as_basename=false
13165fi
13166
13167
13168# Name of the executable.
7a197a62 13169as_me=`$as_basename -- "$0" ||
ad6254c5
AK
13170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13171 X"$0" : 'X\(//\)$' \| \
7a197a62 13172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13173$as_echo X/"$0" |
7a197a62
AK
13174 sed '/^.*\/\([^/][^/]*\)\/*$/{
13175 s//\1/
13176 q
13177 }
13178 /^X\/\(\/\/\)$/{
13179 s//\1/
13180 q
13181 }
13182 /^X\/\(\/\).*/{
13183 s//\1/
13184 q
13185 }
13186 s/.*/./; q'`
ad6254c5 13187
7a197a62
AK
13188# CDPATH.
13189$as_unset CDPATH
ad6254c5
AK
13190
13191
ad6254c5 13192
ad6254c5
AK
13193 as_lineno_1=$LINENO
13194 as_lineno_2=$LINENO
ad6254c5 13195 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 13196 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 13197
ad6254c5
AK
13198 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13199 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
13200 # line-number line after each line using $LINENO; the second 'sed'
13201 # does the real work. The second script uses 'N' to pair each
13202 # line-number line with the line containing $LINENO, and appends
13203 # trailing '-' during substitution so that $LINENO is not a special
13204 # case at line end.
ad6254c5 13205 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
13206 # scripts with optimization help from Paolo Bonzini. Blame Lee
13207 # E. McMahon (1931-1989) for sed's syntax. :-)
13208 sed -n '
13209 p
13210 /[$]LINENO/=
13211 ' <$as_myself |
ad6254c5 13212 sed '
7a197a62
AK
13213 s/[$]LINENO.*/&-/
13214 t lineno
13215 b
13216 :lineno
ad6254c5 13217 N
7a197a62
AK
13218 :loop
13219 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 13220 t loop
7a197a62 13221 s/-\n.*//
ad6254c5 13222 ' >$as_me.lineno &&
7a197a62 13223 chmod +x "$as_me.lineno" ||
ec6a6fbe 13224 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
13225 { (exit 1); exit 1; }; }
13226
13227 # Don't try to exec as it changes $[0], causing all sort of problems
13228 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
13229 # original and so on. Autoconf is especially sensitive to this).
13230 . "./$as_me.lineno"
ad6254c5
AK
13231 # Exit status is that of the last command.
13232 exit
13233}
13234
13235
7a197a62
AK
13236if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13237 as_dirname=dirname
13238else
13239 as_dirname=false
13240fi
13241
13242ECHO_C= ECHO_N= ECHO_T=
13243case `echo -n x` in
13244-n*)
13245 case `echo 'x\c'` in
13246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13247 *) ECHO_C='\c';;
13248 esac;;
13249*)
13250 ECHO_N='-n';;
ad6254c5 13251esac
7a197a62
AK
13252if expr a : '\(a\)' >/dev/null 2>&1 &&
13253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13254 as_expr=expr
13255else
13256 as_expr=false
13257fi
80992638 13258
ad6254c5 13259rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13260if test -d conf$$.dir; then
13261 rm -f conf$$.dir/conf$$.file
13262else
13263 rm -f conf$$.dir
ec6a6fbe
AK
13264 mkdir conf$$.dir 2>/dev/null
13265fi
13266if (echo >conf$$.file) 2>/dev/null; then
13267 if ln -s conf$$.file conf$$ 2>/dev/null; then
13268 as_ln_s='ln -s'
13269 # ... but there are two gotchas:
13270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13272 # In both cases, we have to default to `cp -p'.
13273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13274 as_ln_s='cp -p'
13275 elif ln conf$$.file conf$$ 2>/dev/null; then
13276 as_ln_s=ln
13277 else
ad6254c5 13278 as_ln_s='cp -p'
ec6a6fbe 13279 fi
ad6254c5
AK
13280else
13281 as_ln_s='cp -p'
13282fi
7a197a62
AK
13283rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13284rmdir conf$$.dir 2>/dev/null
8106cdd5 13285
ad6254c5
AK
13286if mkdir -p . 2>/dev/null; then
13287 as_mkdir_p=:
13288else
8a2fc586 13289 test -d ./-p && rmdir ./-p
ad6254c5
AK
13290 as_mkdir_p=false
13291fi
13292
25fbec5b
AK
13293if test -x / >/dev/null 2>&1; then
13294 as_test_x='test -x'
7a197a62 13295else
25fbec5b
AK
13296 if ls -dL / >/dev/null 2>&1; then
13297 as_ls_L_option=L
13298 else
13299 as_ls_L_option=
13300 fi
13301 as_test_x='
13302 eval sh -c '\''
13303 if test -d "$1"; then
ec6a6fbe 13304 test -d "$1/.";
25fbec5b
AK
13305 else
13306 case $1 in
ec6a6fbe 13307 -*)set "./$1";;
25fbec5b
AK
13308 esac;
13309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13310 ???[sx]*):;;*)false;;esac;fi
13311 '\'' sh
13312 '
7a197a62 13313fi
25fbec5b 13314as_executable_p=$as_test_x
ad6254c5
AK
13315
13316# Sed expression to map a string onto a valid CPP name.
8a2fc586 13317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13318
13319# Sed expression to map a string onto a valid variable name.
8a2fc586 13320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13321
13322
ad6254c5
AK
13323exec 6>&1
13324
7a197a62 13325# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13326# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13327# values after options handling.
13328ac_log="
ad6254c5 13329This file was extended by $as_me, which was
ec6a6fbe 13330generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13331
13332 CONFIG_FILES = $CONFIG_FILES
13333 CONFIG_HEADERS = $CONFIG_HEADERS
13334 CONFIG_LINKS = $CONFIG_LINKS
13335 CONFIG_COMMANDS = $CONFIG_COMMANDS
13336 $ $0 $@
13337
7a197a62
AK
13338on `(hostname || uname -n) 2>/dev/null | sed 1q`
13339"
13340
ad6254c5
AK
13341_ACEOF
13342
ec6a6fbe
AK
13343case $ac_config_files in *"
13344"*) set x $ac_config_files; shift; ac_config_files=$*;;
13345esac
13346
13347case $ac_config_headers in *"
13348"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13349esac
13350
13351
13352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13353# Files that config.status was made for.
68f2de6d
AK
13354config_files="$ac_config_files"
13355config_headers="$ac_config_headers"
ad6254c5 13356
7a197a62 13357_ACEOF
ad6254c5 13358
ec6a6fbe 13359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13360ac_cs_usage="\
13361\`$as_me' instantiates files from templates according to the
13362current configuration.
13363
ec6a6fbe 13364Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13365
13366 -h, --help print this help, then exit
25fbec5b 13367 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13368 -q, --quiet, --silent
13369 do not print progress messages
ad6254c5
AK
13370 -d, --debug don't remove temporary files
13371 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13372 --file=FILE[:TEMPLATE]
13373 instantiate the configuration file FILE
13374 --header=FILE[:TEMPLATE]
13375 instantiate the configuration header FILE
ad6254c5
AK
13376
13377Configuration files:
13378$config_files
13379
72b2cb61
AK
13380Configuration headers:
13381$config_headers
13382
ad6254c5 13383Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13384
7a197a62 13385_ACEOF
ec6a6fbe 13386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13387ac_cs_version="\\
13388config.status
ec6a6fbe
AK
13389configured by $0, generated by GNU Autoconf 2.63,
13390 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13391
ec6a6fbe 13392Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13393This config.status script is free software; the Free Software Foundation
13394gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13395
13396ac_pwd='$ac_pwd'
13397srcdir='$srcdir'
13398INSTALL='$INSTALL'
fddafd51 13399MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13400AWK='$AWK'
13401test -n "\$AWK" || AWK=awk
ad6254c5
AK
13402_ACEOF
13403
ec6a6fbe
AK
13404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13405# The default lists apply if the user does not specify any file.
ad6254c5
AK
13406ac_need_defaults=:
13407while test $# != 0
13408do
13409 case $1 in
13410 --*=*)
7a197a62
AK
13411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13413 ac_shift=:
13414 ;;
7a197a62 13415 *)
ad6254c5
AK
13416 ac_option=$1
13417 ac_optarg=$2
13418 ac_shift=shift
13419 ;;
ad6254c5
AK
13420 esac
13421
13422 case $ac_option in
13423 # Handling of the options.
ad6254c5
AK
13424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13425 ac_cs_recheck=: ;;
7a197a62 13426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13427 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13428 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13429 debug=: ;;
13430 --file | --fil | --fi | --f )
13431 $ac_shift
ec6a6fbe
AK
13432 case $ac_optarg in
13433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13434 esac
13435 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13436 ac_need_defaults=false;;
13437 --header | --heade | --head | --hea )
13438 $ac_shift
ec6a6fbe
AK
13439 case $ac_optarg in
13440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13441 esac
13442 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13443 ac_need_defaults=false;;
7a197a62
AK
13444 --he | --h)
13445 # Conflict between --help and --header
ec6a6fbe 13446 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13447Try \`$0 --help' for more information." >&2
13448 { (exit 1); exit 1; }; };;
13449 --help | --hel | -h )
ec6a6fbe 13450 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13453 ac_cs_silent=: ;;
13454
13455 # This is an error.
ec6a6fbe 13456 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13457Try \`$0 --help' for more information." >&2
ad6254c5
AK
13458 { (exit 1); exit 1; }; } ;;
13459
7a197a62
AK
13460 *) ac_config_targets="$ac_config_targets $1"
13461 ac_need_defaults=false ;;
ad6254c5
AK
13462
13463 esac
13464 shift
13465done
13466
13467ac_configure_extra_args=
13468
13469if $ac_cs_silent; then
13470 exec 6>/dev/null
13471 ac_configure_extra_args="$ac_configure_extra_args --silent"
13472fi
13473
13474_ACEOF
ec6a6fbe 13475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13476if \$ac_cs_recheck; then
ec6a6fbe
AK
13477 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13478 shift
13479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13480 CONFIG_SHELL='$SHELL'
7a197a62 13481 export CONFIG_SHELL
ec6a6fbe 13482 exec "\$@"
ad6254c5
AK
13483fi
13484
13485_ACEOF
ec6a6fbe 13486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13487exec 5>>config.log
13488{
13489 echo
13490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13491## Running $as_me. ##
13492_ASBOX
ec6a6fbe 13493 $as_echo "$ac_log"
7a197a62 13494} >&5
ad6254c5 13495
7a197a62 13496_ACEOF
ec6a6fbe 13497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13498_ACEOF
ad6254c5 13499
ec6a6fbe 13500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13501
13502# Handling of arguments.
ad6254c5
AK
13503for ac_config_target in $ac_config_targets
13504do
7a197a62
AK
13505 case $ac_config_target in
13506 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13508 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13509 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13510 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13511 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13512 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13513 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13514 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13515 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13516 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13517 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13518 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13519 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13520 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13521 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13522 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13523 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13524 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13525 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13526 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 13527 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 13528 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
13529 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13530 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13531 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13532 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13533 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13534 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13535 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 13536 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 13537
ec6a6fbe
AK
13538 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13539$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13540 { (exit 1); exit 1; }; };;
80992638 13541 esac
ad6254c5
AK
13542done
13543
7a197a62 13544
ad6254c5
AK
13545# If the user did not use the arguments to specify the items to instantiate,
13546# then the envvar interface is used. Set only those that are not.
13547# We use the long form for the default assignment because of an extremely
13548# bizarre bug on SunOS 4.1.3.
13549if $ac_need_defaults; then
13550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13552fi
13553
13554# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13555# simply because there is no reason against having it here, and in addition,
ad6254c5 13556# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13557# Hook for its removal unless debugging.
13558# Note that there is a small window in which the directory will not be cleaned:
13559# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13560$debug ||
13561{
7a197a62
AK
13562 tmp=
13563 trap 'exit_status=$?
13564 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13565' 0
ad6254c5
AK
13566 trap '{ (exit 1); exit 1; }' 1 2 13 15
13567}
ad6254c5
AK
13568# Create a (secure) tmp directory for tmp files.
13569
13570{
7a197a62 13571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13572 test -n "$tmp" && test -d "$tmp"
13573} ||
13574{
7a197a62
AK
13575 tmp=./conf$$-$RANDOM
13576 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13577} ||
13578{
ec6a6fbe 13579 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13580 { (exit 1); exit 1; }
13581}
13582
ec6a6fbe
AK
13583# Set up the scripts for CONFIG_FILES section.
13584# No need to generate them if there are no CONFIG_FILES.
13585# This happens for instance with `./config.status config.h'.
1995c9ff 13586if test -n "$CONFIG_FILES"; then
7a197a62 13587
68f2de6d 13588
ec6a6fbe
AK
13589ac_cr='\r'
13590ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13591if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13592 ac_cs_awk_cr='\\r'
13593else
13594 ac_cs_awk_cr=$ac_cr
1995c9ff 13595fi
7a197a62 13596
ec6a6fbe 13597echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13598_ACEOF
7a197a62 13599
8106cdd5 13600
ec6a6fbe
AK
13601{
13602 echo "cat >conf$$subs.awk <<_ACEOF" &&
13603 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13604 echo "_ACEOF"
13605} >conf$$subs.sh ||
13606 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13607$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13608 { (exit 1); exit 1; }; }
13609ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13610ac_delim='%!_!# '
13611for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13612 . ./conf$$subs.sh ||
13613 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13614$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13615 { (exit 1); exit 1; }; }
13616
13617 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13618 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13619 break
13620 elif $ac_last_try; then
ec6a6fbe
AK
13621 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13622$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13623 { (exit 1); exit 1; }; }
13624 else
13625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13626 fi
13627done
ec6a6fbe
AK
13628rm -f conf$$subs.sh
13629
13630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13632_ACEOF
13633sed -n '
13634h
13635s/^/S["/; s/!.*/"]=/
13636p
13637g
13638s/^[^!]*!//
13639:repl
13640t repl
13641s/'"$ac_delim"'$//
13642t delim
13643:nl
13644h
13645s/\(.\{148\}\).*/\1/
13646t more1
13647s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13648p
13649n
13650b repl
13651:more1
13652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13653p
13654g
13655s/.\{148\}//
13656t nl
13657:delim
13658h
13659s/\(.\{148\}\).*/\1/
13660t more2
13661s/["\\]/\\&/g; s/^/"/; s/$/"/
13662p
13663b
13664:more2
13665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13666p
13667g
13668s/.\{148\}//
13669t delim
13670' <conf$$subs.awk | sed '
13671/^[^""]/{
13672 N
13673 s/\n//
13674}
13675' >>$CONFIG_STATUS || ac_write_fail=1
13676rm -f conf$$subs.awk
13677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678_ACAWK
13679cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13680 for (key in S) S_is_set[key] = 1
13681 FS = "\a"
7a197a62 13682
ec6a6fbe
AK
13683}
13684{
13685 line = $ 0
13686 nfields = split(line, field, "@")
13687 substed = 0
13688 len = length(field[1])
13689 for (i = 2; i < nfields; i++) {
13690 key = field[i]
13691 keylen = length(key)
13692 if (S_is_set[key]) {
13693 value = S[key]
13694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13695 len += length(value) + length(field[++i])
13696 substed = 1
13697 } else
13698 len += 1 + keylen
13699 }
13700
13701 print line
13702}
fddafd51 13703
ec6a6fbe 13704_ACAWK
1995c9ff 13705_ACEOF
ec6a6fbe
AK
13706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13709else
13710 cat
13711fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13712 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13713$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13714 { (exit 1); exit 1; }; }
7a197a62
AK
13715_ACEOF
13716
7a197a62
AK
13717# VPATH may cause trouble with some makes, so we remove $(srcdir),
13718# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13719# trailing colons and then remove the whole line if VPATH becomes empty
13720# (actually we leave an empty line to preserve line numbers).
13721if test "x$srcdir" = x.; then
13722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13723s/:*\$(srcdir):*/:/
13724s/:*\${srcdir}:*/:/
13725s/:*@srcdir@:*/:/
13726s/^\([^=]*=[ ]*\):*/\1/
13727s/:*$//
13728s/^[^=]*=[ ]*$//
13729}'
13730fi
13731
ec6a6fbe 13732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13733fi # test -n "$CONFIG_FILES"
13734
ec6a6fbe
AK
13735# Set up the scripts for CONFIG_HEADERS section.
13736# No need to generate them if there are no CONFIG_HEADERS.
13737# This happens for instance with `./config.status Makefile'.
13738if test -n "$CONFIG_HEADERS"; then
13739cat >"$tmp/defines.awk" <<\_ACAWK ||
13740BEGIN {
13741_ACEOF
13742
13743# Transform confdefs.h into an awk script `defines.awk', embedded as
13744# here-document in config.status, that substitutes the proper values into
13745# config.h.in to produce config.h.
13746
13747# Create a delimiter string that does not exist in confdefs.h, to ease
13748# handling of long lines.
13749ac_delim='%!_!# '
13750for ac_last_try in false false :; do
13751 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13752 if test -z "$ac_t"; then
13753 break
13754 elif $ac_last_try; then
13755 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13756$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13757 { (exit 1); exit 1; }; }
13758 else
13759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13760 fi
13761done
13762
13763# For the awk script, D is an array of macro values keyed by name,
13764# likewise P contains macro parameters if any. Preserve backslash
13765# newline sequences.
13766
13767ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13768sed -n '
13769s/.\{148\}/&'"$ac_delim"'/g
13770t rset
13771:rset
13772s/^[ ]*#[ ]*define[ ][ ]*/ /
13773t def
13774d
13775:def
13776s/\\$//
13777t bsnl
13778s/["\\]/\\&/g
13779s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13780D["\1"]=" \3"/p
13781s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13782d
13783:bsnl
13784s/["\\]/\\&/g
13785s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13786D["\1"]=" \3\\\\\\n"\\/p
13787t cont
13788s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13789t cont
13790d
13791:cont
13792n
13793s/.\{148\}/&'"$ac_delim"'/g
13794t clear
13795:clear
13796s/\\$//
13797t bsnlc
13798s/["\\]/\\&/g; s/^/"/; s/$/"/p
13799d
13800:bsnlc
13801s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13802b cont
13803' <confdefs.h | sed '
13804s/'"$ac_delim"'/"\\\
13805"/g' >>$CONFIG_STATUS || ac_write_fail=1
13806
13807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808 for (key in D) D_is_set[key] = 1
13809 FS = "\a"
13810}
13811/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13812 line = \$ 0
13813 split(line, arg, " ")
13814 if (arg[1] == "#") {
13815 defundef = arg[2]
13816 mac1 = arg[3]
13817 } else {
13818 defundef = substr(arg[1], 2)
13819 mac1 = arg[2]
13820 }
13821 split(mac1, mac2, "(") #)
13822 macro = mac2[1]
13823 prefix = substr(line, 1, index(line, defundef) - 1)
13824 if (D_is_set[macro]) {
13825 # Preserve the white space surrounding the "#".
13826 print prefix "define", macro P[macro] D[macro]
13827 next
13828 } else {
13829 # Replace #undef with comments. This is necessary, for example,
13830 # in the case of _POSIX_SOURCE, which is predefined and required
13831 # on some systems where configure will not decide to define it.
13832 if (defundef == "undef") {
13833 print "/*", prefix defundef, macro, "*/"
13834 next
13835 }
13836 }
13837}
13838{ print }
13839_ACAWK
13840_ACEOF
13841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13842 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13843$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13844 { (exit 1); exit 1; }; }
13845fi # test -n "$CONFIG_HEADERS"
13846
7a197a62 13847
ec6a6fbe
AK
13848eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13849shift
13850for ac_tag
7a197a62
AK
13851do
13852 case $ac_tag in
13853 :[FHLC]) ac_mode=$ac_tag; continue;;
13854 esac
13855 case $ac_mode$ac_tag in
13856 :[FHL]*:*);;
ec6a6fbe
AK
13857 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13858$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13859 { (exit 1); exit 1; }; };;
13860 :[FH]-) ac_tag=-:-;;
13861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13862 esac
13863 ac_save_IFS=$IFS
13864 IFS=:
13865 set x $ac_tag
13866 IFS=$ac_save_IFS
13867 shift
13868 ac_file=$1
13869 shift
13870
13871 case $ac_mode in
13872 :L) ac_source=$1;;
13873 :[FH])
13874 ac_file_inputs=
13875 for ac_f
13876 do
13877 case $ac_f in
13878 -) ac_f="$tmp/stdin";;
13879 *) # Look for the file first in the build tree, then in the source tree
13880 # (if the path is not absolute). The absolute path cannot be DOS-style,
13881 # because $ac_f cannot contain `:'.
13882 test -f "$ac_f" ||
13883 case $ac_f in
13884 [\\/$]*) false;;
13885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13886 esac ||
ec6a6fbe
AK
13887 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13888$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13889 { (exit 1); exit 1; }; };;
13890 esac
ec6a6fbe
AK
13891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13892 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13893 done
13894
13895 # Let's still pretend it is `configure' which instantiates (i.e., don't
13896 # use $as_me), people would be surprised to read:
13897 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13898 configure_input='Generated from '`
13899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13900 `' by configure.'
7a197a62
AK
13901 if test x"$ac_file" != x-; then
13902 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13903 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13904$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13905 fi
ec6a6fbe
AK
13906 # Neutralize special characters interpreted by sed in replacement strings.
13907 case $configure_input in #(
13908 *\&* | *\|* | *\\* )
13909 ac_sed_conf_input=`$as_echo "$configure_input" |
13910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13911 *) ac_sed_conf_input=$configure_input;;
13912 esac
7a197a62
AK
13913
13914 case $ac_tag in
ec6a6fbe
AK
13915 *:-:* | *:-) cat >"$tmp/stdin" \
13916 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13917$as_echo "$as_me: error: could not create $ac_file" >&2;}
13918 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13919 esac
13920 ;;
80992638 13921 esac
8106cdd5 13922
7a197a62 13923 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13924$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13925 X"$ac_file" : 'X\(//\)[^/]' \| \
13926 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13927 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13928$as_echo X"$ac_file" |
7a197a62
AK
13929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13930 s//\1/
13931 q
13932 }
13933 /^X\(\/\/\)[^/].*/{
13934 s//\1/
13935 q
13936 }
13937 /^X\(\/\/\)$/{
13938 s//\1/
13939 q
13940 }
13941 /^X\(\/\).*/{
13942 s//\1/
13943 q
13944 }
13945 s/.*/./; q'`
13946 { as_dir="$ac_dir"
13947 case $as_dir in #(
13948 -*) as_dir=./$as_dir;;
13949 esac
13950 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13951 as_dirs=
7a197a62
AK
13952 while :; do
13953 case $as_dir in #(
ec6a6fbe 13954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13955 *) as_qdir=$as_dir;;
13956 esac
13957 as_dirs="'$as_qdir' $as_dirs"
13958 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13960 X"$as_dir" : 'X\(//\)[^/]' \| \
13961 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13963$as_echo X"$as_dir" |
7a197a62
AK
13964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13965 s//\1/
13966 q
13967 }
13968 /^X\(\/\/\)[^/].*/{
13969 s//\1/
13970 q
13971 }
13972 /^X\(\/\/\)$/{
13973 s//\1/
13974 q
13975 }
13976 /^X\(\/\).*/{
13977 s//\1/
13978 q
13979 }
13980 s/.*/./; q'`
13981 test -d "$as_dir" && break
ad6254c5 13982 done
7a197a62 13983 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13984 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13985$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13986 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13987 ac_builddir=.
13988
7a197a62
AK
13989case "$ac_dir" in
13990.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13991*)
ec6a6fbe 13992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13993 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13995 case $ac_top_builddir_sub in
13996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13998 esac ;;
13999esac
14000ac_abs_top_builddir=$ac_pwd
14001ac_abs_builddir=$ac_pwd$ac_dir_suffix
14002# for backward compatibility:
14003ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
14004
14005case $srcdir in
7a197a62 14006 .) # We are building in place.
ad6254c5 14007 ac_srcdir=.
7a197a62
AK
14008 ac_top_srcdir=$ac_top_builddir_sub
14009 ac_abs_top_srcdir=$ac_pwd ;;
14010 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 14011 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
14012 ac_top_srcdir=$srcdir
14013 ac_abs_top_srcdir=$srcdir ;;
14014 *) # Relative name.
14015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14016 ac_top_srcdir=$ac_top_build_prefix$srcdir
14017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 14018esac
7a197a62 14019ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 14020
ad6254c5 14021
7a197a62
AK
14022 case $ac_mode in
14023 :F)
14024 #
14025 # CONFIG_FILE
14026 #
ad6254c5
AK
14027
14028 case $INSTALL in
14029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 14030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 14031 esac
fddafd51
ZK
14032 ac_MKDIR_P=$MKDIR_P
14033 case $MKDIR_P in
14034 [\\/$]* | ?:[\\/]* ) ;;
14035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14036 esac
7a197a62 14037_ACEOF
795ca3e5 14038
ec6a6fbe 14039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
14040# If the template does not know about datarootdir, expand it.
14041# FIXME: This hack should be removed a few years after 2.60.
14042ac_datarootdir_hack=; ac_datarootdir_seen=
14043
ec6a6fbe
AK
14044ac_sed_dataroot='
14045/datarootdir/ {
7a197a62
AK
14046 p
14047 q
14048}
14049/@datadir@/p
14050/@docdir@/p
14051/@infodir@/p
14052/@localedir@/p
14053/@mandir@/p
ec6a6fbe
AK
14054'
14055case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
14056*datarootdir*) ac_datarootdir_seen=yes;;
14057*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
14058 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14059$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 14060_ACEOF
ec6a6fbe 14061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
14062 ac_datarootdir_hack='
14063 s&@datadir@&$datadir&g
14064 s&@docdir@&$docdir&g
14065 s&@infodir@&$infodir&g
14066 s&@localedir@&$localedir&g
14067 s&@mandir@&$mandir&g
14068 s&\\\${datarootdir}&$datarootdir&g' ;;
14069esac
14070_ACEOF
14071
14072# Neutralize VPATH when `$srcdir' = `.'.
14073# Shell code in configure.ac might set extrasub.
14074# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
14075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14076ac_sed_extra="$ac_vpsub
ad6254c5
AK
14077$extrasub
14078_ACEOF
ec6a6fbe 14079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
14080:t
14081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 14082s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 14083s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 14084s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
14085s&@srcdir@&$ac_srcdir&;t t
14086s&@abs_srcdir@&$ac_abs_srcdir&;t t
14087s&@top_srcdir@&$ac_top_srcdir&;t t
14088s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14089s&@builddir@&$ac_builddir&;t t
14090s&@abs_builddir@&$ac_abs_builddir&;t t
14091s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14092s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 14093s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 14094$ac_datarootdir_hack
ec6a6fbe
AK
14095"
14096eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14097 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14098$as_echo "$as_me: error: could not create $ac_file" >&2;}
14099 { (exit 1); exit 1; }; }
7a197a62
AK
14100
14101test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14102 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14103 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 14104 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 14105which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 14106$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
14107which seems to be undefined. Please make sure it is defined." >&2;}
14108
14109 rm -f "$tmp/stdin"
72b2cb61 14110 case $ac_file in
ec6a6fbe
AK
14111 -) cat "$tmp/out" && rm -f "$tmp/out";;
14112 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14113 esac \
14114 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14115$as_echo "$as_me: error: could not create $ac_file" >&2;}
14116 { (exit 1); exit 1; }; }
7a197a62
AK
14117 ;;
14118 :H)
14119 #
14120 # CONFIG_HEADER
14121 #
72b2cb61 14122 if test x"$ac_file" != x-; then
ec6a6fbe
AK
14123 {
14124 $as_echo "/* $configure_input */" \
14125 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14126 } >"$tmp/config.h" \
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; }; }
14130 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14131 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14132$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 14133 else
ec6a6fbe
AK
14134 rm -f "$ac_file"
14135 mv "$tmp/config.h" "$ac_file" \
14136 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14137$as_echo "$as_me: error: could not create $ac_file" >&2;}
14138 { (exit 1); exit 1; }; }
72b2cb61
AK
14139 fi
14140 else
ec6a6fbe
AK
14141 $as_echo "/* $configure_input */" \
14142 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14143 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14144$as_echo "$as_me: error: could not create -" >&2;}
14145 { (exit 1); exit 1; }; }
72b2cb61 14146 fi
7a197a62
AK
14147 ;;
14148
14149
14150 esac
14151
14152done # for ac_tag
795ca3e5 14153
795ca3e5 14154
ad6254c5
AK
14155{ (exit 0); exit 0; }
14156_ACEOF
795ca3e5 14157chmod +x $CONFIG_STATUS
ad6254c5
AK
14158ac_clean_files=$ac_clean_files_save
14159
ec6a6fbe
AK
14160test $ac_write_fail = 0 ||
14161 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14162$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14163 { (exit 1); exit 1; }; }
14164
ad6254c5
AK
14165
14166# configure is writing to config.log, and then calls config.status.
14167# config.status does its own redirection, appending to config.log.
14168# Unfortunately, on DOS this fails, as config.log is still kept open
14169# by configure, so config.status won't be able to write to it; its
14170# output is simply discarded. So we exec the FD to /dev/null,
14171# effectively closing config.log, so it can be properly (re)opened and
14172# appended to by config.status. When coming back to configure, we
14173# need to make the FD available again.
14174if test "$no_create" != yes; then
14175 ac_cs_success=:
14176 ac_config_status_args=
14177 test "$silent" = yes &&
14178 ac_config_status_args="$ac_config_status_args --quiet"
14179 exec 5>/dev/null
14180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14181 exec 5>>config.log
14182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14183 # would make configure fail if this is the last instruction.
14184 $ac_cs_success || { (exit 1); exit 1; }
14185fi
ec6a6fbe
AK
14186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14187 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14188$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14189fi
795ca3e5 14190
2dc95e1c
AK
14191
14192if test x$ODIRECT != xyes; then
ec6a6fbe
AK
14193 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
14194$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 14195fi
This page took 1.940289 seconds and 5 git commands to generate.