2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="lib/device/dev-io.h"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_default_prefix=/usr
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB KLCC KLIBC KLIBC_PREFIX KLIBC_BIN_DIR KLIBC_SBIN_DIR KLIBC_LIB_DIR KLIBC_INCLUDE_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CLDFLAGS DEBUG DEBUG_MALLOC DMRAID_TEST DMRAID_VERSION DMRAID_LIB_VERSION DIETLIBC GROUP JOBS LD_DEPS FLAVOUR LIBSELINUX LIBSEPOL LIB_SO OWNER SOFLAG STATIC_LINK LIBOBJS LTLIBOBJS'
316
# Initialize some variables set by options.
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
328
program_transform_name=s,x,x,
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
357
# If the previous option needs an argument, assign it.
358
if test -n "$ac_prev"; then
359
eval "$ac_prev=\$ac_option"
364
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
# Accept the important Cygnus configure options, so we can diagnose typos.
370
-bindir | --bindir | --bindi | --bind | --bin | --bi)
372
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
-build | --build | --buil | --bui | --bu)
376
ac_prev=build_alias ;;
377
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
build_alias=$ac_optarg ;;
380
-cache-file | --cache-file | --cache-fil | --cache-fi \
381
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
ac_prev=cache_file ;;
383
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
cache_file=$ac_optarg ;;
388
cache_file=config.cache ;;
390
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
datadir=$ac_optarg ;;
396
-disable-* | --disable-*)
397
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
# Reject names that are not valid shell variable names.
399
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
{ (exit 1); exit 1; }; }
402
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
eval "enable_$ac_feature=no" ;;
405
-enable-* | --enable-*)
406
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
# Reject names that are not valid shell variable names.
408
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
{ (exit 1); exit 1; }; }
411
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
eval "enable_$ac_feature='$ac_optarg'" ;;
418
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
| --exec | --exe | --ex)
421
ac_prev=exec_prefix ;;
422
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
| --exec=* | --exe=* | --ex=*)
425
exec_prefix=$ac_optarg ;;
427
-gas | --gas | --ga | --g)
428
# Obsolete; use --with-gas.
431
-help | --help | --hel | --he | -h)
433
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
ac_init_help=recursive ;;
435
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
ac_init_help=short ;;
438
-host | --host | --hos | --ho)
439
ac_prev=host_alias ;;
440
-host=* | --host=* | --hos=* | --ho=*)
441
host_alias=$ac_optarg ;;
443
-includedir | --includedir | --includedi | --included | --include \
444
| --includ | --inclu | --incl | --inc)
445
ac_prev=includedir ;;
446
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
| --includ=* | --inclu=* | --incl=* | --inc=*)
448
includedir=$ac_optarg ;;
450
-infodir | --infodir | --infodi | --infod | --info | --inf)
452
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
infodir=$ac_optarg ;;
455
-libdir | --libdir | --libdi | --libd)
457
-libdir=* | --libdir=* | --libdi=* | --libd=*)
460
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
| --libexe | --libex | --libe)
462
ac_prev=libexecdir ;;
463
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
| --libexe=* | --libex=* | --libe=*)
465
libexecdir=$ac_optarg ;;
467
-localstatedir | --localstatedir | --localstatedi | --localstated \
468
| --localstate | --localstat | --localsta | --localst \
469
| --locals | --local | --loca | --loc | --lo)
470
ac_prev=localstatedir ;;
471
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
localstatedir=$ac_optarg ;;
476
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
# Obsolete; use --without-fp.
485
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
| --no-cr | --no-c | -n)
489
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
| --oldin | --oldi | --old | --ol | --o)
496
ac_prev=oldincludedir ;;
497
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
oldincludedir=$ac_optarg ;;
502
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
-program-prefix | --program-prefix | --program-prefi | --program-pref \
508
| --program-pre | --program-pr | --program-p)
509
ac_prev=program_prefix ;;
510
-program-prefix=* | --program-prefix=* | --program-prefi=* \
511
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
program_prefix=$ac_optarg ;;
514
-program-suffix | --program-suffix | --program-suffi | --program-suff \
515
| --program-suf | --program-su | --program-s)
516
ac_prev=program_suffix ;;
517
-program-suffix=* | --program-suffix=* | --program-suffi=* \
518
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
program_suffix=$ac_optarg ;;
521
-program-transform-name | --program-transform-name \
522
| --program-transform-nam | --program-transform-na \
523
| --program-transform-n | --program-transform- \
524
| --program-transform | --program-transfor \
525
| --program-transfo | --program-transf \
526
| --program-trans | --program-tran \
527
| --progr-tra | --program-tr | --program-t)
528
ac_prev=program_transform_name ;;
529
-program-transform-name=* | --program-transform-name=* \
530
| --program-transform-nam=* | --program-transform-na=* \
531
| --program-transform-n=* | --program-transform-=* \
532
| --program-transform=* | --program-transfor=* \
533
| --program-transfo=* | --program-transf=* \
534
| --program-trans=* | --program-tran=* \
535
| --progr-tra=* | --program-tr=* | --program-t=*)
536
program_transform_name=$ac_optarg ;;
538
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
| -silent | --silent | --silen | --sile | --sil)
542
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546
sbindir=$ac_optarg ;;
548
-sharedstatedir | --sharedstatedir | --sharedstatedi \
549
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
| --sharedst | --shareds | --shared | --share | --shar \
552
ac_prev=sharedstatedir ;;
553
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557
sharedstatedir=$ac_optarg ;;
559
-site | --site | --sit)
561
-site=* | --site=* | --sit=*)
564
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
| --syscon | --sysco | --sysc | --sys | --sy)
571
ac_prev=sysconfdir ;;
572
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
sysconfdir=$ac_optarg ;;
576
-target | --target | --targe | --targ | --tar | --ta | --t)
577
ac_prev=target_alias ;;
578
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
target_alias=$ac_optarg ;;
581
-v | -verbose | --verbose | --verbos | --verbo | --verb)
584
-version | --version | --versio | --versi | --vers | -V)
588
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid package name: $ac_package" >&2
592
{ (exit 1); exit 1; }; }
593
ac_package=`echo $ac_package| sed 's/-/_/g'`
595
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
eval "with_$ac_package='$ac_optarg'" ;;
600
-without-* | --without-*)
601
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
# Reject names that are not valid shell variable names.
603
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
{ echo "$as_me: error: invalid package name: $ac_package" >&2
605
{ (exit 1); exit 1; }; }
606
ac_package=`echo $ac_package | sed 's/-/_/g'`
607
eval "with_$ac_package=no" ;;
610
# Obsolete; use --with-x.
613
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
| --x-incl | --x-inc | --x-in | --x-i)
615
ac_prev=x_includes ;;
616
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
x_includes=$ac_optarg ;;
620
-x-libraries | --x-libraries | --x-librarie | --x-librari \
621
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
ac_prev=x_libraries ;;
623
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
x_libraries=$ac_optarg ;;
627
-*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
{ (exit 1); exit 1; }; }
633
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
# Reject names that are not valid shell variable names.
635
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
{ (exit 1); exit 1; }; }
638
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
eval "$ac_envvar='$ac_optarg'"
643
# FIXME: should be removed in autoconf 3.0.
644
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
if test -n "$ac_prev"; then
654
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
{ echo "$as_me: error: missing argument to $ac_option" >&2
656
{ (exit 1); exit 1; }; }
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
662
eval ac_val=$`echo $ac_var`
664
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
{ (exit 1); exit 1; }; };;
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
localstatedir libdir includedir oldincludedir infodir mandir
674
eval ac_val=$`echo $ac_var`
676
[\\/$]* | ?:[\\/]* ) ;;
677
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
{ (exit 1); exit 1; }; };;
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
if test "x$build_alias" = x; then
692
cross_compiling=maybe
693
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
If a cross compiler is detected then cross compile mode will be used." >&2
695
elif test "x$build_alias" != "x$host_alias"; then
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
test "$silent" = yes && exec 6>/dev/null
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
ac_srcdir_defaulted=yes
709
# Try the directory containing this script, then its parent.
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
/^X\(\/\/\)$/{ s//\1/; q; }
720
/^X\(\/\).*/{ s//\1/; q; }
723
if test ! -r $srcdir/$ac_unique_file; then
727
ac_srcdir_defaulted=no
729
if test ! -r $srcdir/$ac_unique_file; then
730
if test "$ac_srcdir_defaulted" = yes; then
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures this package to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
836
--build=BUILD configure for building on BUILD [guessed]
837
--host=HOST cross-compile to build programs to run on HOST [BUILD]
838
--target=TARGET configure for building compilers for TARGET [HOST]
842
if test -n "$ac_init_help"; then
847
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849
--enable-klibc Use this to link the tools to klibc. Set KLCC to the
850
absolute file name of klcc if not in the PATH.
851
--enable-debug Enable debugging
852
--enable-debug_malloc Enable malloc debugging
853
--enable-dietlibc Use this to link the tools to dietlibc
854
--enable-jobs=NUM Number of jobs to run simultaneously
855
--enable-libselinux Use this to link the tools to libselinux
856
--enable-libsepol Use this to link the tools to libsepol
857
--enable-mini Use this to create a minimal binrary suitable
858
for early boot environments
859
--disable-native_log Disable native metadata logging. Default is enabled
860
--enable-static_link Use this to link the tools to the dmraid and devmapper
861
libraries statically. Default is dynamic linking
862
--enable-shared_lib Use this to generate shared libdmraid and link the
863
tools to it. Default is static libdmraid
864
--disable-testing Disable testing with mapped devices
867
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869
--with-user=USER Set the owner of installed files
870
--with-group=GROUP Set the group owner of installed files
872
Some influential environment variables:
873
CC C compiler command
874
CFLAGS C compiler flags
875
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876
nonstandard directory <lib dir>
877
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878
headers in a nonstandard directory <include dir>
881
Use these variables to override the choices made by `configure' or to help
882
it to find libraries and programs with nonstandard names/locations.
887
if test "$ac_init_help" = "recursive"; then
888
# If there are subdirs, report their specific --help.
890
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891
test -d $ac_dir || continue
894
if test "$ac_dir" != .; then
895
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896
# A "../" for each directory in $ac_dir_suffix.
897
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899
ac_dir_suffix= ac_top_builddir=
903
.) # No --srcdir option. We are building in place.
905
if test -z "$ac_top_builddir"; then
908
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910
[\\/]* | ?:[\\/]* ) # Absolute path.
911
ac_srcdir=$srcdir$ac_dir_suffix;
912
ac_top_srcdir=$srcdir ;;
914
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915
ac_top_srcdir=$ac_top_builddir$srcdir ;;
918
# Do not use `cd foo && pwd` to compute absolute paths, because
919
# the directories may not exist.
921
.) ac_abs_builddir="$ac_dir";;
924
.) ac_abs_builddir=`pwd`;;
925
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926
*) ac_abs_builddir=`pwd`/"$ac_dir";;
929
case $ac_abs_builddir in
930
.) ac_abs_top_builddir=${ac_top_builddir}.;;
932
case ${ac_top_builddir}. in
933
.) ac_abs_top_builddir=$ac_abs_builddir;;
934
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938
case $ac_abs_builddir in
939
.) ac_abs_srcdir=$ac_srcdir;;
942
.) ac_abs_srcdir=$ac_abs_builddir;;
943
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947
case $ac_abs_builddir in
948
.) ac_abs_top_srcdir=$ac_top_srcdir;;
950
case $ac_top_srcdir in
951
.) ac_abs_top_srcdir=$ac_abs_builddir;;
952
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958
# Check for guested configure; otherwise get Cygnus style configure.
959
if test -f $ac_srcdir/configure.gnu; then
961
$SHELL $ac_srcdir/configure.gnu --help=recursive
962
elif test -f $ac_srcdir/configure; then
964
$SHELL $ac_srcdir/configure --help=recursive
965
elif test -f $ac_srcdir/configure.ac ||
966
test -f $ac_srcdir/configure.in; then
970
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976
test -n "$ac_init_help" && exit 0
977
if $ac_init_version; then
980
Copyright (C) 2003 Free Software Foundation, Inc.
981
This configure script is free software; the Free Software Foundation
982
gives unlimited permission to copy, distribute and modify it.
988
This file contains any messages produced by compilers while
989
running configure, to aid debugging if configure makes a mistake.
991
It was created by $as_me, which was
992
generated by GNU Autoconf 2.59. Invocation command line was
1003
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026
test -z "$as_dir" && as_dir=.
1027
echo "PATH: $as_dir"
1042
# Keep a trace of the command line.
1043
# Strip out --no-create and --no-recursion so they do not pile up.
1044
# Strip out --silent because we don't want to record it for future runs.
1045
# Also quote any args containing shell meta-characters.
1046
# Make two passes to allow for proper duplicate-argument suppression.
1051
ac_must_keep_next=false
1057
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059
| -silent | --silent | --silen | --sile | --sil)
1061
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068
if test $ac_must_keep_next = true; then
1069
ac_must_keep_next=false # Got value, back to normal.
1072
*=* | --config-cache | -C | -disable-* | --disable-* \
1073
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075
| -with-* | --with-* | -without-* | --without-* | --x)
1076
case "$ac_configure_args0 " in
1077
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080
-* ) ac_must_keep_next=true ;;
1083
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084
# Get rid of the leading space.
1090
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
# When interrupted or exit'd, cleanup temporary files, and complete
1094
# config.log. We remove comments because anyway the quotes in there
1095
# would cause problems or look ugly.
1096
# WARNING: Be sure not to use single quotes in there, as some shells,
1097
# such as our DU 5.0 friend, will then `close' the trap.
1098
trap 'exit_status=$?
1099
# Save into config.log some information that might help in debugging.
1104
## ---------------- ##
1105
## Cache variables. ##
1106
## ---------------- ##
1109
# The following way of writing the cache mishandles newlines in values,
1112
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127
## ----------------- ##
1128
## Output variables. ##
1129
## ----------------- ##
1132
for ac_var in $ac_subst_vars
1134
eval ac_val=$`echo $ac_var`
1135
echo "$ac_var='"'"'$ac_val'"'"'"
1139
if test -n "$ac_subst_files"; then
1146
for ac_var in $ac_subst_files
1148
eval ac_val=$`echo $ac_var`
1149
echo "$ac_var='"'"'$ac_val'"'"'"
1154
if test -s confdefs.h; then
1161
sed "/^$/d" confdefs.h | sort
1164
test "$ac_signal" != 0 &&
1165
echo "$as_me: caught signal $ac_signal"
1166
echo "$as_me: exit $exit_status"
1168
rm -f core *.core &&
1169
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172
for ac_signal in 1 2 13 15; do
1173
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1178
rm -rf conftest* confdefs.h
1179
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182
# Predefined preprocessor variables.
1184
cat >>confdefs.h <<_ACEOF
1185
#define PACKAGE_NAME "$PACKAGE_NAME"
1189
cat >>confdefs.h <<_ACEOF
1190
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194
cat >>confdefs.h <<_ACEOF
1195
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199
cat >>confdefs.h <<_ACEOF
1200
#define PACKAGE_STRING "$PACKAGE_STRING"
1204
cat >>confdefs.h <<_ACEOF
1205
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209
# Let the site file select an alternate cache file if it wants to.
1210
# Prefer explicitly selected file to automatically selected ones.
1211
if test -z "$CONFIG_SITE"; then
1212
if test "x$prefix" != xNONE; then
1213
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218
for ac_site_file in $CONFIG_SITE; do
1219
if test -r "$ac_site_file"; then
1220
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221
echo "$as_me: loading site script $ac_site_file" >&6;}
1222
sed 's/^/| /' "$ac_site_file" >&5
1227
if test -r "$cache_file"; then
1228
# Some versions of bash will fail to source /dev/null (special
1229
# files actually), so we avoid doing that.
1230
if test -f "$cache_file"; then
1231
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232
echo "$as_me: loading cache $cache_file" >&6;}
1234
[\\/]* | ?:[\\/]* ) . $cache_file;;
1235
*) . ./$cache_file;;
1239
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240
echo "$as_me: creating cache $cache_file" >&6;}
1244
# Check that the precious variables saved in the cache have kept the same
1246
ac_cache_corrupted=false
1247
for ac_var in `(set) 2>&1 |
1248
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250
eval ac_new_set=\$ac_env_${ac_var}_set
1251
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252
eval ac_new_val="\$ac_env_${ac_var}_value"
1253
case $ac_old_set,$ac_new_set in
1255
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257
ac_cache_corrupted=: ;;
1259
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261
ac_cache_corrupted=: ;;
1264
if test "x$ac_old_val" != "x$ac_new_val"; then
1265
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268
echo "$as_me: former value: $ac_old_val" >&2;}
1269
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270
echo "$as_me: current value: $ac_new_val" >&2;}
1271
ac_cache_corrupted=:
1274
# Pass precious variables to config.status.
1275
if test "$ac_new_set" = set; then
1277
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279
*) ac_arg=$ac_var=$ac_new_val ;;
1281
case " $ac_configure_args " in
1282
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287
if $ac_cache_corrupted; then
1288
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292
{ (exit 1); exit 1; }; }
1296
ac_cpp='$CPP $CPPFLAGS'
1297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321
for ac_dir in autoconf $srcdir/autoconf; do
1322
if test -f $ac_dir/install-sh; then
1324
ac_install_sh="$ac_aux_dir/install-sh -c"
1326
elif test -f $ac_dir/install.sh; then
1328
ac_install_sh="$ac_aux_dir/install.sh -c"
1330
elif test -f $ac_dir/shtool; then
1332
ac_install_sh="$ac_aux_dir/shtool install -c"
1336
if test -z "$ac_aux_dir"; then
1337
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1338
echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1339
{ (exit 1); exit 1; }; }
1341
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
# Make sure we can run config.sub.
1347
$ac_config_sub sun4 >/dev/null 2>&1 ||
1348
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350
{ (exit 1); exit 1; }; }
1352
echo "$as_me:$LINENO: checking build system type" >&5
1353
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354
if test "${ac_cv_build+set}" = set; then
1355
echo $ECHO_N "(cached) $ECHO_C" >&6
1357
ac_cv_build_alias=$build_alias
1358
test -z "$ac_cv_build_alias" &&
1359
ac_cv_build_alias=`$ac_config_guess`
1360
test -z "$ac_cv_build_alias" &&
1361
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363
{ (exit 1); exit 1; }; }
1364
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367
{ (exit 1); exit 1; }; }
1370
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371
echo "${ECHO_T}$ac_cv_build" >&6
1373
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
echo "$as_me:$LINENO: checking host system type" >&5
1379
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380
if test "${ac_cv_host+set}" = set; then
1381
echo $ECHO_N "(cached) $ECHO_C" >&6
1383
ac_cv_host_alias=$host_alias
1384
test -z "$ac_cv_host_alias" &&
1385
ac_cv_host_alias=$ac_cv_build_alias
1386
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389
{ (exit 1); exit 1; }; }
1392
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393
echo "${ECHO_T}$ac_cv_host" >&6
1395
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
echo "$as_me:$LINENO: checking target system type" >&5
1401
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402
if test "${ac_cv_target+set}" = set; then
1403
echo $ECHO_N "(cached) $ECHO_C" >&6
1405
ac_cv_target_alias=$target_alias
1406
test "x$ac_cv_target_alias" = "x" &&
1407
ac_cv_target_alias=$ac_cv_host_alias
1408
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411
{ (exit 1); exit 1; }; }
1414
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415
echo "${ECHO_T}$ac_cv_target" >&6
1416
target=$ac_cv_target
1417
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
# The aliases save the names the user supplied, while $host etc.
1423
# will get canonicalized.
1424
test -n "$target_alias" &&
1425
test "$program_prefix$program_suffix$program_transform_name" = \
1427
program_prefix=${target_alias}-
1429
for ac_prog in gawk mawk nawk awk
1431
# Extract the first word of "$ac_prog", so it can be a program name with args.
1432
set dummy $ac_prog; ac_word=$2
1433
echo "$as_me:$LINENO: checking for $ac_word" >&5
1434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435
if test "${ac_cv_prog_AWK+set}" = set; then
1436
echo $ECHO_N "(cached) $ECHO_C" >&6
1438
if test -n "$AWK"; then
1439
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445
test -z "$as_dir" && as_dir=.
1446
for ac_exec_ext in '' $ac_executable_extensions; do
1447
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448
ac_cv_prog_AWK="$ac_prog"
1449
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458
if test -n "$AWK"; then
1459
echo "$as_me:$LINENO: result: $AWK" >&5
1460
echo "${ECHO_T}$AWK" >&6
1462
echo "$as_me:$LINENO: result: no" >&5
1463
echo "${ECHO_T}no" >&6
1466
test -n "$AWK" && break
1469
# Find a good install program. We prefer a C program (faster),
1470
# so one script is as good as another. But avoid the broken or
1471
# incompatible versions:
1472
# SysV /etc/install, /usr/sbin/install
1473
# SunOS /usr/etc/install
1474
# IRIX /sbin/install
1476
# AmigaOS /C/install, which installs bootblocks on floppy discs
1477
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1478
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1479
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1480
# OS/2's system install, which has a completely different semantic
1481
# ./install, which can be erroneously created by make from ./install.sh.
1482
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1483
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1484
if test -z "$INSTALL"; then
1485
if test "${ac_cv_path_install+set}" = set; then
1486
echo $ECHO_N "(cached) $ECHO_C" >&6
1488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492
test -z "$as_dir" && as_dir=.
1493
# Account for people who put trailing slashes in PATH elements.
1495
./ | .// | /cC/* | \
1496
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1497
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1500
# OSF1 and SCO ODT 3.0 have their own names for install.
1501
# Don't use installbsd from OSF since it installs stuff as root
1503
for ac_prog in ginstall scoinst install; do
1504
for ac_exec_ext in '' $ac_executable_extensions; do
1505
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1506
if test $ac_prog = install &&
1507
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1508
# AIX install. It has an incompatible calling convention.
1510
elif test $ac_prog = install &&
1511
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1512
# program-specific install script used by HP pwplus--don't use.
1515
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1527
if test "${ac_cv_path_install+set}" = set; then
1528
INSTALL=$ac_cv_path_install
1530
# As a last resort, use the slow shell script. We don't cache a
1531
# path for INSTALL within a source directory, because that will
1532
# break other packages using the cache if that directory is
1533
# removed, or if the path is relative.
1534
INSTALL=$ac_install_sh
1537
echo "$as_me:$LINENO: result: $INSTALL" >&5
1538
echo "${ECHO_T}$INSTALL" >&6
1540
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1541
# It thinks the first close brace ends the variable substitution.
1542
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1544
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1546
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1548
echo "$as_me:$LINENO: checking whether ln -s works" >&5
1549
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1551
if test "$LN_S" = "ln -s"; then
1552
echo "$as_me:$LINENO: result: yes" >&5
1553
echo "${ECHO_T}yes" >&6
1555
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1556
echo "${ECHO_T}no, using $LN_S" >&6
1559
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1560
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1561
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1562
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1563
echo $ECHO_N "(cached) $ECHO_C" >&6
1565
cat >conftest.make <<\_ACEOF
1567
@echo 'ac_maketemp="$(MAKE)"'
1569
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1571
if test -n "$ac_maketemp"; then
1572
eval ac_cv_prog_make_${ac_make}_set=yes
1574
eval ac_cv_prog_make_${ac_make}_set=no
1578
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579
echo "$as_me:$LINENO: result: yes" >&5
1580
echo "${ECHO_T}yes" >&6
1583
echo "$as_me:$LINENO: result: no" >&5
1584
echo "${ECHO_T}no" >&6
1585
SET_MAKE="MAKE=${MAKE-make}"
1588
if test -n "$ac_tool_prefix"; then
1589
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1590
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1591
echo "$as_me:$LINENO: checking for $ac_word" >&5
1592
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593
if test "${ac_cv_prog_RANLIB+set}" = set; then
1594
echo $ECHO_N "(cached) $ECHO_C" >&6
1596
if test -n "$RANLIB"; then
1597
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603
test -z "$as_dir" && as_dir=.
1604
for ac_exec_ext in '' $ac_executable_extensions; do
1605
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1607
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615
RANLIB=$ac_cv_prog_RANLIB
1616
if test -n "$RANLIB"; then
1617
echo "$as_me:$LINENO: result: $RANLIB" >&5
1618
echo "${ECHO_T}$RANLIB" >&6
1620
echo "$as_me:$LINENO: result: no" >&5
1621
echo "${ECHO_T}no" >&6
1625
if test -z "$ac_cv_prog_RANLIB"; then
1626
ac_ct_RANLIB=$RANLIB
1627
# Extract the first word of "ranlib", so it can be a program name with args.
1628
set dummy ranlib; ac_word=$2
1629
echo "$as_me:$LINENO: checking for $ac_word" >&5
1630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1632
echo $ECHO_N "(cached) $ECHO_C" >&6
1634
if test -n "$ac_ct_RANLIB"; then
1635
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641
test -z "$as_dir" && as_dir=.
1642
for ac_exec_ext in '' $ac_executable_extensions; do
1643
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644
ac_cv_prog_ac_ct_RANLIB="ranlib"
1645
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1654
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1655
if test -n "$ac_ct_RANLIB"; then
1656
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1657
echo "${ECHO_T}$ac_ct_RANLIB" >&6
1659
echo "$as_me:$LINENO: result: no" >&5
1660
echo "${ECHO_T}no" >&6
1663
RANLIB=$ac_ct_RANLIB
1665
RANLIB="$ac_cv_prog_RANLIB"
1671
# Check whether --enable-klibc or --disable-klibc was given.
1672
if test "${enable_klibc+set}" = set; then
1673
enableval="$enable_klibc"
1679
if test "X$KLIBC" = Xyes; then
1680
# Basic cross compiling support. I do not think it is wise to use
1681
# AC_CHECK_TOOL, because if we are cross compiling, we do not want
1682
# just 'klcc' to be returned ...
1683
if test "X$cross_compiling" = Xyes; then
1684
for ac_prog in ${host_alias}-klcc
1686
# Extract the first word of "$ac_prog", so it can be a program name with args.
1687
set dummy $ac_prog; ac_word=$2
1688
echo "$as_me:$LINENO: checking for $ac_word" >&5
1689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690
if test "${ac_cv_prog_KLCC+set}" = set; then
1691
echo $ECHO_N "(cached) $ECHO_C" >&6
1693
if test -n "$KLCC"; then
1694
ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
1696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700
test -z "$as_dir" && as_dir=.
1701
for ac_exec_ext in '' $ac_executable_extensions; do
1702
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703
ac_cv_prog_KLCC="$ac_prog"
1704
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712
KLCC=$ac_cv_prog_KLCC
1713
if test -n "$KLCC"; then
1714
echo "$as_me:$LINENO: result: $KLCC" >&5
1715
echo "${ECHO_T}$KLCC" >&6
1717
echo "$as_me:$LINENO: result: no" >&5
1718
echo "${ECHO_T}no" >&6
1721
test -n "$KLCC" && break
1723
test -n "$KLCC" || KLCC="no"
1728
# Extract the first word of "$ac_prog", so it can be a program name with args.
1729
set dummy $ac_prog; ac_word=$2
1730
echo "$as_me:$LINENO: checking for $ac_word" >&5
1731
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732
if test "${ac_cv_prog_KLCC+set}" = set; then
1733
echo $ECHO_N "(cached) $ECHO_C" >&6
1735
if test -n "$KLCC"; then
1736
ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
1738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742
test -z "$as_dir" && as_dir=.
1743
for ac_exec_ext in '' $ac_executable_extensions; do
1744
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745
ac_cv_prog_KLCC="$ac_prog"
1746
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754
KLCC=$ac_cv_prog_KLCC
1755
if test -n "$KLCC"; then
1756
echo "$as_me:$LINENO: result: $KLCC" >&5
1757
echo "${ECHO_T}$KLCC" >&6
1759
echo "$as_me:$LINENO: result: no" >&5
1760
echo "${ECHO_T}no" >&6
1763
test -n "$KLCC" && break
1765
test -n "$KLCC" || KLCC="no"
1768
if test "X$KLCC" = Xno; then
1769
{ { echo "$as_me:$LINENO: error: cannot find klibc frontend 'klcc'!" >&5
1770
echo "$as_me: error: cannot find klibc frontend 'klcc'!" >&2;}
1771
{ (exit 1); exit 1; }; }
1776
KLIBC_KCROSS="$($KLCC -print-klibc-kcross 2>/dev/null)"
1777
KLIBC_PREFIX="$($KLCC -print-klibc-prefix 2>/dev/null)"
1778
KLIBC_BIN_DIR="$($KLCC -print-klibc-bindir 2>/dev/null)"
1779
KLIBC_SBIN_DIR="${KLIBC_PREFIX}/${KLIBC_KCROSS}sbin"
1780
KLIBC_LIB_DIR="$($KLCC -print-klibc-libdir 2>/dev/null)"
1781
KLIBC_INCLUDE_DIR="$($KLCC -print-klibc-includedir 2>/dev/null)"
1783
# At least KLIBC_LIB_DIR should be valid, else klibc is too old or
1784
# something went wrong
1785
if test ! -d "$KLIBC_LIB_DIR"; then
1786
{ { echo "$as_me:$LINENO: error: your klibc installation is too old or not functional!" >&5
1787
echo "$as_me: error: your klibc installation is too old or not functional!" >&2;}
1788
{ (exit 1); exit 1; }; }
1801
ac_cpp='$CPP $CPPFLAGS'
1802
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
if test -n "$ac_tool_prefix"; then
1806
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808
echo "$as_me:$LINENO: checking for $ac_word" >&5
1809
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810
if test "${ac_cv_prog_CC+set}" = set; then
1811
echo $ECHO_N "(cached) $ECHO_C" >&6
1813
if test -n "$CC"; then
1814
ac_cv_prog_CC="$CC" # Let the user override the test.
1816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820
test -z "$as_dir" && as_dir=.
1821
for ac_exec_ext in '' $ac_executable_extensions; do
1822
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833
if test -n "$CC"; then
1834
echo "$as_me:$LINENO: result: $CC" >&5
1835
echo "${ECHO_T}$CC" >&6
1837
echo "$as_me:$LINENO: result: no" >&5
1838
echo "${ECHO_T}no" >&6
1842
if test -z "$ac_cv_prog_CC"; then
1844
# Extract the first word of "gcc", so it can be a program name with args.
1845
set dummy gcc; ac_word=$2
1846
echo "$as_me:$LINENO: checking for $ac_word" >&5
1847
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849
echo $ECHO_N "(cached) $ECHO_C" >&6
1851
if test -n "$ac_ct_CC"; then
1852
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858
test -z "$as_dir" && as_dir=.
1859
for ac_exec_ext in '' $ac_executable_extensions; do
1860
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861
ac_cv_prog_ac_ct_CC="gcc"
1862
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871
if test -n "$ac_ct_CC"; then
1872
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873
echo "${ECHO_T}$ac_ct_CC" >&6
1875
echo "$as_me:$LINENO: result: no" >&5
1876
echo "${ECHO_T}no" >&6
1884
if test -z "$CC"; then
1885
if test -n "$ac_tool_prefix"; then
1886
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887
set dummy ${ac_tool_prefix}cc; ac_word=$2
1888
echo "$as_me:$LINENO: checking for $ac_word" >&5
1889
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890
if test "${ac_cv_prog_CC+set}" = set; then
1891
echo $ECHO_N "(cached) $ECHO_C" >&6
1893
if test -n "$CC"; then
1894
ac_cv_prog_CC="$CC" # Let the user override the test.
1896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900
test -z "$as_dir" && as_dir=.
1901
for ac_exec_ext in '' $ac_executable_extensions; do
1902
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903
ac_cv_prog_CC="${ac_tool_prefix}cc"
1904
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913
if test -n "$CC"; then
1914
echo "$as_me:$LINENO: result: $CC" >&5
1915
echo "${ECHO_T}$CC" >&6
1917
echo "$as_me:$LINENO: result: no" >&5
1918
echo "${ECHO_T}no" >&6
1922
if test -z "$ac_cv_prog_CC"; then
1924
# Extract the first word of "cc", so it can be a program name with args.
1925
set dummy cc; ac_word=$2
1926
echo "$as_me:$LINENO: checking for $ac_word" >&5
1927
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929
echo $ECHO_N "(cached) $ECHO_C" >&6
1931
if test -n "$ac_ct_CC"; then
1932
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938
test -z "$as_dir" && as_dir=.
1939
for ac_exec_ext in '' $ac_executable_extensions; do
1940
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941
ac_cv_prog_ac_ct_CC="cc"
1942
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951
if test -n "$ac_ct_CC"; then
1952
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953
echo "${ECHO_T}$ac_ct_CC" >&6
1955
echo "$as_me:$LINENO: result: no" >&5
1956
echo "${ECHO_T}no" >&6
1965
if test -z "$CC"; then
1966
# Extract the first word of "cc", so it can be a program name with args.
1967
set dummy cc; ac_word=$2
1968
echo "$as_me:$LINENO: checking for $ac_word" >&5
1969
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970
if test "${ac_cv_prog_CC+set}" = set; then
1971
echo $ECHO_N "(cached) $ECHO_C" >&6
1973
if test -n "$CC"; then
1974
ac_cv_prog_CC="$CC" # Let the user override the test.
1977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981
test -z "$as_dir" && as_dir=.
1982
for ac_exec_ext in '' $ac_executable_extensions; do
1983
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985
ac_prog_rejected=yes
1989
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995
if test $ac_prog_rejected = yes; then
1996
# We found a bogon in the path, so make sure we never use it.
1997
set dummy $ac_cv_prog_CC
1999
if test $# != 0; then
2000
# We chose a different compiler from the bogus one.
2001
# However, it has the same basename, so the bogon will be chosen
2002
# first if we set CC to just the basename; use the full file name.
2004
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010
if test -n "$CC"; then
2011
echo "$as_me:$LINENO: result: $CC" >&5
2012
echo "${ECHO_T}$CC" >&6
2014
echo "$as_me:$LINENO: result: no" >&5
2015
echo "${ECHO_T}no" >&6
2019
if test -z "$CC"; then
2020
if test -n "$ac_tool_prefix"; then
2023
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025
echo "$as_me:$LINENO: checking for $ac_word" >&5
2026
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027
if test "${ac_cv_prog_CC+set}" = set; then
2028
echo $ECHO_N "(cached) $ECHO_C" >&6
2030
if test -n "$CC"; then
2031
ac_cv_prog_CC="$CC" # Let the user override the test.
2033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037
test -z "$as_dir" && as_dir=.
2038
for ac_exec_ext in '' $ac_executable_extensions; do
2039
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050
if test -n "$CC"; then
2051
echo "$as_me:$LINENO: result: $CC" >&5
2052
echo "${ECHO_T}$CC" >&6
2054
echo "$as_me:$LINENO: result: no" >&5
2055
echo "${ECHO_T}no" >&6
2058
test -n "$CC" && break
2061
if test -z "$CC"; then
2065
# Extract the first word of "$ac_prog", so it can be a program name with args.
2066
set dummy $ac_prog; ac_word=$2
2067
echo "$as_me:$LINENO: checking for $ac_word" >&5
2068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070
echo $ECHO_N "(cached) $ECHO_C" >&6
2072
if test -n "$ac_ct_CC"; then
2073
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079
test -z "$as_dir" && as_dir=.
2080
for ac_exec_ext in '' $ac_executable_extensions; do
2081
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082
ac_cv_prog_ac_ct_CC="$ac_prog"
2083
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092
if test -n "$ac_ct_CC"; then
2093
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094
echo "${ECHO_T}$ac_ct_CC" >&6
2096
echo "$as_me:$LINENO: result: no" >&5
2097
echo "${ECHO_T}no" >&6
2100
test -n "$ac_ct_CC" && break
2109
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110
See \`config.log' for more details." >&5
2111
echo "$as_me: error: no acceptable C compiler found in \$PATH
2112
See \`config.log' for more details." >&2;}
2113
{ (exit 1); exit 1; }; }
2115
# Provide some information about the compiler.
2116
echo "$as_me:$LINENO:" \
2117
"checking for C compiler version" >&5
2118
ac_compiler=`set X $ac_compile; echo $2`
2119
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120
(eval $ac_compiler --version </dev/null >&5) 2>&5
2122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123
(exit $ac_status); }
2124
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125
(eval $ac_compiler -v </dev/null >&5) 2>&5
2127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128
(exit $ac_status); }
2129
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130
(eval $ac_compiler -V </dev/null >&5) 2>&5
2132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133
(exit $ac_status); }
2135
cat >conftest.$ac_ext <<_ACEOF
2138
cat confdefs.h >>conftest.$ac_ext
2139
cat >>conftest.$ac_ext <<_ACEOF
2140
/* end confdefs.h. */
2150
ac_clean_files_save=$ac_clean_files
2151
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152
# Try to create an executable without -o first, disregard a.out.
2153
# It will help us diagnose broken compilers, and finding out an intuition
2155
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159
(eval $ac_link_default) 2>&5
2161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162
(exit $ac_status); }; then
2163
# Find the output, starting from the most likely. This scheme is
2164
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167
# Be careful to initialize this variable, since it used to be cached.
2168
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170
# b.out is created by i960 compilers.
2171
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173
test -f "$ac_file" || continue
2175
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178
# This is the source file.
2181
# We found the default executable, but exeext='' is most
2185
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186
# FIXME: I believe we export ac_cv_exeext for Libtool,
2187
# but it would be cool to find out if it's true. Does anybody
2188
# maintain Libtool? --akim.
2196
echo "$as_me: failed program was:" >&5
2197
sed 's/^/| /' conftest.$ac_ext >&5
2199
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200
See \`config.log' for more details." >&5
2201
echo "$as_me: error: C compiler cannot create executables
2202
See \`config.log' for more details." >&2;}
2203
{ (exit 77); exit 77; }; }
2206
ac_exeext=$ac_cv_exeext
2207
echo "$as_me:$LINENO: result: $ac_file" >&5
2208
echo "${ECHO_T}$ac_file" >&6
2210
# Check the compiler produces executables we can run. If not, either
2211
# the compiler is broken, or we cross compile.
2212
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215
# If not cross compiling, check that we can run a simple program.
2216
if test "$cross_compiling" != yes; then
2217
if { ac_try='./$ac_file'
2218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
(exit $ac_status); }; }; then
2225
if test "$cross_compiling" = maybe; then
2228
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229
If you meant to cross compile, use \`--host'.
2230
See \`config.log' for more details." >&5
2231
echo "$as_me: error: cannot run C compiled programs.
2232
If you meant to cross compile, use \`--host'.
2233
See \`config.log' for more details." >&2;}
2234
{ (exit 1); exit 1; }; }
2238
echo "$as_me:$LINENO: result: yes" >&5
2239
echo "${ECHO_T}yes" >&6
2241
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242
ac_clean_files=$ac_clean_files_save
2243
# Check the compiler produces executables we can run. If not, either
2244
# the compiler is broken, or we cross compile.
2245
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248
echo "${ECHO_T}$cross_compiling" >&6
2250
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253
(eval $ac_link) 2>&5
2255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
(exit $ac_status); }; then
2257
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2258
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259
# work properly (i.e., refer to `conftest.exe'), while it won't with
2261
for ac_file in conftest.exe conftest conftest.*; do
2262
test -f "$ac_file" || continue
2264
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273
See \`config.log' for more details." >&5
2274
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275
See \`config.log' for more details." >&2;}
2276
{ (exit 1); exit 1; }; }
2279
rm -f conftest$ac_cv_exeext
2280
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281
echo "${ECHO_T}$ac_cv_exeext" >&6
2283
rm -f conftest.$ac_ext
2284
EXEEXT=$ac_cv_exeext
2286
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288
if test "${ac_cv_objext+set}" = set; then
2289
echo $ECHO_N "(cached) $ECHO_C" >&6
2291
cat >conftest.$ac_ext <<_ACEOF
2294
cat confdefs.h >>conftest.$ac_ext
2295
cat >>conftest.$ac_ext <<_ACEOF
2296
/* end confdefs.h. */
2306
rm -f conftest.o conftest.obj
2307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308
(eval $ac_compile) 2>&5
2310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
(exit $ac_status); }; then
2312
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320
echo "$as_me: failed program was:" >&5
2321
sed 's/^/| /' conftest.$ac_ext >&5
2323
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324
See \`config.log' for more details." >&5
2325
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326
See \`config.log' for more details." >&2;}
2327
{ (exit 1); exit 1; }; }
2330
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333
echo "${ECHO_T}$ac_cv_objext" >&6
2334
OBJEXT=$ac_cv_objext
2336
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339
echo $ECHO_N "(cached) $ECHO_C" >&6
2341
cat >conftest.$ac_ext <<_ACEOF
2344
cat confdefs.h >>conftest.$ac_ext
2345
cat >>conftest.$ac_ext <<_ACEOF
2346
/* end confdefs.h. */
2359
rm -f conftest.$ac_objext
2360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361
(eval $ac_compile) 2>conftest.er1
2363
grep -v '^ *+' conftest.er1 >conftest.err
2365
cat conftest.err >&5
2366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367
(exit $ac_status); } &&
2368
{ ac_try='test -z "$ac_c_werror_flag"
2369
|| test ! -s conftest.err'
2370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374
(exit $ac_status); }; } &&
2375
{ ac_try='test -s conftest.$ac_objext'
2376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380
(exit $ac_status); }; }; then
2383
echo "$as_me: failed program was:" >&5
2384
sed 's/^/| /' conftest.$ac_ext >&5
2388
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394
GCC=`test $ac_compiler_gnu = yes && echo yes`
2395
ac_test_CFLAGS=${CFLAGS+set}
2396
ac_save_CFLAGS=$CFLAGS
2398
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400
if test "${ac_cv_prog_cc_g+set}" = set; then
2401
echo $ECHO_N "(cached) $ECHO_C" >&6
2403
cat >conftest.$ac_ext <<_ACEOF
2406
cat confdefs.h >>conftest.$ac_ext
2407
cat >>conftest.$ac_ext <<_ACEOF
2408
/* end confdefs.h. */
2418
rm -f conftest.$ac_objext
2419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420
(eval $ac_compile) 2>conftest.er1
2422
grep -v '^ *+' conftest.er1 >conftest.err
2424
cat conftest.err >&5
2425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
(exit $ac_status); } &&
2427
{ ac_try='test -z "$ac_c_werror_flag"
2428
|| test ! -s conftest.err'
2429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
(exit $ac_status); }; } &&
2434
{ ac_try='test -s conftest.$ac_objext'
2435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439
(exit $ac_status); }; }; then
2442
echo "$as_me: failed program was:" >&5
2443
sed 's/^/| /' conftest.$ac_ext >&5
2447
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451
if test "$ac_test_CFLAGS" = set; then
2452
CFLAGS=$ac_save_CFLAGS
2453
elif test $ac_cv_prog_cc_g = yes; then
2454
if test "$GCC" = yes; then
2460
if test "$GCC" = yes; then
2466
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469
echo $ECHO_N "(cached) $ECHO_C" >&6
2471
ac_cv_prog_cc_stdc=no
2473
cat >conftest.$ac_ext <<_ACEOF
2476
cat confdefs.h >>conftest.$ac_ext
2477
cat >>conftest.$ac_ext <<_ACEOF
2478
/* end confdefs.h. */
2481
#include <sys/types.h>
2482
#include <sys/stat.h>
2483
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484
struct buf { int x; };
2485
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486
static char *e (p, i)
2492
static char *f (char * (*g) (char **, int), char **p, ...)
2497
s = g (p, va_arg (v,int));
2502
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503
function prototypes and stuff, but not '\xHH' hex character constants.
2504
These don't provoke an error unfortunately, instead are silently treated
2505
as 'x'. The following induces an error, until -std1 is added to get
2506
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2507
array size at least. It's necessary to write '\x00'==0 to get something
2508
that's true only with -std1. */
2509
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511
int test (int i, double x);
2512
struct s1 {int (*f) (int a);};
2513
struct s2 {int (*f) (double a);};
2514
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2525
# Don't try gcc -ansi; that turns off useful extensions and
2526
# breaks some systems' header files.
2527
# AIX -qlanglvl=ansi
2528
# Ultrix and OSF/1 -std1
2529
# HP-UX 10.20 and later -Ae
2530
# HP-UX older versions -Aa -D_HPUX_SOURCE
2531
# SVR4 -Xc -D__EXTENSIONS__
2532
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534
CC="$ac_save_CC $ac_arg"
2535
rm -f conftest.$ac_objext
2536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537
(eval $ac_compile) 2>conftest.er1
2539
grep -v '^ *+' conftest.er1 >conftest.err
2541
cat conftest.err >&5
2542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
(exit $ac_status); } &&
2544
{ ac_try='test -z "$ac_c_werror_flag"
2545
|| test ! -s conftest.err'
2546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550
(exit $ac_status); }; } &&
2551
{ ac_try='test -s conftest.$ac_objext'
2552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556
(exit $ac_status); }; }; then
2557
ac_cv_prog_cc_stdc=$ac_arg
2560
echo "$as_me: failed program was:" >&5
2561
sed 's/^/| /' conftest.$ac_ext >&5
2564
rm -f conftest.err conftest.$ac_objext
2566
rm -f conftest.$ac_ext conftest.$ac_objext
2571
case "x$ac_cv_prog_cc_stdc" in
2573
echo "$as_me:$LINENO: result: none needed" >&5
2574
echo "${ECHO_T}none needed" >&6 ;;
2576
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578
CC="$CC $ac_cv_prog_cc_stdc" ;;
2581
# Some people use a C++ compiler to compile C. Since we use `exit',
2582
# in C++ we need to declare it. In case someone uses the same compiler
2583
# for both compiling C and C++ we need to have the C++ compiler decide
2584
# the declaration of exit, since it's the most demanding environment.
2585
cat >conftest.$ac_ext <<_ACEOF
2590
rm -f conftest.$ac_objext
2591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592
(eval $ac_compile) 2>conftest.er1
2594
grep -v '^ *+' conftest.er1 >conftest.err
2596
cat conftest.err >&5
2597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598
(exit $ac_status); } &&
2599
{ ac_try='test -z "$ac_c_werror_flag"
2600
|| test ! -s conftest.err'
2601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605
(exit $ac_status); }; } &&
2606
{ ac_try='test -s conftest.$ac_objext'
2607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
(exit $ac_status); }; }; then
2612
for ac_declaration in \
2614
'extern "C" void std::exit (int) throw (); using std::exit;' \
2615
'extern "C" void std::exit (int); using std::exit;' \
2616
'extern "C" void exit (int) throw ();' \
2617
'extern "C" void exit (int);' \
2620
cat >conftest.$ac_ext <<_ACEOF
2623
cat confdefs.h >>conftest.$ac_ext
2624
cat >>conftest.$ac_ext <<_ACEOF
2625
/* end confdefs.h. */
2636
rm -f conftest.$ac_objext
2637
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638
(eval $ac_compile) 2>conftest.er1
2640
grep -v '^ *+' conftest.er1 >conftest.err
2642
cat conftest.err >&5
2643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644
(exit $ac_status); } &&
2645
{ ac_try='test -z "$ac_c_werror_flag"
2646
|| test ! -s conftest.err'
2647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651
(exit $ac_status); }; } &&
2652
{ ac_try='test -s conftest.$ac_objext'
2653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
(exit $ac_status); }; }; then
2660
echo "$as_me: failed program was:" >&5
2661
sed 's/^/| /' conftest.$ac_ext >&5
2665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666
cat >conftest.$ac_ext <<_ACEOF
2669
cat confdefs.h >>conftest.$ac_ext
2670
cat >>conftest.$ac_ext <<_ACEOF
2671
/* end confdefs.h. */
2681
rm -f conftest.$ac_objext
2682
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683
(eval $ac_compile) 2>conftest.er1
2685
grep -v '^ *+' conftest.er1 >conftest.err
2687
cat conftest.err >&5
2688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689
(exit $ac_status); } &&
2690
{ ac_try='test -z "$ac_c_werror_flag"
2691
|| test ! -s conftest.err'
2692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); }; } &&
2697
{ ac_try='test -s conftest.$ac_objext'
2698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
(exit $ac_status); }; }; then
2705
echo "$as_me: failed program was:" >&5
2706
sed 's/^/| /' conftest.$ac_ext >&5
2709
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712
if test -n "$ac_declaration"; then
2713
echo '#ifdef __cplusplus' >>confdefs.h
2714
echo $ac_declaration >>confdefs.h
2715
echo '#endif' >>confdefs.h
2719
echo "$as_me: failed program was:" >&5
2720
sed 's/^/| /' conftest.$ac_ext >&5
2723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725
ac_cpp='$CPP $CPPFLAGS'
2726
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2739
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2740
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2741
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2742
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2743
echo $ECHO_N "(cached) $ECHO_C" >&6
2745
cat >conftest.$ac_ext <<_ACEOF
2748
cat confdefs.h >>conftest.$ac_ext
2749
cat >>conftest.$ac_ext <<_ACEOF
2750
/* end confdefs.h. */
2751
#include <sys/types.h>
2763
rm -f conftest.$ac_objext
2764
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765
(eval $ac_compile) 2>conftest.er1
2767
grep -v '^ *+' conftest.er1 >conftest.err
2769
cat conftest.err >&5
2770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
(exit $ac_status); } &&
2772
{ ac_try='test -z "$ac_c_werror_flag"
2773
|| test ! -s conftest.err'
2774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
(exit $ac_status); }; } &&
2779
{ ac_try='test -s conftest.$ac_objext'
2780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
(exit $ac_status); }; }; then
2785
eval "$as_ac_Header=yes"
2787
echo "$as_me: failed program was:" >&5
2788
sed 's/^/| /' conftest.$ac_ext >&5
2790
eval "$as_ac_Header=no"
2792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2795
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2796
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2797
cat >>confdefs.h <<_ACEOF
2798
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2801
ac_header_dirent=$ac_hdr; break
2805
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2806
if test $ac_header_dirent = dirent.h; then
2807
echo "$as_me:$LINENO: checking for library containing opendir" >&5
2808
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2809
if test "${ac_cv_search_opendir+set}" = set; then
2810
echo $ECHO_N "(cached) $ECHO_C" >&6
2812
ac_func_search_save_LIBS=$LIBS
2813
ac_cv_search_opendir=no
2814
cat >conftest.$ac_ext <<_ACEOF
2817
cat confdefs.h >>conftest.$ac_ext
2818
cat >>conftest.$ac_ext <<_ACEOF
2819
/* end confdefs.h. */
2821
/* Override any gcc2 internal prototype to avoid an error. */
2825
/* We use char because int might match the return type of a gcc2
2826
builtin and then its argument prototype would still apply. */
2836
rm -f conftest.$ac_objext conftest$ac_exeext
2837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2838
(eval $ac_link) 2>conftest.er1
2840
grep -v '^ *+' conftest.er1 >conftest.err
2842
cat conftest.err >&5
2843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
(exit $ac_status); } &&
2845
{ ac_try='test -z "$ac_c_werror_flag"
2846
|| test ! -s conftest.err'
2847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851
(exit $ac_status); }; } &&
2852
{ ac_try='test -s conftest$ac_exeext'
2853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
(exit $ac_status); }; }; then
2858
ac_cv_search_opendir="none required"
2860
echo "$as_me: failed program was:" >&5
2861
sed 's/^/| /' conftest.$ac_ext >&5
2864
rm -f conftest.err conftest.$ac_objext \
2865
conftest$ac_exeext conftest.$ac_ext
2866
if test "$ac_cv_search_opendir" = no; then
2867
for ac_lib in dir; do
2868
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2869
cat >conftest.$ac_ext <<_ACEOF
2872
cat confdefs.h >>conftest.$ac_ext
2873
cat >>conftest.$ac_ext <<_ACEOF
2874
/* end confdefs.h. */
2876
/* Override any gcc2 internal prototype to avoid an error. */
2880
/* We use char because int might match the return type of a gcc2
2881
builtin and then its argument prototype would still apply. */
2891
rm -f conftest.$ac_objext conftest$ac_exeext
2892
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893
(eval $ac_link) 2>conftest.er1
2895
grep -v '^ *+' conftest.er1 >conftest.err
2897
cat conftest.err >&5
2898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899
(exit $ac_status); } &&
2900
{ ac_try='test -z "$ac_c_werror_flag"
2901
|| test ! -s conftest.err'
2902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
(exit $ac_status); }; } &&
2907
{ ac_try='test -s conftest$ac_exeext'
2908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
(exit $ac_status); }; }; then
2913
ac_cv_search_opendir="-l$ac_lib"
2916
echo "$as_me: failed program was:" >&5
2917
sed 's/^/| /' conftest.$ac_ext >&5
2920
rm -f conftest.err conftest.$ac_objext \
2921
conftest$ac_exeext conftest.$ac_ext
2924
LIBS=$ac_func_search_save_LIBS
2926
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2927
echo "${ECHO_T}$ac_cv_search_opendir" >&6
2928
if test "$ac_cv_search_opendir" != no; then
2929
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2934
echo "$as_me:$LINENO: checking for library containing opendir" >&5
2935
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2936
if test "${ac_cv_search_opendir+set}" = set; then
2937
echo $ECHO_N "(cached) $ECHO_C" >&6
2939
ac_func_search_save_LIBS=$LIBS
2940
ac_cv_search_opendir=no
2941
cat >conftest.$ac_ext <<_ACEOF
2944
cat confdefs.h >>conftest.$ac_ext
2945
cat >>conftest.$ac_ext <<_ACEOF
2946
/* end confdefs.h. */
2948
/* Override any gcc2 internal prototype to avoid an error. */
2952
/* We use char because int might match the return type of a gcc2
2953
builtin and then its argument prototype would still apply. */
2963
rm -f conftest.$ac_objext conftest$ac_exeext
2964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965
(eval $ac_link) 2>conftest.er1
2967
grep -v '^ *+' conftest.er1 >conftest.err
2969
cat conftest.err >&5
2970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971
(exit $ac_status); } &&
2972
{ ac_try='test -z "$ac_c_werror_flag"
2973
|| test ! -s conftest.err'
2974
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978
(exit $ac_status); }; } &&
2979
{ ac_try='test -s conftest$ac_exeext'
2980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); }; }; then
2985
ac_cv_search_opendir="none required"
2987
echo "$as_me: failed program was:" >&5
2988
sed 's/^/| /' conftest.$ac_ext >&5
2991
rm -f conftest.err conftest.$ac_objext \
2992
conftest$ac_exeext conftest.$ac_ext
2993
if test "$ac_cv_search_opendir" = no; then
2995
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2996
cat >conftest.$ac_ext <<_ACEOF
2999
cat confdefs.h >>conftest.$ac_ext
3000
cat >>conftest.$ac_ext <<_ACEOF
3001
/* end confdefs.h. */
3003
/* Override any gcc2 internal prototype to avoid an error. */
3007
/* We use char because int might match the return type of a gcc2
3008
builtin and then its argument prototype would still apply. */
3018
rm -f conftest.$ac_objext conftest$ac_exeext
3019
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020
(eval $ac_link) 2>conftest.er1
3022
grep -v '^ *+' conftest.er1 >conftest.err
3024
cat conftest.err >&5
3025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
(exit $ac_status); } &&
3027
{ ac_try='test -z "$ac_c_werror_flag"
3028
|| test ! -s conftest.err'
3029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
(exit $ac_status); }; } &&
3034
{ ac_try='test -s conftest$ac_exeext'
3035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039
(exit $ac_status); }; }; then
3040
ac_cv_search_opendir="-l$ac_lib"
3043
echo "$as_me: failed program was:" >&5
3044
sed 's/^/| /' conftest.$ac_ext >&5
3047
rm -f conftest.err conftest.$ac_objext \
3048
conftest$ac_exeext conftest.$ac_ext
3051
LIBS=$ac_func_search_save_LIBS
3053
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3054
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3055
if test "$ac_cv_search_opendir" != no; then
3056
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3063
ac_cpp='$CPP $CPPFLAGS'
3064
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3068
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3069
# On Suns, sometimes $CPP names a directory.
3070
if test -n "$CPP" && test -d "$CPP"; then
3073
if test -z "$CPP"; then
3074
if test "${ac_cv_prog_CPP+set}" = set; then
3075
echo $ECHO_N "(cached) $ECHO_C" >&6
3077
# Double quotes because CPP needs to be expanded
3078
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3081
for ac_c_preproc_warn_flag in '' yes
3083
# Use a header file that comes with gcc, so configuring glibc
3084
# with a fresh cross-compiler works.
3085
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086
# <limits.h> exists even on freestanding compilers.
3087
# On the NeXT, cc -E runs the code through the compiler's parser,
3088
# not just through cpp. "Syntax error" is here to catch this case.
3089
cat >conftest.$ac_ext <<_ACEOF
3092
cat confdefs.h >>conftest.$ac_ext
3093
cat >>conftest.$ac_ext <<_ACEOF
3094
/* end confdefs.h. */
3096
# include <limits.h>
3098
# include <assert.h>
3102
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3103
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3105
grep -v '^ *+' conftest.er1 >conftest.err
3107
cat conftest.err >&5
3108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
(exit $ac_status); } >/dev/null; then
3110
if test -s conftest.err; then
3111
ac_cpp_err=$ac_c_preproc_warn_flag
3112
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119
if test -z "$ac_cpp_err"; then
3122
echo "$as_me: failed program was:" >&5
3123
sed 's/^/| /' conftest.$ac_ext >&5
3125
# Broken: fails on valid input.
3128
rm -f conftest.err conftest.$ac_ext
3130
# OK, works on sane cases. Now check whether non-existent headers
3131
# can be detected and how.
3132
cat >conftest.$ac_ext <<_ACEOF
3135
cat confdefs.h >>conftest.$ac_ext
3136
cat >>conftest.$ac_ext <<_ACEOF
3137
/* end confdefs.h. */
3138
#include <ac_nonexistent.h>
3140
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143
grep -v '^ *+' conftest.er1 >conftest.err
3145
cat conftest.err >&5
3146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147
(exit $ac_status); } >/dev/null; then
3148
if test -s conftest.err; then
3149
ac_cpp_err=$ac_c_preproc_warn_flag
3150
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3157
if test -z "$ac_cpp_err"; then
3158
# Broken: success on invalid input.
3161
echo "$as_me: failed program was:" >&5
3162
sed 's/^/| /' conftest.$ac_ext >&5
3164
# Passes both tests.
3168
rm -f conftest.err conftest.$ac_ext
3171
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3172
rm -f conftest.err conftest.$ac_ext
3173
if $ac_preproc_ok; then
3185
echo "$as_me:$LINENO: result: $CPP" >&5
3186
echo "${ECHO_T}$CPP" >&6
3188
for ac_c_preproc_warn_flag in '' yes
3190
# Use a header file that comes with gcc, so configuring glibc
3191
# with a fresh cross-compiler works.
3192
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3193
# <limits.h> exists even on freestanding compilers.
3194
# On the NeXT, cc -E runs the code through the compiler's parser,
3195
# not just through cpp. "Syntax error" is here to catch this case.
3196
cat >conftest.$ac_ext <<_ACEOF
3199
cat confdefs.h >>conftest.$ac_ext
3200
cat >>conftest.$ac_ext <<_ACEOF
3201
/* end confdefs.h. */
3203
# include <limits.h>
3205
# include <assert.h>
3209
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3212
grep -v '^ *+' conftest.er1 >conftest.err
3214
cat conftest.err >&5
3215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
(exit $ac_status); } >/dev/null; then
3217
if test -s conftest.err; then
3218
ac_cpp_err=$ac_c_preproc_warn_flag
3219
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3226
if test -z "$ac_cpp_err"; then
3229
echo "$as_me: failed program was:" >&5
3230
sed 's/^/| /' conftest.$ac_ext >&5
3232
# Broken: fails on valid input.
3235
rm -f conftest.err conftest.$ac_ext
3237
# OK, works on sane cases. Now check whether non-existent headers
3238
# can be detected and how.
3239
cat >conftest.$ac_ext <<_ACEOF
3242
cat confdefs.h >>conftest.$ac_ext
3243
cat >>conftest.$ac_ext <<_ACEOF
3244
/* end confdefs.h. */
3245
#include <ac_nonexistent.h>
3247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3248
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250
grep -v '^ *+' conftest.er1 >conftest.err
3252
cat conftest.err >&5
3253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
(exit $ac_status); } >/dev/null; then
3255
if test -s conftest.err; then
3256
ac_cpp_err=$ac_c_preproc_warn_flag
3257
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264
if test -z "$ac_cpp_err"; then
3265
# Broken: success on invalid input.
3268
echo "$as_me: failed program was:" >&5
3269
sed 's/^/| /' conftest.$ac_ext >&5
3271
# Passes both tests.
3275
rm -f conftest.err conftest.$ac_ext
3278
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279
rm -f conftest.err conftest.$ac_ext
3280
if $ac_preproc_ok; then
3283
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3284
See \`config.log' for more details." >&5
3285
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3286
See \`config.log' for more details." >&2;}
3287
{ (exit 1); exit 1; }; }
3291
ac_cpp='$CPP $CPPFLAGS'
3292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
echo "$as_me:$LINENO: checking for egrep" >&5
3298
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3299
if test "${ac_cv_prog_egrep+set}" = set; then
3300
echo $ECHO_N "(cached) $ECHO_C" >&6
3302
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3303
then ac_cv_prog_egrep='grep -E'
3304
else ac_cv_prog_egrep='egrep'
3307
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3308
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3309
EGREP=$ac_cv_prog_egrep
3312
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3313
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3314
if test "${ac_cv_header_stdc+set}" = set; then
3315
echo $ECHO_N "(cached) $ECHO_C" >&6
3317
cat >conftest.$ac_ext <<_ACEOF
3320
cat confdefs.h >>conftest.$ac_ext
3321
cat >>conftest.$ac_ext <<_ACEOF
3322
/* end confdefs.h. */
3336
rm -f conftest.$ac_objext
3337
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338
(eval $ac_compile) 2>conftest.er1
3340
grep -v '^ *+' conftest.er1 >conftest.err
3342
cat conftest.err >&5
3343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
(exit $ac_status); } &&
3345
{ ac_try='test -z "$ac_c_werror_flag"
3346
|| test ! -s conftest.err'
3347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351
(exit $ac_status); }; } &&
3352
{ ac_try='test -s conftest.$ac_objext'
3353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357
(exit $ac_status); }; }; then
3358
ac_cv_header_stdc=yes
3360
echo "$as_me: failed program was:" >&5
3361
sed 's/^/| /' conftest.$ac_ext >&5
3363
ac_cv_header_stdc=no
3365
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3367
if test $ac_cv_header_stdc = yes; then
3368
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3369
cat >conftest.$ac_ext <<_ACEOF
3372
cat confdefs.h >>conftest.$ac_ext
3373
cat >>conftest.$ac_ext <<_ACEOF
3374
/* end confdefs.h. */
3378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379
$EGREP "memchr" >/dev/null 2>&1; then
3382
ac_cv_header_stdc=no
3388
if test $ac_cv_header_stdc = yes; then
3389
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390
cat >conftest.$ac_ext <<_ACEOF
3393
cat confdefs.h >>conftest.$ac_ext
3394
cat >>conftest.$ac_ext <<_ACEOF
3395
/* end confdefs.h. */
3399
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3400
$EGREP "free" >/dev/null 2>&1; then
3403
ac_cv_header_stdc=no
3409
if test $ac_cv_header_stdc = yes; then
3410
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3411
if test "$cross_compiling" = yes; then
3414
cat >conftest.$ac_ext <<_ACEOF
3417
cat confdefs.h >>conftest.$ac_ext
3418
cat >>conftest.$ac_ext <<_ACEOF
3419
/* end confdefs.h. */
3421
#if ((' ' & 0x0FF) == 0x020)
3422
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3423
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3425
# define ISLOWER(c) \
3426
(('a' <= (c) && (c) <= 'i') \
3427
|| ('j' <= (c) && (c) <= 'r') \
3428
|| ('s' <= (c) && (c) <= 'z'))
3429
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3432
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3437
for (i = 0; i < 256; i++)
3438
if (XOR (islower (i), ISLOWER (i))
3439
|| toupper (i) != TOUPPER (i))
3444
rm -f conftest$ac_exeext
3445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3446
(eval $ac_link) 2>&5
3448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454
(exit $ac_status); }; }; then
3457
echo "$as_me: program exited with status $ac_status" >&5
3458
echo "$as_me: failed program was:" >&5
3459
sed 's/^/| /' conftest.$ac_ext >&5
3462
ac_cv_header_stdc=no
3464
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3468
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3469
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3470
if test $ac_cv_header_stdc = yes; then
3472
cat >>confdefs.h <<\_ACEOF
3473
#define STDC_HEADERS 1
3478
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3488
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3489
inttypes.h stdint.h unistd.h
3491
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3492
echo "$as_me:$LINENO: checking for $ac_header" >&5
3493
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495
echo $ECHO_N "(cached) $ECHO_C" >&6
3497
cat >conftest.$ac_ext <<_ACEOF
3500
cat confdefs.h >>conftest.$ac_ext
3501
cat >>conftest.$ac_ext <<_ACEOF
3502
/* end confdefs.h. */
3503
$ac_includes_default
3505
#include <$ac_header>
3507
rm -f conftest.$ac_objext
3508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509
(eval $ac_compile) 2>conftest.er1
3511
grep -v '^ *+' conftest.er1 >conftest.err
3513
cat conftest.err >&5
3514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
(exit $ac_status); } &&
3516
{ ac_try='test -z "$ac_c_werror_flag"
3517
|| test ! -s conftest.err'
3518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
(exit $ac_status); }; } &&
3523
{ ac_try='test -s conftest.$ac_objext'
3524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528
(exit $ac_status); }; }; then
3529
eval "$as_ac_Header=yes"
3531
echo "$as_me: failed program was:" >&5
3532
sed 's/^/| /' conftest.$ac_ext >&5
3534
eval "$as_ac_Header=no"
3536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3539
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3540
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3541
cat >>confdefs.h <<_ACEOF
3542
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3553
for ac_header in fcntl.h sys/ioctl.h unistd.h
3555
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3556
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3557
echo "$as_me:$LINENO: checking for $ac_header" >&5
3558
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3559
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3560
echo $ECHO_N "(cached) $ECHO_C" >&6
3562
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3565
# Is the header compilable?
3566
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3567
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3568
cat >conftest.$ac_ext <<_ACEOF
3571
cat confdefs.h >>conftest.$ac_ext
3572
cat >>conftest.$ac_ext <<_ACEOF
3573
/* end confdefs.h. */
3574
$ac_includes_default
3575
#include <$ac_header>
3577
rm -f conftest.$ac_objext
3578
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579
(eval $ac_compile) 2>conftest.er1
3581
grep -v '^ *+' conftest.er1 >conftest.err
3583
cat conftest.err >&5
3584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
(exit $ac_status); } &&
3586
{ ac_try='test -z "$ac_c_werror_flag"
3587
|| test ! -s conftest.err'
3588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
(exit $ac_status); }; } &&
3593
{ ac_try='test -s conftest.$ac_objext'
3594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598
(exit $ac_status); }; }; then
3599
ac_header_compiler=yes
3601
echo "$as_me: failed program was:" >&5
3602
sed 's/^/| /' conftest.$ac_ext >&5
3604
ac_header_compiler=no
3606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3608
echo "${ECHO_T}$ac_header_compiler" >&6
3610
# Is the header present?
3611
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3612
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3613
cat >conftest.$ac_ext <<_ACEOF
3616
cat confdefs.h >>conftest.$ac_ext
3617
cat >>conftest.$ac_ext <<_ACEOF
3618
/* end confdefs.h. */
3619
#include <$ac_header>
3621
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3622
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3624
grep -v '^ *+' conftest.er1 >conftest.err
3626
cat conftest.err >&5
3627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628
(exit $ac_status); } >/dev/null; then
3629
if test -s conftest.err; then
3630
ac_cpp_err=$ac_c_preproc_warn_flag
3631
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3638
if test -z "$ac_cpp_err"; then
3639
ac_header_preproc=yes
3641
echo "$as_me: failed program was:" >&5
3642
sed 's/^/| /' conftest.$ac_ext >&5
3644
ac_header_preproc=no
3646
rm -f conftest.err conftest.$ac_ext
3647
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3648
echo "${ECHO_T}$ac_header_preproc" >&6
3650
# So? What about this header?
3651
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3653
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3654
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3655
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3656
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3657
ac_header_preproc=yes
3660
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3661
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3662
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3663
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3664
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3665
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3666
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3667
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3668
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3669
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3670
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3671
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3674
## ------------------------------------------ ##
3675
## Report this to the AC_PACKAGE_NAME lists. ##
3676
## ------------------------------------------ ##
3679
sed "s/^/$as_me: WARNING: /" >&2
3682
echo "$as_me:$LINENO: checking for $ac_header" >&5
3683
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685
echo $ECHO_N "(cached) $ECHO_C" >&6
3687
eval "$as_ac_Header=\$ac_header_preproc"
3689
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3690
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3693
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3694
cat >>confdefs.h <<_ACEOF
3695
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3702
if test x$KLIBC != xyes; then
3704
for ac_header in malloc.h
3706
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3708
echo "$as_me:$LINENO: checking for $ac_header" >&5
3709
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3710
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3711
echo $ECHO_N "(cached) $ECHO_C" >&6
3713
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3716
# Is the header compilable?
3717
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3718
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3719
cat >conftest.$ac_ext <<_ACEOF
3722
cat confdefs.h >>conftest.$ac_ext
3723
cat >>conftest.$ac_ext <<_ACEOF
3724
/* end confdefs.h. */
3725
$ac_includes_default
3726
#include <$ac_header>
3728
rm -f conftest.$ac_objext
3729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730
(eval $ac_compile) 2>conftest.er1
3732
grep -v '^ *+' conftest.er1 >conftest.err
3734
cat conftest.err >&5
3735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736
(exit $ac_status); } &&
3737
{ ac_try='test -z "$ac_c_werror_flag"
3738
|| test ! -s conftest.err'
3739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743
(exit $ac_status); }; } &&
3744
{ ac_try='test -s conftest.$ac_objext'
3745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749
(exit $ac_status); }; }; then
3750
ac_header_compiler=yes
3752
echo "$as_me: failed program was:" >&5
3753
sed 's/^/| /' conftest.$ac_ext >&5
3755
ac_header_compiler=no
3757
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3759
echo "${ECHO_T}$ac_header_compiler" >&6
3761
# Is the header present?
3762
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3763
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3764
cat >conftest.$ac_ext <<_ACEOF
3767
cat confdefs.h >>conftest.$ac_ext
3768
cat >>conftest.$ac_ext <<_ACEOF
3769
/* end confdefs.h. */
3770
#include <$ac_header>
3772
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3775
grep -v '^ *+' conftest.er1 >conftest.err
3777
cat conftest.err >&5
3778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
(exit $ac_status); } >/dev/null; then
3780
if test -s conftest.err; then
3781
ac_cpp_err=$ac_c_preproc_warn_flag
3782
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3789
if test -z "$ac_cpp_err"; then
3790
ac_header_preproc=yes
3792
echo "$as_me: failed program was:" >&5
3793
sed 's/^/| /' conftest.$ac_ext >&5
3795
ac_header_preproc=no
3797
rm -f conftest.err conftest.$ac_ext
3798
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3799
echo "${ECHO_T}$ac_header_preproc" >&6
3801
# So? What about this header?
3802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3804
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3805
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3806
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3807
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3808
ac_header_preproc=yes
3811
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3812
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3813
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3814
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3815
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3816
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3817
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3818
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3819
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3820
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3821
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3822
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3825
## ------------------------------------------ ##
3826
## Report this to the AC_PACKAGE_NAME lists. ##
3827
## ------------------------------------------ ##
3830
sed "s/^/$as_me: WARNING: /" >&2
3833
echo "$as_me:$LINENO: checking for $ac_header" >&5
3834
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3835
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836
echo $ECHO_N "(cached) $ECHO_C" >&6
3838
eval "$as_ac_Header=\$ac_header_preproc"
3840
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3841
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3844
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3845
cat >>confdefs.h <<_ACEOF
3846
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3855
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3856
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3857
if test "${ac_cv_c_const+set}" = set; then
3858
echo $ECHO_N "(cached) $ECHO_C" >&6
3860
cat >conftest.$ac_ext <<_ACEOF
3863
cat confdefs.h >>conftest.$ac_ext
3864
cat >>conftest.$ac_ext <<_ACEOF
3865
/* end confdefs.h. */
3870
/* FIXME: Include the comments suggested by Paul. */
3872
/* Ultrix mips cc rejects this. */
3873
typedef int charset[2];
3875
/* SunOS 4.1.1 cc rejects this. */
3876
char const *const *ccp;
3878
/* NEC SVR4.0.2 mips cc rejects this. */
3879
struct point {int x, y;};
3880
static struct point const zero = {0,0};
3881
/* AIX XL C 1.02.0.0 rejects this.
3882
It does not let you subtract one const X* pointer from another in
3883
an arm of an if-expression whose if-part is not a constant
3885
const char *g = "string";
3886
ccp = &g + (g ? g-g : 0);
3887
/* HPUX 7.0 cc rejects these. */
3890
ccp = (char const *const *) p;
3891
{ /* SCO 3.2v4 cc rejects this. */
3893
char const *s = 0 ? (char *) 0 : (char const *) 0;
3897
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3899
const int *foo = &x[0];
3902
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3903
typedef const int *iptr;
3907
{ /* AIX XL C 1.02.0.0 rejects this saying
3908
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3909
struct s { int j; const int *ap[3]; };
3910
struct s *b; b->j = 5;
3912
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3921
rm -f conftest.$ac_objext
3922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923
(eval $ac_compile) 2>conftest.er1
3925
grep -v '^ *+' conftest.er1 >conftest.err
3927
cat conftest.err >&5
3928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
(exit $ac_status); } &&
3930
{ ac_try='test -z "$ac_c_werror_flag"
3931
|| test ! -s conftest.err'
3932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
(exit $ac_status); }; } &&
3937
{ ac_try='test -s conftest.$ac_objext'
3938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
(exit $ac_status); }; }; then
3945
echo "$as_me: failed program was:" >&5
3946
sed 's/^/| /' conftest.$ac_ext >&5
3950
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3953
echo "${ECHO_T}$ac_cv_c_const" >&6
3954
if test $ac_cv_c_const = no; then
3956
cat >>confdefs.h <<\_ACEOF
3962
echo "$as_me:$LINENO: checking for inline" >&5
3963
echo $ECHO_N "checking for inline... $ECHO_C" >&6
3964
if test "${ac_cv_c_inline+set}" = set; then
3965
echo $ECHO_N "(cached) $ECHO_C" >&6
3968
for ac_kw in inline __inline__ __inline; do
3969
cat >conftest.$ac_ext <<_ACEOF
3972
cat confdefs.h >>conftest.$ac_ext
3973
cat >>conftest.$ac_ext <<_ACEOF
3974
/* end confdefs.h. */
3977
static $ac_kw foo_t static_foo () {return 0; }
3978
$ac_kw foo_t foo () {return 0; }
3982
rm -f conftest.$ac_objext
3983
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984
(eval $ac_compile) 2>conftest.er1
3986
grep -v '^ *+' conftest.er1 >conftest.err
3988
cat conftest.err >&5
3989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
(exit $ac_status); } &&
3991
{ ac_try='test -z "$ac_c_werror_flag"
3992
|| test ! -s conftest.err'
3993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997
(exit $ac_status); }; } &&
3998
{ ac_try='test -s conftest.$ac_objext'
3999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003
(exit $ac_status); }; }; then
4004
ac_cv_c_inline=$ac_kw; break
4006
echo "$as_me: failed program was:" >&5
4007
sed 's/^/| /' conftest.$ac_ext >&5
4010
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4015
echo "${ECHO_T}$ac_cv_c_inline" >&6
4018
case $ac_cv_c_inline in
4021
case $ac_cv_c_inline in
4023
*) ac_val=$ac_cv_c_inline;;
4025
cat >>confdefs.h <<_ACEOF
4027
#define inline $ac_val
4033
echo "$as_me:$LINENO: checking for off_t" >&5
4034
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4035
if test "${ac_cv_type_off_t+set}" = set; then
4036
echo $ECHO_N "(cached) $ECHO_C" >&6
4038
cat >conftest.$ac_ext <<_ACEOF
4041
cat confdefs.h >>conftest.$ac_ext
4042
cat >>conftest.$ac_ext <<_ACEOF
4043
/* end confdefs.h. */
4044
$ac_includes_default
4056
rm -f conftest.$ac_objext
4057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058
(eval $ac_compile) 2>conftest.er1
4060
grep -v '^ *+' conftest.er1 >conftest.err
4062
cat conftest.err >&5
4063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
(exit $ac_status); } &&
4065
{ ac_try='test -z "$ac_c_werror_flag"
4066
|| test ! -s conftest.err'
4067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071
(exit $ac_status); }; } &&
4072
{ ac_try='test -s conftest.$ac_objext'
4073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077
(exit $ac_status); }; }; then
4078
ac_cv_type_off_t=yes
4080
echo "$as_me: failed program was:" >&5
4081
sed 's/^/| /' conftest.$ac_ext >&5
4085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4087
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4088
echo "${ECHO_T}$ac_cv_type_off_t" >&6
4089
if test $ac_cv_type_off_t = yes; then
4093
cat >>confdefs.h <<_ACEOF
4099
echo "$as_me:$LINENO: checking for pid_t" >&5
4100
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4101
if test "${ac_cv_type_pid_t+set}" = set; then
4102
echo $ECHO_N "(cached) $ECHO_C" >&6
4104
cat >conftest.$ac_ext <<_ACEOF
4107
cat confdefs.h >>conftest.$ac_ext
4108
cat >>conftest.$ac_ext <<_ACEOF
4109
/* end confdefs.h. */
4110
$ac_includes_default
4122
rm -f conftest.$ac_objext
4123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124
(eval $ac_compile) 2>conftest.er1
4126
grep -v '^ *+' conftest.er1 >conftest.err
4128
cat conftest.err >&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); } &&
4131
{ ac_try='test -z "$ac_c_werror_flag"
4132
|| test ! -s conftest.err'
4133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
(exit $ac_status); }; } &&
4138
{ ac_try='test -s conftest.$ac_objext'
4139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); }; }; then
4144
ac_cv_type_pid_t=yes
4146
echo "$as_me: failed program was:" >&5
4147
sed 's/^/| /' conftest.$ac_ext >&5
4151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4154
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4155
if test $ac_cv_type_pid_t = yes; then
4159
cat >>confdefs.h <<_ACEOF
4165
echo "$as_me:$LINENO: checking for size_t" >&5
4166
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4167
if test "${ac_cv_type_size_t+set}" = set; then
4168
echo $ECHO_N "(cached) $ECHO_C" >&6
4170
cat >conftest.$ac_ext <<_ACEOF
4173
cat confdefs.h >>conftest.$ac_ext
4174
cat >>conftest.$ac_ext <<_ACEOF
4175
/* end confdefs.h. */
4176
$ac_includes_default
4182
if (sizeof (size_t))
4188
rm -f conftest.$ac_objext
4189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190
(eval $ac_compile) 2>conftest.er1
4192
grep -v '^ *+' conftest.er1 >conftest.err
4194
cat conftest.err >&5
4195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196
(exit $ac_status); } &&
4197
{ ac_try='test -z "$ac_c_werror_flag"
4198
|| test ! -s conftest.err'
4199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
(exit $ac_status); }; } &&
4204
{ ac_try='test -s conftest.$ac_objext'
4205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); }; }; then
4210
ac_cv_type_size_t=yes
4212
echo "$as_me: failed program was:" >&5
4213
sed 's/^/| /' conftest.$ac_ext >&5
4215
ac_cv_type_size_t=no
4217
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4220
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4221
if test $ac_cv_type_size_t = yes; then
4225
cat >>confdefs.h <<_ACEOF
4226
#define size_t unsigned
4232
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4233
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4234
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4235
echo $ECHO_N "(cached) $ECHO_C" >&6
4237
cat >conftest.$ac_ext <<_ACEOF
4240
cat confdefs.h >>conftest.$ac_ext
4241
cat >>conftest.$ac_ext <<_ACEOF
4242
/* end confdefs.h. */
4243
$ac_includes_default
4247
static struct stat ac_aggr;
4248
if (ac_aggr.st_rdev)
4254
rm -f conftest.$ac_objext
4255
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256
(eval $ac_compile) 2>conftest.er1
4258
grep -v '^ *+' conftest.er1 >conftest.err
4260
cat conftest.err >&5
4261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
(exit $ac_status); } &&
4263
{ ac_try='test -z "$ac_c_werror_flag"
4264
|| test ! -s conftest.err'
4265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); }; } &&
4270
{ ac_try='test -s conftest.$ac_objext'
4271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
(exit $ac_status); }; }; then
4276
ac_cv_member_struct_stat_st_rdev=yes
4278
echo "$as_me: failed program was:" >&5
4279
sed 's/^/| /' conftest.$ac_ext >&5
4281
cat >conftest.$ac_ext <<_ACEOF
4284
cat confdefs.h >>conftest.$ac_ext
4285
cat >>conftest.$ac_ext <<_ACEOF
4286
/* end confdefs.h. */
4287
$ac_includes_default
4291
static struct stat ac_aggr;
4292
if (sizeof ac_aggr.st_rdev)
4298
rm -f conftest.$ac_objext
4299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300
(eval $ac_compile) 2>conftest.er1
4302
grep -v '^ *+' conftest.er1 >conftest.err
4304
cat conftest.err >&5
4305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
(exit $ac_status); } &&
4307
{ ac_try='test -z "$ac_c_werror_flag"
4308
|| test ! -s conftest.err'
4309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
(exit $ac_status); }; } &&
4314
{ ac_try='test -s conftest.$ac_objext'
4315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
(exit $ac_status); }; }; then
4320
ac_cv_member_struct_stat_st_rdev=yes
4322
echo "$as_me: failed program was:" >&5
4323
sed 's/^/| /' conftest.$ac_ext >&5
4325
ac_cv_member_struct_stat_st_rdev=no
4327
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4329
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4332
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4333
if test $ac_cv_member_struct_stat_st_rdev = yes; then
4335
cat >>confdefs.h <<_ACEOF
4336
#define HAVE_STRUCT_STAT_ST_RDEV 1
4340
cat >>confdefs.h <<\_ACEOF
4341
#define HAVE_ST_RDEV 1
4347
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4348
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4349
if test "${ac_cv_header_time+set}" = set; then
4350
echo $ECHO_N "(cached) $ECHO_C" >&6
4352
cat >conftest.$ac_ext <<_ACEOF
4355
cat confdefs.h >>conftest.$ac_ext
4356
cat >>conftest.$ac_ext <<_ACEOF
4357
/* end confdefs.h. */
4358
#include <sys/types.h>
4359
#include <sys/time.h>
4365
if ((struct tm *) 0)
4371
rm -f conftest.$ac_objext
4372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373
(eval $ac_compile) 2>conftest.er1
4375
grep -v '^ *+' conftest.er1 >conftest.err
4377
cat conftest.err >&5
4378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379
(exit $ac_status); } &&
4380
{ ac_try='test -z "$ac_c_werror_flag"
4381
|| test ! -s conftest.err'
4382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386
(exit $ac_status); }; } &&
4387
{ ac_try='test -s conftest.$ac_objext'
4388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
(exit $ac_status); }; }; then
4393
ac_cv_header_time=yes
4395
echo "$as_me: failed program was:" >&5
4396
sed 's/^/| /' conftest.$ac_ext >&5
4398
ac_cv_header_time=no
4400
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4403
echo "${ECHO_T}$ac_cv_header_time" >&6
4404
if test $ac_cv_header_time = yes; then
4406
cat >>confdefs.h <<\_ACEOF
4407
#define TIME_WITH_SYS_TIME 1
4413
if test x$KLIBC != xyes; then
4417
CLDFLAGS="-Wl,--version-script,.export.sym"
4418
LD_DEPS=".export.sym"
4426
# Check whether --with-user or --without-user was given.
4427
if test "${with_user+set}" = set; then
4428
withval="$with_user"
4435
# Check whether --with-group or --without-group was given.
4436
if test "${with_group+set}" = set; then
4437
withval="$with_group"
4443
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
4444
# Check whether --enable-debug or --disable-debug was given.
4445
if test "${enable_debug+set}" = set; then
4446
enableval="$enable_debug"
4452
echo "$ac_t""$DEBUG" 1>&6
4454
echo $ac_n "checking whether to enable malloc debugging""... $ac_c" 1>&6
4455
# Check whether --enable-debug_malloc or --disable-debug_malloc was given.
4456
if test "${enable_debug_malloc+set}" = set; then
4457
enableval="$enable_debug_malloc"
4463
echo "$ac_t""$DEBUG" 1>&6
4465
# Check whether --enable-dietlibc or --disable-dietlibc was given.
4466
if test "${enable_dietlibc+set}" = set; then
4467
enableval="$enable_dietlibc"
4473
if test x$DIETLIBC = xyes; then
4474
if test x$KLIBC = xyes; then
4475
{ { echo "$as_me:$LINENO: error: You can' enable both dietlibc and klibc!" >&5
4476
echo "$as_me: error: You can' enable both dietlibc and klibc!" >&2;}
4477
{ (exit 1); exit 1; }; }
4484
# Check whether --enable-jobs or --disable-jobs was given.
4485
if test "${enable_jobs+set}" = set; then
4486
enableval="$enable_jobs"
4492
# Check whether --enable-libselinux or --disable-libselinux was given.
4493
if test "${enable_libselinux+set}" = set; then
4494
enableval="$enable_libselinux"
4495
LIBSELINUX=$enableval
4500
# Check whether --enable-libsepol or --disable-libsepol was given.
4501
if test "${enable_libsepol+set}" = set; then
4502
enableval="$enable_libsepol"
4508
# Check whether --enable-mini or --disable-mini was given.
4509
if test "${enable_mini+set}" = set; then
4510
enableval="$enable_mini"
4511
DMRAID_MINI=$enableval
4516
echo $ac_n "checking whether to disable native metadata logging""... $ac_c" 1>&6
4517
# Check whether --enable-native_log or --disable-native_log was given.
4518
if test "${enable_native_log+set}" = set; then
4519
enableval="$enable_native_log"
4521
DMRAID_NATIVE_LOG=$enableval
4523
DMRAID_NATIVE_LOG=yes
4525
echo "$ac_t""$DMRAID_NATIVE_LOG" 1>&6
4527
# Check whether --enable-static_link or --disable-static_link was given.
4528
if test "${enable_static_link+set}" = set; then
4529
enableval="$enable_static_link"
4530
STATIC_LINK=$enableval
4535
# Check whether --enable-shared_lib or --disable-shared_lib was given.
4536
if test "${enable_shared_lib+set}" = set; then
4537
enableval="$enable_shared_lib"
4543
echo $ac_n "checking whether to disable testing with mapped devices""... $ac_c" 1>&6
4544
# Check whether --enable-testing or --disable-testing was given.
4545
if test "${enable_testing+set}" = set; then
4546
enableval="$enable_testing"
4553
echo "$ac_t""$DEBUG" 1>&6
4555
if test x$LIB_SO = xyes; then
4559
if test x$STATIC_LINK = xyes; then
4561
if test x$LIB_SO = xyes; then
4562
{ { echo "$as_me:$LINENO: error: You can' enable both shared_lib and static_link!" >&5
4563
echo "$as_me: error: You can' enable both shared_lib and static_link!" >&2;}
4564
{ (exit 1); exit 1; }; }
4569
if test x$DMRAID_MINI = xyes; then
4570
CFLAGS="$CFLAGS -DDMRAID_MINI"
4571
FLAVOUR="${FLAVOUR}mini "
4573
if test x$DMRAID_NATIVE_LOG = xno; then
4574
FLAVOUR="${FLAVOUR}no_native_log "
4576
CFLAGS="$CFLAGS -DDMRAID_NATIVE_LOG"
4580
if test x$DEBUG = xyes; then
4581
FLAVOUR="${FLAVOUR}debug "
4584
if test x$DEBUG_MALLOC = xyes; then
4585
FLAVOUR="${FLAVOUR}debug_malloc "
4588
if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
4589
then exec_prefix="";
4592
if test $ac_cv_c_compiler_gnu = yes; then
4593
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4594
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4595
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4596
echo $ECHO_N "(cached) $ECHO_C" >&6
4598
ac_pattern="Autoconf.*'x'"
4599
cat >conftest.$ac_ext <<_ACEOF
4602
cat confdefs.h >>conftest.$ac_ext
4603
cat >>conftest.$ac_ext <<_ACEOF
4604
/* end confdefs.h. */
4608
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609
$EGREP "$ac_pattern" >/dev/null 2>&1; then
4610
ac_cv_prog_gcc_traditional=yes
4612
ac_cv_prog_gcc_traditional=no
4617
if test $ac_cv_prog_gcc_traditional = no; then
4618
cat >conftest.$ac_ext <<_ACEOF
4621
cat confdefs.h >>conftest.$ac_ext
4622
cat >>conftest.$ac_ext <<_ACEOF
4623
/* end confdefs.h. */
4627
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628
$EGREP "$ac_pattern" >/dev/null 2>&1; then
4629
ac_cv_prog_gcc_traditional=yes
4635
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4636
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4637
if test $ac_cv_prog_gcc_traditional = yes; then
4638
CC="$CC -traditional"
4642
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4643
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4644
if test "${ac_cv_type_signal+set}" = set; then
4645
echo $ECHO_N "(cached) $ECHO_C" >&6
4647
cat >conftest.$ac_ext <<_ACEOF
4650
cat confdefs.h >>conftest.$ac_ext
4651
cat >>conftest.$ac_ext <<_ACEOF
4652
/* end confdefs.h. */
4653
#include <sys/types.h>
4659
extern "C" void (*signal (int, void (*)(int)))(int);
4661
void (*signal ()) ();
4672
rm -f conftest.$ac_objext
4673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674
(eval $ac_compile) 2>conftest.er1
4676
grep -v '^ *+' conftest.er1 >conftest.err
4678
cat conftest.err >&5
4679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
(exit $ac_status); } &&
4681
{ ac_try='test -z "$ac_c_werror_flag"
4682
|| test ! -s conftest.err'
4683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
(exit $ac_status); }; } &&
4688
{ ac_try='test -s conftest.$ac_objext'
4689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
(exit $ac_status); }; }; then
4694
ac_cv_type_signal=void
4696
echo "$as_me: failed program was:" >&5
4697
sed 's/^/| /' conftest.$ac_ext >&5
4699
ac_cv_type_signal=int
4701
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4704
echo "${ECHO_T}$ac_cv_type_signal" >&6
4706
cat >>confdefs.h <<_ACEOF
4707
#define RETSIGTYPE $ac_cv_type_signal
4712
for ac_func in vprintf
4714
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4715
echo "$as_me:$LINENO: checking for $ac_func" >&5
4716
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4717
if eval "test \"\${$as_ac_var+set}\" = set"; then
4718
echo $ECHO_N "(cached) $ECHO_C" >&6
4720
cat >conftest.$ac_ext <<_ACEOF
4723
cat confdefs.h >>conftest.$ac_ext
4724
cat >>conftest.$ac_ext <<_ACEOF
4725
/* end confdefs.h. */
4726
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4727
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4728
#define $ac_func innocuous_$ac_func
4730
/* System header to define __stub macros and hopefully few prototypes,
4731
which can conflict with char $ac_func (); below.
4732
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733
<limits.h> exists even on freestanding compilers. */
4736
# include <limits.h>
4738
# include <assert.h>
4743
/* Override any gcc2 internal prototype to avoid an error. */
4748
/* We use char because int might match the return type of a gcc2
4749
builtin and then its argument prototype would still apply. */
4751
/* The GNU C library defines this for functions which it implements
4752
to always fail with ENOSYS. Some functions are actually named
4753
something starting with __ and the normal name is an alias. */
4754
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757
char (*f) () = $ac_func;
4766
return f != $ac_func;
4771
rm -f conftest.$ac_objext conftest$ac_exeext
4772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773
(eval $ac_link) 2>conftest.er1
4775
grep -v '^ *+' conftest.er1 >conftest.err
4777
cat conftest.err >&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } &&
4780
{ ac_try='test -z "$ac_c_werror_flag"
4781
|| test ! -s conftest.err'
4782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
(exit $ac_status); }; } &&
4787
{ ac_try='test -s conftest$ac_exeext'
4788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
(exit $ac_status); }; }; then
4793
eval "$as_ac_var=yes"
4795
echo "$as_me: failed program was:" >&5
4796
sed 's/^/| /' conftest.$ac_ext >&5
4798
eval "$as_ac_var=no"
4800
rm -f conftest.err conftest.$ac_objext \
4801
conftest$ac_exeext conftest.$ac_ext
4803
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4804
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4805
if test `eval echo '${'$as_ac_var'}'` = yes; then
4806
cat >>confdefs.h <<_ACEOF
4807
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4810
echo "$as_me:$LINENO: checking for _doprnt" >&5
4811
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4812
if test "${ac_cv_func__doprnt+set}" = set; then
4813
echo $ECHO_N "(cached) $ECHO_C" >&6
4815
cat >conftest.$ac_ext <<_ACEOF
4818
cat confdefs.h >>conftest.$ac_ext
4819
cat >>conftest.$ac_ext <<_ACEOF
4820
/* end confdefs.h. */
4821
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4822
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4823
#define _doprnt innocuous__doprnt
4825
/* System header to define __stub macros and hopefully few prototypes,
4826
which can conflict with char _doprnt (); below.
4827
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828
<limits.h> exists even on freestanding compilers. */
4831
# include <limits.h>
4833
# include <assert.h>
4838
/* Override any gcc2 internal prototype to avoid an error. */
4843
/* We use char because int might match the return type of a gcc2
4844
builtin and then its argument prototype would still apply. */
4846
/* The GNU C library defines this for functions which it implements
4847
to always fail with ENOSYS. Some functions are actually named
4848
something starting with __ and the normal name is an alias. */
4849
#if defined (__stub__doprnt) || defined (__stub____doprnt)
4852
char (*f) () = _doprnt;
4861
return f != _doprnt;
4866
rm -f conftest.$ac_objext conftest$ac_exeext
4867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868
(eval $ac_link) 2>conftest.er1
4870
grep -v '^ *+' conftest.er1 >conftest.err
4872
cat conftest.err >&5
4873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); } &&
4875
{ ac_try='test -z "$ac_c_werror_flag"
4876
|| test ! -s conftest.err'
4877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
(exit $ac_status); }; } &&
4882
{ ac_try='test -s conftest$ac_exeext'
4883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887
(exit $ac_status); }; }; then
4888
ac_cv_func__doprnt=yes
4890
echo "$as_me: failed program was:" >&5
4891
sed 's/^/| /' conftest.$ac_ext >&5
4893
ac_cv_func__doprnt=no
4895
rm -f conftest.err conftest.$ac_objext \
4896
conftest$ac_exeext conftest.$ac_ext
4898
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4899
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4900
if test $ac_cv_func__doprnt = yes; then
4902
cat >>confdefs.h <<\_ACEOF
4903
#define HAVE_DOPRNT 1
4915
for ac_func in mkdir rmdir uname
4917
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4918
echo "$as_me:$LINENO: checking for $ac_func" >&5
4919
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4920
if eval "test \"\${$as_ac_var+set}\" = set"; then
4921
echo $ECHO_N "(cached) $ECHO_C" >&6
4923
cat >conftest.$ac_ext <<_ACEOF
4926
cat confdefs.h >>conftest.$ac_ext
4927
cat >>conftest.$ac_ext <<_ACEOF
4928
/* end confdefs.h. */
4929
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4930
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4931
#define $ac_func innocuous_$ac_func
4933
/* System header to define __stub macros and hopefully few prototypes,
4934
which can conflict with char $ac_func (); below.
4935
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936
<limits.h> exists even on freestanding compilers. */
4939
# include <limits.h>
4941
# include <assert.h>
4946
/* Override any gcc2 internal prototype to avoid an error. */
4951
/* We use char because int might match the return type of a gcc2
4952
builtin and then its argument prototype would still apply. */
4954
/* The GNU C library defines this for functions which it implements
4955
to always fail with ENOSYS. Some functions are actually named
4956
something starting with __ and the normal name is an alias. */
4957
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4960
char (*f) () = $ac_func;
4969
return f != $ac_func;
4974
rm -f conftest.$ac_objext conftest$ac_exeext
4975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976
(eval $ac_link) 2>conftest.er1
4978
grep -v '^ *+' conftest.er1 >conftest.err
4980
cat conftest.err >&5
4981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
(exit $ac_status); } &&
4983
{ ac_try='test -z "$ac_c_werror_flag"
4984
|| test ! -s conftest.err'
4985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
(exit $ac_status); }; } &&
4990
{ ac_try='test -s conftest$ac_exeext'
4991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
(exit $ac_status); }; }; then
4996
eval "$as_ac_var=yes"
4998
echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5001
eval "$as_ac_var=no"
5003
rm -f conftest.err conftest.$ac_objext \
5004
conftest$ac_exeext conftest.$ac_ext
5006
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5007
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5008
if test `eval echo '${'$as_ac_var'}'` = yes; then
5009
cat >>confdefs.h <<_ACEOF
5010
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5017
if test x$READLINE = xyes; then
5018
echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5019
echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5020
if test "${ac_cv_search_tgetent+set}" = set; then
5021
echo $ECHO_N "(cached) $ECHO_C" >&6
5023
ac_func_search_save_LIBS=$LIBS
5024
ac_cv_search_tgetent=no
5025
cat >conftest.$ac_ext <<_ACEOF
5028
cat confdefs.h >>conftest.$ac_ext
5029
cat >>conftest.$ac_ext <<_ACEOF
5030
/* end confdefs.h. */
5032
/* Override any gcc2 internal prototype to avoid an error. */
5036
/* We use char because int might match the return type of a gcc2
5037
builtin and then its argument prototype would still apply. */
5047
rm -f conftest.$ac_objext conftest$ac_exeext
5048
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049
(eval $ac_link) 2>conftest.er1
5051
grep -v '^ *+' conftest.er1 >conftest.err
5053
cat conftest.err >&5
5054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
(exit $ac_status); } &&
5056
{ ac_try='test -z "$ac_c_werror_flag"
5057
|| test ! -s conftest.err'
5058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
(exit $ac_status); }; } &&
5063
{ ac_try='test -s conftest$ac_exeext'
5064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
(exit $ac_status); }; }; then
5069
ac_cv_search_tgetent="none required"
5071
echo "$as_me: failed program was:" >&5
5072
sed 's/^/| /' conftest.$ac_ext >&5
5075
rm -f conftest.err conftest.$ac_objext \
5076
conftest$ac_exeext conftest.$ac_ext
5077
if test "$ac_cv_search_tgetent" = no; then
5078
for ac_lib in ncurses curses termcap termlib; do
5079
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5080
cat >conftest.$ac_ext <<_ACEOF
5083
cat confdefs.h >>conftest.$ac_ext
5084
cat >>conftest.$ac_ext <<_ACEOF
5085
/* end confdefs.h. */
5087
/* Override any gcc2 internal prototype to avoid an error. */
5091
/* We use char because int might match the return type of a gcc2
5092
builtin and then its argument prototype would still apply. */
5102
rm -f conftest.$ac_objext conftest$ac_exeext
5103
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104
(eval $ac_link) 2>conftest.er1
5106
grep -v '^ *+' conftest.er1 >conftest.err
5108
cat conftest.err >&5
5109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110
(exit $ac_status); } &&
5111
{ ac_try='test -z "$ac_c_werror_flag"
5112
|| test ! -s conftest.err'
5113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
(exit $ac_status); }; } &&
5118
{ ac_try='test -s conftest$ac_exeext'
5119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123
(exit $ac_status); }; }; then
5124
ac_cv_search_tgetent="-l$ac_lib"
5127
echo "$as_me: failed program was:" >&5
5128
sed 's/^/| /' conftest.$ac_ext >&5
5131
rm -f conftest.err conftest.$ac_objext \
5132
conftest$ac_exeext conftest.$ac_ext
5135
LIBS=$ac_func_search_save_LIBS
5137
echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5138
echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5139
if test "$ac_cv_search_tgetent" != no; then
5140
test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5143
{ { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
5144
--enable-readline option (which is enabled by default). Either disable readline
5145
support with --disable-readline or download and install termcap from:
5146
ftp.gnu.org/gnu/termcap
5147
Note: if you are using precompiled packages you will also need the development
5148
package as well (which may be called termcap-devel or something similar).
5149
Note: (n)curses also seems to work as a substitute for termcap. This was
5150
not found either - but you could try installing that as well.
5152
echo "$as_me: error: termcap could not be found which is required for the
5153
--enable-readline option (which is enabled by default). Either disable readline
5154
support with --disable-readline or download and install termcap from:
5155
ftp.gnu.org/gnu/termcap
5156
Note: if you are using precompiled packages you will also need the development
5157
package as well (which may be called termcap-devel or something similar).
5158
Note: (n)curses also seems to work as a substitute for termcap. This was
5159
not found either - but you could try installing that as well.
5161
{ (exit 1); exit 1; }; }
5168
if test x$KLIBC != xyes; then
5170
for ac_header in getopt.h
5172
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5173
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174
echo "$as_me:$LINENO: checking for $ac_header" >&5
5175
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177
echo $ECHO_N "(cached) $ECHO_C" >&6
5179
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182
# Is the header compilable?
5183
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5184
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5185
cat >conftest.$ac_ext <<_ACEOF
5188
cat confdefs.h >>conftest.$ac_ext
5189
cat >>conftest.$ac_ext <<_ACEOF
5190
/* end confdefs.h. */
5191
$ac_includes_default
5192
#include <$ac_header>
5194
rm -f conftest.$ac_objext
5195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196
(eval $ac_compile) 2>conftest.er1
5198
grep -v '^ *+' conftest.er1 >conftest.err
5200
cat conftest.err >&5
5201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
(exit $ac_status); } &&
5203
{ ac_try='test -z "$ac_c_werror_flag"
5204
|| test ! -s conftest.err'
5205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209
(exit $ac_status); }; } &&
5210
{ ac_try='test -s conftest.$ac_objext'
5211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215
(exit $ac_status); }; }; then
5216
ac_header_compiler=yes
5218
echo "$as_me: failed program was:" >&5
5219
sed 's/^/| /' conftest.$ac_ext >&5
5221
ac_header_compiler=no
5223
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225
echo "${ECHO_T}$ac_header_compiler" >&6
5227
# Is the header present?
5228
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5230
cat >conftest.$ac_ext <<_ACEOF
5233
cat confdefs.h >>conftest.$ac_ext
5234
cat >>conftest.$ac_ext <<_ACEOF
5235
/* end confdefs.h. */
5236
#include <$ac_header>
5238
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241
grep -v '^ *+' conftest.er1 >conftest.err
5243
cat conftest.err >&5
5244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245
(exit $ac_status); } >/dev/null; then
5246
if test -s conftest.err; then
5247
ac_cpp_err=$ac_c_preproc_warn_flag
5248
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5255
if test -z "$ac_cpp_err"; then
5256
ac_header_preproc=yes
5258
echo "$as_me: failed program was:" >&5
5259
sed 's/^/| /' conftest.$ac_ext >&5
5261
ac_header_preproc=no
5263
rm -f conftest.err conftest.$ac_ext
5264
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5265
echo "${ECHO_T}$ac_header_preproc" >&6
5267
# So? What about this header?
5268
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5270
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5271
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5272
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5273
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5274
ac_header_preproc=yes
5277
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5278
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5279
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5280
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5281
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5282
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5283
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5284
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5285
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5287
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5288
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5291
## ------------------------------------------ ##
5292
## Report this to the AC_PACKAGE_NAME lists. ##
5293
## ------------------------------------------ ##
5296
sed "s/^/$as_me: WARNING: /" >&2
5299
echo "$as_me:$LINENO: checking for $ac_header" >&5
5300
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5301
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5302
echo $ECHO_N "(cached) $ECHO_C" >&6
5304
eval "$as_ac_Header=\$ac_header_preproc"
5306
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5307
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5310
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5311
cat >>confdefs.h <<_ACEOF
5312
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5314
CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
5321
if test "-f tools/VERSION"; then
5322
DMRAID_VERSION="`cat tools/VERSION`"
5324
DMRAID_VERSION="Unknown"
5327
if test "-f lib/version.h"; then
5328
DMRAID_LIB_VERSION="`sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[^_].*"\(.*\)"/\2/p' lib/version.h`"
5330
DMRAID_LIB_VERSION="Unknown"
5354
ac_config_files="$ac_config_files include/Makefile lib/Makefile man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
5355
cat >confcache <<\_ACEOF
5356
# This file is a shell script that caches the results of configure
5357
# tests run on this system so they can be shared between configure
5358
# scripts and configure runs, see configure's option --config-cache.
5359
# It is not useful on other systems. If it contains results you don't
5360
# want to keep, you may remove or edit it.
5362
# config.status only pays attention to the cache file if you give it
5363
# the --recheck option to rerun configure.
5365
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5366
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5371
# The following way of writing the cache mishandles newlines in values,
5372
# but we know of no workaround that is simple, portable, and efficient.
5373
# So, don't put newlines in cache variables' values.
5374
# Ultrix sh set writes to stderr and can't be redirected directly,
5375
# and sets the high bit in the cache file unless we assign to the vars.
5378
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5380
# `set' does not quote correctly, so add quotes (double-quote
5381
# substitution turns \\\\ into \\, and sed turns \\ into \).
5384
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5387
# `set' quotes correctly as required by POSIX, so do not add quotes.
5389
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5396
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5398
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5400
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5401
if test -w $cache_file; then
5402
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5403
cat confcache >$cache_file
5405
echo "not updating unwritable cache $cache_file"
5410
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5411
# Let make expand exec_prefix.
5412
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5414
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5415
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5416
# trailing colons and then remove the whole line if VPATH becomes empty
5417
# (actually we leave an empty line to preserve line numbers).
5418
if test "x$srcdir" = x.; then
5419
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5420
s/:*\$(srcdir):*/:/;
5421
s/:*\${srcdir}:*/:/;
5423
s/^\([^=]*=[ ]*\):*/\1/;
5429
# Transform confdefs.h into DEFS.
5430
# Protect against shell expansion while executing Makefile rules.
5431
# Protect against Makefile macro expansion.
5433
# If the first sed substitution is executed (which looks for macros that
5434
# take arguments), then we branch to the quote section. Otherwise,
5435
# look for a macro that doesn't take arguments.
5436
cat >confdef2opt.sed <<\_ACEOF
5439
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5441
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5445
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5451
# We use echo to avoid assuming a particular line-breaking character.
5452
# The extra dot is to prevent the shell from consuming trailing
5453
# line-breaks from the sub-command output. A line-break within
5454
# single-quotes doesn't work because, if this script is created in a
5455
# platform that uses two characters for line-breaks (e.g., DOS), tr
5457
ac_LF_and_DOT=`echo; echo .`
5458
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5459
rm -f confdef2opt.sed
5464
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5465
# 1. Remove the extension, and $U if already installed.
5466
ac_i=`echo "$ac_i" |
5467
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5469
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5470
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5474
LTLIBOBJS=$ac_ltlibobjs
5478
: ${CONFIG_STATUS=./config.status}
5479
ac_clean_files_save=$ac_clean_files
5480
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5481
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5482
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5483
cat >$CONFIG_STATUS <<_ACEOF
5485
# Generated by $as_me.
5486
# Run this file to recreate the current configuration.
5487
# Compiler output produced by configure, useful for debugging
5488
# configure, is in config.log if it exists.
5493
SHELL=\${CONFIG_SHELL-$SHELL}
5496
cat >>$CONFIG_STATUS <<\_ACEOF
5497
## --------------------- ##
5498
## M4sh Initialization. ##
5499
## --------------------- ##
5501
# Be Bourne compatible
5502
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5505
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5506
# is contrary to our usage. Disable this feature.
5507
alias -g '${1+"$@"}'='"$@"'
5508
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5511
DUALCASE=1; export DUALCASE # for MKS sh
5513
# Support unset when possible.
5514
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5521
# Work around bugs in pre-3.0 UWIN ksh.
5522
$as_unset ENV MAIL MAILPATH
5529
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5530
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5531
LC_TELEPHONE LC_TIME
5533
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5534
eval $as_var=C; export $as_var
5540
# Required to use basename.
5541
if expr a : '\(a\)' >/dev/null 2>&1; then
5547
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5548
as_basename=basename
5554
# Name of the executable.
5555
as_me=`$as_basename "$0" ||
5556
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5557
X"$0" : 'X\(//\)$' \| \
5558
X"$0" : 'X\(/\)$' \| \
5559
. : '\(.\)' 2>/dev/null ||
5561
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5562
/^X\/\(\/\/\)$/{ s//\1/; q; }
5563
/^X\/\(\/\).*/{ s//\1/; q; }
5567
# PATH needs CR, and LINENO needs CR and PATH.
5568
# Avoid depending upon Character Ranges.
5569
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5570
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5571
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5572
as_cr_digits='0123456789'
5573
as_cr_alnum=$as_cr_Letters$as_cr_digits
5575
# The user is always right.
5576
if test "${PATH_SEPARATOR+set}" != set; then
5577
echo "#! /bin/sh" >conf$$.sh
5578
echo "exit 0" >>conf$$.sh
5580
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5591
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5592
test "x$as_lineno_1" != "x$as_lineno_2" &&
5593
test "x$as_lineno_3" = "x$as_lineno_2" || {
5594
# Find who we are. Look in the path if we contain no path at all
5597
*[\\/]* ) as_myself=$0 ;;
5598
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602
test -z "$as_dir" && as_dir=.
5603
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5608
# We did not find ourselves, most probably we were run as `sh COMMAND'
5609
# in which case we are not to be found in the path.
5610
if test "x$as_myself" = x; then
5613
if test ! -f "$as_myself"; then
5614
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5615
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5616
{ (exit 1); exit 1; }; }
5618
case $CONFIG_SHELL in
5620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5624
test -z "$as_dir" && as_dir=.
5625
for as_base in sh bash ksh sh5; do
5628
if ("$as_dir/$as_base" -c '
5631
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5632
test "x$as_lineno_1" != "x$as_lineno_2" &&
5633
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5634
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5635
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5636
CONFIG_SHELL=$as_dir/$as_base
5638
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5646
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5647
# uniformly replaced by the line number. The first 'sed' inserts a
5648
# line-number line before each line; the second 'sed' does the real
5649
# work. The second script uses 'N' to pair each line-number line
5650
# with the numbered line, and appends trailing '-' during
5651
# substitution so that $LINENO is not a special case at line end.
5652
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5653
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5654
sed '=' <$as_myself |
5659
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5662
s,^['$as_cr_digits']*\n,,
5664
chmod +x $as_me.lineno ||
5665
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5666
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5667
{ (exit 1); exit 1; }; }
5669
# Don't try to exec as it changes $[0], causing all sort of problems
5670
# (the dirname of $[0] is not the place where we might find the
5671
# original and so on. Autoconf is especially sensible to this).
5673
# Exit status is that of the last command.
5678
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5679
*c*,-n*) ECHO_N= ECHO_C='
5681
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5682
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5685
if expr a : '\(a\)' >/dev/null 2>&1; then
5691
rm -f conf$$ conf$$.exe conf$$.file
5693
if ln -s conf$$.file conf$$ 2>/dev/null; then
5694
# We could just check for DJGPP; but this test a) works b) is more generic
5695
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5696
if test -f conf$$.exe; then
5697
# Don't use ln at all; we don't have any links
5702
elif ln conf$$.file conf$$ 2>/dev/null; then
5707
rm -f conf$$ conf$$.exe conf$$.file
5709
if mkdir -p . 2>/dev/null; then
5712
test -d ./-p && rmdir ./-p
5716
as_executable_p="test -f"
5718
# Sed expression to map a string onto a valid CPP name.
5719
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5721
# Sed expression to map a string onto a valid variable name.
5722
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5726
# We need space, tab and new line, in precisely that order.
5736
# Open the log real soon, to keep \$[0] and so on meaningful, and to
5737
# report actual input values of CONFIG_FILES etc. instead of their
5738
# values after options handling. Logging --version etc. is OK.
5742
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5743
## Running $as_me. ##
5748
This file was extended by $as_me, which was
5749
generated by GNU Autoconf 2.59. Invocation command line was
5751
CONFIG_FILES = $CONFIG_FILES
5752
CONFIG_HEADERS = $CONFIG_HEADERS
5753
CONFIG_LINKS = $CONFIG_LINKS
5754
CONFIG_COMMANDS = $CONFIG_COMMANDS
5758
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5762
# Files that config.status was made for.
5763
if test -n "$ac_config_files"; then
5764
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5767
if test -n "$ac_config_headers"; then
5768
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5771
if test -n "$ac_config_links"; then
5772
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5775
if test -n "$ac_config_commands"; then
5776
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5779
cat >>$CONFIG_STATUS <<\_ACEOF
5782
\`$as_me' instantiates files from templates according to the
5783
current configuration.
5785
Usage: $0 [OPTIONS] [FILE]...
5787
-h, --help print this help, then exit
5788
-V, --version print version number, then exit
5789
-q, --quiet do not print progress messages
5790
-d, --debug don't remove temporary files
5791
--recheck update $as_me by reconfiguring in the same conditions
5792
--file=FILE[:TEMPLATE]
5793
instantiate the configuration file FILE
5795
Configuration files:
5798
Report bugs to <bug-autoconf@gnu.org>."
5801
cat >>$CONFIG_STATUS <<_ACEOF
5804
configured by $0, generated by GNU Autoconf 2.59,
5805
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5807
Copyright (C) 2003 Free Software Foundation, Inc.
5808
This config.status script is free software; the Free Software Foundation
5809
gives unlimited permission to copy, distribute and modify it."
5814
cat >>$CONFIG_STATUS <<\_ACEOF
5815
# If no file are specified by the user, then we need to provide default
5816
# value. By we need to know if files were specified by the user.
5822
ac_option=`expr "x$1" : 'x\([^=]*\)='`
5823
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5831
*) # This is not an option, so the user has probably given explicit
5834
ac_need_defaults=false;;
5838
# Handling of the options.
5840
cat >>$CONFIG_STATUS <<\_ACEOF
5841
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5843
--version | --vers* | -V )
5844
echo "$ac_cs_version"; exit 0 ;;
5846
# Conflict between --help and --header
5847
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
5848
Try \`$0 --help' for more information." >&5
5849
echo "$as_me: error: ambiguous option: $1
5850
Try \`$0 --help' for more information." >&2;}
5851
{ (exit 1); exit 1; }; };;
5852
--help | --hel | -h )
5853
echo "$ac_cs_usage"; exit 0 ;;
5854
--debug | --d* | -d )
5856
--file | --fil | --fi | --f )
5858
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5859
ac_need_defaults=false;;
5860
--header | --heade | --head | --hea )
5862
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5863
ac_need_defaults=false;;
5864
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5865
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5869
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5870
Try \`$0 --help' for more information." >&5
5871
echo "$as_me: error: unrecognized option: $1
5872
Try \`$0 --help' for more information." >&2;}
5873
{ (exit 1); exit 1; }; } ;;
5875
*) ac_config_targets="$ac_config_targets $1" ;;
5881
ac_configure_extra_args=
5883
if $ac_cs_silent; then
5885
ac_configure_extra_args="$ac_configure_extra_args --silent"
5889
cat >>$CONFIG_STATUS <<_ACEOF
5890
if \$ac_cs_recheck; then
5891
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5892
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5901
cat >>$CONFIG_STATUS <<\_ACEOF
5902
for ac_config_target in $ac_config_targets
5904
case "$ac_config_target" in
5905
# Handling of arguments.
5906
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5907
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5908
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5909
"tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
5910
"tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
5911
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5912
"make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
5913
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5914
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5915
{ (exit 1); exit 1; }; };;
5919
# If the user did not use the arguments to specify the items to instantiate,
5920
# then the envvar interface is used. Set only those that are not.
5921
# We use the long form for the default assignment because of an extremely
5922
# bizarre bug on SunOS 4.1.3.
5923
if $ac_need_defaults; then
5924
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5927
# Have a temporary directory for convenience. Make it in the build tree
5928
# simply because there is no reason to put it here, and in addition,
5929
# creating and moving files from /tmp can sometimes cause problems.
5930
# Create a temporary directory, and hook for its removal unless debugging.
5933
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5934
trap '{ (exit 1); exit 1; }' 1 2 13 15
5937
# Create a (secure) tmp directory for tmp files.
5940
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5941
test -n "$tmp" && test -d "$tmp"
5944
tmp=./confstat$$-$RANDOM
5945
(umask 077 && mkdir $tmp)
5948
echo "$me: cannot create a temporary directory in ." >&2
5949
{ (exit 1); exit 1; }
5954
cat >>$CONFIG_STATUS <<_ACEOF
5957
# CONFIG_FILES section.
5960
# No need to generate the scripts if there are no CONFIG_FILES.
5961
# This happens for instance when ./config.status config.h
5962
if test -n "\$CONFIG_FILES"; then
5963
# Protect against being on the right side of a sed subst in config.status.
5964
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5965
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5966
s,@SHELL@,$SHELL,;t t
5967
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5968
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5969
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5970
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5971
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5973
s,@exec_prefix@,$exec_prefix,;t t
5974
s,@prefix@,$prefix,;t t
5975
s,@program_transform_name@,$program_transform_name,;t t
5976
s,@bindir@,$bindir,;t t
5977
s,@sbindir@,$sbindir,;t t
5978
s,@libexecdir@,$libexecdir,;t t
5979
s,@datadir@,$datadir,;t t
5980
s,@sysconfdir@,$sysconfdir,;t t
5981
s,@sharedstatedir@,$sharedstatedir,;t t
5982
s,@localstatedir@,$localstatedir,;t t
5983
s,@libdir@,$libdir,;t t
5984
s,@includedir@,$includedir,;t t
5985
s,@oldincludedir@,$oldincludedir,;t t
5986
s,@infodir@,$infodir,;t t
5987
s,@mandir@,$mandir,;t t
5988
s,@build_alias@,$build_alias,;t t
5989
s,@host_alias@,$host_alias,;t t
5990
s,@target_alias@,$target_alias,;t t
5992
s,@ECHO_C@,$ECHO_C,;t t
5993
s,@ECHO_N@,$ECHO_N,;t t
5994
s,@ECHO_T@,$ECHO_T,;t t
5996
s,@build@,$build,;t t
5997
s,@build_cpu@,$build_cpu,;t t
5998
s,@build_vendor@,$build_vendor,;t t
5999
s,@build_os@,$build_os,;t t
6001
s,@host_cpu@,$host_cpu,;t t
6002
s,@host_vendor@,$host_vendor,;t t
6003
s,@host_os@,$host_os,;t t
6004
s,@target@,$target,;t t
6005
s,@target_cpu@,$target_cpu,;t t
6006
s,@target_vendor@,$target_vendor,;t t
6007
s,@target_os@,$target_os,;t t
6009
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6010
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6011
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6013
s,@SET_MAKE@,$SET_MAKE,;t t
6014
s,@RANLIB@,$RANLIB,;t t
6015
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6017
s,@KLIBC@,$KLIBC,;t t
6018
s,@KLIBC_PREFIX@,$KLIBC_PREFIX,;t t
6019
s,@KLIBC_BIN_DIR@,$KLIBC_BIN_DIR,;t t
6020
s,@KLIBC_SBIN_DIR@,$KLIBC_SBIN_DIR,;t t
6021
s,@KLIBC_LIB_DIR@,$KLIBC_LIB_DIR,;t t
6022
s,@KLIBC_INCLUDE_DIR@,$KLIBC_INCLUDE_DIR,;t t
6024
s,@CFLAGS@,$CFLAGS,;t t
6025
s,@LDFLAGS@,$LDFLAGS,;t t
6026
s,@CPPFLAGS@,$CPPFLAGS,;t t
6027
s,@ac_ct_CC@,$ac_ct_CC,;t t
6028
s,@EXEEXT@,$EXEEXT,;t t
6029
s,@OBJEXT@,$OBJEXT,;t t
6031
s,@EGREP@,$EGREP,;t t
6032
s,@CLDFLAGS@,$CLDFLAGS,;t t
6033
s,@DEBUG@,$DEBUG,;t t
6034
s,@DEBUG_MALLOC@,$DEBUG_MALLOC,;t t
6035
s,@DMRAID_TEST@,$DMRAID_TEST,;t t
6036
s,@DMRAID_VERSION@,$DMRAID_VERSION,;t t
6037
s,@DMRAID_LIB_VERSION@,$DMRAID_LIB_VERSION,;t t
6038
s,@DIETLIBC@,$DIETLIBC,;t t
6039
s,@GROUP@,$GROUP,;t t
6041
s,@LD_DEPS@,$LD_DEPS,;t t
6042
s,@FLAVOUR@,$FLAVOUR,;t t
6043
s,@LIBSELINUX@,$LIBSELINUX,;t t
6044
s,@LIBSEPOL@,$LIBSEPOL,;t t
6045
s,@LIB_SO@,$LIB_SO,;t t
6046
s,@OWNER@,$OWNER,;t t
6047
s,@SOFLAG@,$SOFLAG,;t t
6048
s,@STATIC_LINK@,$STATIC_LINK,;t t
6049
s,@LIBOBJS@,$LIBOBJS,;t t
6050
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6055
cat >>$CONFIG_STATUS <<\_ACEOF
6056
# Split the substitutions into bite-sized pieces for seds with
6057
# small command number limits, like on Digital OSF/1 and HP-UX.
6059
ac_sed_frag=1 # Number of current file.
6060
ac_beg=1 # First line for current file.
6061
ac_end=$ac_max_sed_lines # Line after last line for current file.
6064
while $ac_more_lines; do
6065
if test $ac_beg -gt 1; then
6066
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6068
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6070
if test ! -s $tmp/subs.frag; then
6073
# The purpose of the label and of the branching condition is to
6074
# speed up the sed processing (if there are no `@' at all, there
6075
# is no need to browse any of the substitutions).
6076
# These are the two extra sed commands mentioned above.
6078
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6079
if test -z "$ac_sed_cmds"; then
6080
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6082
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6084
ac_sed_frag=`expr $ac_sed_frag + 1`
6086
ac_end=`expr $ac_end + $ac_max_sed_lines`
6089
if test -z "$ac_sed_cmds"; then
6092
fi # test -n "$CONFIG_FILES"
6095
cat >>$CONFIG_STATUS <<\_ACEOF
6096
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6097
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6099
- | *:- | *:-:* ) # input from stdin
6101
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6102
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6103
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6104
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6105
* ) ac_file_in=$ac_file.in ;;
6108
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6109
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6110
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6111
X"$ac_file" : 'X\(//\)[^/]' \| \
6112
X"$ac_file" : 'X\(//\)$' \| \
6113
X"$ac_file" : 'X\(/\)' \| \
6114
. : '\(.\)' 2>/dev/null ||
6116
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6117
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6118
/^X\(\/\/\)$/{ s//\1/; q; }
6119
/^X\(\/\).*/{ s//\1/; q; }
6121
{ if $as_mkdir_p; then
6126
while test ! -d "$as_dir"; do
6127
as_dirs="$as_dir $as_dirs"
6128
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6129
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6130
X"$as_dir" : 'X\(//\)[^/]' \| \
6131
X"$as_dir" : 'X\(//\)$' \| \
6132
X"$as_dir" : 'X\(/\)' \| \
6133
. : '\(.\)' 2>/dev/null ||
6135
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6136
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6137
/^X\(\/\/\)$/{ s//\1/; q; }
6138
/^X\(\/\).*/{ s//\1/; q; }
6141
test ! -n "$as_dirs" || mkdir $as_dirs
6142
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6143
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6144
{ (exit 1); exit 1; }; }; }
6148
if test "$ac_dir" != .; then
6149
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6150
# A "../" for each directory in $ac_dir_suffix.
6151
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6153
ac_dir_suffix= ac_top_builddir=
6157
.) # No --srcdir option. We are building in place.
6159
if test -z "$ac_top_builddir"; then
6162
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6164
[\\/]* | ?:[\\/]* ) # Absolute path.
6165
ac_srcdir=$srcdir$ac_dir_suffix;
6166
ac_top_srcdir=$srcdir ;;
6168
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6169
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6172
# Do not use `cd foo && pwd` to compute absolute paths, because
6173
# the directories may not exist.
6175
.) ac_abs_builddir="$ac_dir";;
6178
.) ac_abs_builddir=`pwd`;;
6179
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6180
*) ac_abs_builddir=`pwd`/"$ac_dir";;
6183
case $ac_abs_builddir in
6184
.) ac_abs_top_builddir=${ac_top_builddir}.;;
6186
case ${ac_top_builddir}. in
6187
.) ac_abs_top_builddir=$ac_abs_builddir;;
6188
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6189
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6192
case $ac_abs_builddir in
6193
.) ac_abs_srcdir=$ac_srcdir;;
6196
.) ac_abs_srcdir=$ac_abs_builddir;;
6197
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6198
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6201
case $ac_abs_builddir in
6202
.) ac_abs_top_srcdir=$ac_top_srcdir;;
6204
case $ac_top_srcdir in
6205
.) ac_abs_top_srcdir=$ac_abs_builddir;;
6206
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6207
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6213
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6214
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6217
if test x"$ac_file" != x-; then
6218
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6219
echo "$as_me: creating $ac_file" >&6;}
6222
# Let's still pretend it is `configure' which instantiates (i.e., don't
6223
# use $as_me), people would be surprised to read:
6224
# /* config.h. Generated by config.status. */
6225
if test x"$ac_file" = x-; then
6228
configure_input="$ac_file. "
6230
configure_input=$configure_input"Generated from `echo $ac_file_in |
6231
sed 's,.*/,,'` by configure."
6233
# First look for the input files in the build tree, otherwise in the
6235
ac_file_inputs=`IFS=:
6236
for f in $ac_file_in; do
6238
-) echo $tmp/stdin ;;
6240
# Absolute (can't be DOS-style, as IFS=:)
6241
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6242
echo "$as_me: error: cannot find input file: $f" >&2;}
6243
{ (exit 1); exit 1; }; }
6246
if test -f "$f"; then
6249
elif test -f "$srcdir/$f"; then
6254
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6255
echo "$as_me: error: cannot find input file: $f" >&2;}
6256
{ (exit 1); exit 1; }; }
6259
done` || { (exit 1); exit 1; }
6261
cat >>$CONFIG_STATUS <<_ACEOF
6265
cat >>$CONFIG_STATUS <<\_ACEOF
6267
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6268
s,@configure_input@,$configure_input,;t t
6269
s,@srcdir@,$ac_srcdir,;t t
6270
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6271
s,@top_srcdir@,$ac_top_srcdir,;t t
6272
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6273
s,@builddir@,$ac_builddir,;t t
6274
s,@abs_builddir@,$ac_abs_builddir,;t t
6275
s,@top_builddir@,$ac_top_builddir,;t t
6276
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6277
s,@INSTALL@,$ac_INSTALL,;t t
6278
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6280
if test x"$ac_file" != x-; then
6281
mv $tmp/out $ac_file
6290
cat >>$CONFIG_STATUS <<\_ACEOF
6292
{ (exit 0); exit 0; }
6294
chmod +x $CONFIG_STATUS
6295
ac_clean_files=$ac_clean_files_save
6298
# configure is writing to config.log, and then calls config.status.
6299
# config.status does its own redirection, appending to config.log.
6300
# Unfortunately, on DOS this fails, as config.log is still kept open
6301
# by configure, so config.status won't be able to write to it; its
6302
# output is simply discarded. So we exec the FD to /dev/null,
6303
# effectively closing config.log, so it can be properly (re)opened and
6304
# appended to by config.status. When coming back to configure, we
6305
# need to make the FD available again.
6306
if test "$no_create" != yes; then
6308
ac_config_status_args=
6309
test "$silent" = yes &&
6310
ac_config_status_args="$ac_config_status_args --quiet"
6312
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6314
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6315
# would make configure fail if this is the last instruction.
6316
$ac_cs_success || { (exit 1); exit 1; }