2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for calc 0.2.2.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
574
PACKAGE_TARNAME='calc'
575
PACKAGE_VERSION='0.2.2'
576
PACKAGE_STRING='calc 0.2.2'
579
ac_unique_file="src/calc.cpp"
580
# Factoring default headers for most tests.
581
ac_includes_default="\
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
593
# ifdef HAVE_STDLIB_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
625
program_transform_name
666
INSTALL_STRIP_PROGRAM
702
ac_precious_vars='build_alias
716
# Initialize some variables set by options.
718
ac_init_version=false
719
# The variables have the same names as the options, with
720
# dashes changed to underlines.
728
program_transform_name=s,x,x,
736
# Installation directory options.
737
# These are left unexpanded so users can "make install exec_prefix=/foo"
738
# and all the variables that are supposed to be based on exec_prefix
739
# by default will actually change.
740
# Use braces instead of parens because sh, perl, etc. also accept them.
741
# (The list follows the same order as the GNU Coding Standards.)
742
bindir='${exec_prefix}/bin'
743
sbindir='${exec_prefix}/sbin'
744
libexecdir='${exec_prefix}/libexec'
745
datarootdir='${prefix}/share'
746
datadir='${datarootdir}'
747
sysconfdir='${prefix}/etc'
748
sharedstatedir='${prefix}/com'
749
localstatedir='${prefix}/var'
750
includedir='${prefix}/include'
751
oldincludedir='/usr/include'
752
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753
infodir='${datarootdir}/info'
758
libdir='${exec_prefix}/lib'
759
localedir='${datarootdir}/locale'
760
mandir='${datarootdir}/man'
766
# If the previous option needs an argument, assign it.
767
if test -n "$ac_prev"; then
768
eval $ac_prev=\$ac_option
774
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778
# Accept the important Cygnus configure options, so we can diagnose typos.
780
case $ac_dashdash$ac_option in
784
-bindir | --bindir | --bindi | --bind | --bin | --bi)
786
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789
-build | --build | --buil | --bui | --bu)
790
ac_prev=build_alias ;;
791
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
792
build_alias=$ac_optarg ;;
794
-cache-file | --cache-file | --cache-fil | --cache-fi \
795
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796
ac_prev=cache_file ;;
797
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799
cache_file=$ac_optarg ;;
802
cache_file=config.cache ;;
804
-datadir | --datadir | --datadi | --datad)
806
-datadir=* | --datadir=* | --datadi=* | --datad=*)
807
datadir=$ac_optarg ;;
809
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810
| --dataroo | --dataro | --datar)
811
ac_prev=datarootdir ;;
812
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814
datarootdir=$ac_optarg ;;
816
-disable-* | --disable-*)
817
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818
# Reject names that are not valid shell variable names.
819
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
821
{ (exit 1); exit 1; }; }
822
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823
eval enable_$ac_feature=no ;;
825
-docdir | --docdir | --docdi | --doc | --do)
827
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835
-enable-* | --enable-*)
836
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837
# Reject names that are not valid shell variable names.
838
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
840
{ (exit 1); exit 1; }; }
841
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842
eval enable_$ac_feature=\$ac_optarg ;;
844
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846
| --exec | --exe | --ex)
847
ac_prev=exec_prefix ;;
848
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850
| --exec=* | --exe=* | --ex=*)
851
exec_prefix=$ac_optarg ;;
853
-gas | --gas | --ga | --g)
854
# Obsolete; use --with-gas.
857
-help | --help | --hel | --he | -h)
859
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860
ac_init_help=recursive ;;
861
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862
ac_init_help=short ;;
864
-host | --host | --hos | --ho)
865
ac_prev=host_alias ;;
866
-host=* | --host=* | --hos=* | --ho=*)
867
host_alias=$ac_optarg ;;
869
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873
htmldir=$ac_optarg ;;
875
-includedir | --includedir | --includedi | --included | --include \
876
| --includ | --inclu | --incl | --inc)
877
ac_prev=includedir ;;
878
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879
| --includ=* | --inclu=* | --incl=* | --inc=*)
880
includedir=$ac_optarg ;;
882
-infodir | --infodir | --infodi | --infod | --info | --inf)
884
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885
infodir=$ac_optarg ;;
887
-libdir | --libdir | --libdi | --libd)
889
-libdir=* | --libdir=* | --libdi=* | --libd=*)
892
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893
| --libexe | --libex | --libe)
894
ac_prev=libexecdir ;;
895
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896
| --libexe=* | --libex=* | --libe=*)
897
libexecdir=$ac_optarg ;;
899
-localedir | --localedir | --localedi | --localed | --locale)
901
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902
localedir=$ac_optarg ;;
904
-localstatedir | --localstatedir | --localstatedi | --localstated \
905
| --localstate | --localstat | --localsta | --localst | --locals)
906
ac_prev=localstatedir ;;
907
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909
localstatedir=$ac_optarg ;;
911
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917
# Obsolete; use --without-fp.
920
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
921
| --no-cr | --no-c | -n)
924
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
925
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930
| --oldin | --oldi | --old | --ol | --o)
931
ac_prev=oldincludedir ;;
932
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935
oldincludedir=$ac_optarg ;;
937
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942
-program-prefix | --program-prefix | --program-prefi | --program-pref \
943
| --program-pre | --program-pr | --program-p)
944
ac_prev=program_prefix ;;
945
-program-prefix=* | --program-prefix=* | --program-prefi=* \
946
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947
program_prefix=$ac_optarg ;;
949
-program-suffix | --program-suffix | --program-suffi | --program-suff \
950
| --program-suf | --program-su | --program-s)
951
ac_prev=program_suffix ;;
952
-program-suffix=* | --program-suffix=* | --program-suffi=* \
953
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954
program_suffix=$ac_optarg ;;
956
-program-transform-name | --program-transform-name \
957
| --program-transform-nam | --program-transform-na \
958
| --program-transform-n | --program-transform- \
959
| --program-transform | --program-transfor \
960
| --program-transfo | --program-transf \
961
| --program-trans | --program-tran \
962
| --progr-tra | --program-tr | --program-t)
963
ac_prev=program_transform_name ;;
964
-program-transform-name=* | --program-transform-name=* \
965
| --program-transform-nam=* | --program-transform-na=* \
966
| --program-transform-n=* | --program-transform-=* \
967
| --program-transform=* | --program-transfor=* \
968
| --program-transfo=* | --program-transf=* \
969
| --program-trans=* | --program-tran=* \
970
| --progr-tra=* | --program-tr=* | --program-t=*)
971
program_transform_name=$ac_optarg ;;
973
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978
-psdir | --psdir | --psdi | --psd | --ps)
980
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
984
| -silent | --silent | --silen | --sile | --sil)
987
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991
sbindir=$ac_optarg ;;
993
-sharedstatedir | --sharedstatedir | --sharedstatedi \
994
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995
| --sharedst | --shareds | --shared | --share | --shar \
997
ac_prev=sharedstatedir ;;
998
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002
sharedstatedir=$ac_optarg ;;
1004
-site | --site | --sit)
1006
-site=* | --site=* | --sit=*)
1009
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012
srcdir=$ac_optarg ;;
1014
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015
| --syscon | --sysco | --sysc | --sys | --sy)
1016
ac_prev=sysconfdir ;;
1017
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019
sysconfdir=$ac_optarg ;;
1021
-target | --target | --targe | --targ | --tar | --ta | --t)
1022
ac_prev=target_alias ;;
1023
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024
target_alias=$ac_optarg ;;
1026
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1029
-version | --version | --versio | --versi | --vers | -V)
1030
ac_init_version=: ;;
1033
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034
# Reject names that are not valid shell variable names.
1035
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1037
{ (exit 1); exit 1; }; }
1038
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039
eval with_$ac_package=\$ac_optarg ;;
1041
-without-* | --without-*)
1042
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043
# Reject names that are not valid shell variable names.
1044
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1046
{ (exit 1); exit 1; }; }
1047
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048
eval with_$ac_package=no ;;
1051
# Obsolete; use --with-x.
1054
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055
| --x-incl | --x-inc | --x-in | --x-i)
1056
ac_prev=x_includes ;;
1057
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059
x_includes=$ac_optarg ;;
1061
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1062
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063
ac_prev=x_libraries ;;
1064
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066
x_libraries=$ac_optarg ;;
1068
-*) { echo "$as_me: error: unrecognized option: $ac_option
1069
Try \`$0 --help' for more information." >&2
1070
{ (exit 1); exit 1; }; }
1074
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075
# Reject names that are not valid shell variable names.
1076
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078
{ (exit 1); exit 1; }; }
1079
eval $ac_envvar=\$ac_optarg
1080
export $ac_envvar ;;
1083
# FIXME: should be removed in autoconf 3.0.
1084
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093
if test -n "$ac_prev"; then
1094
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095
{ echo "$as_me: error: missing argument to $ac_option" >&2
1096
{ (exit 1); exit 1; }; }
1099
# Be sure to have absolute directory names.
1100
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101
datadir sysconfdir sharedstatedir localstatedir includedir \
1102
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103
libdir localedir mandir
1105
eval ac_val=\$$ac_var
1107
[\\/$]* | ?:[\\/]* ) continue;;
1108
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111
{ (exit 1); exit 1; }; }
1114
# There might be people who depend on the old broken behavior: `$host'
1115
# used to hold the argument of --host etc.
1116
# FIXME: To remove some day.
1119
target=$target_alias
1121
# FIXME: To remove some day.
1122
if test "x$host_alias" != x; then
1123
if test "x$build_alias" = x; then
1124
cross_compiling=maybe
1125
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126
If a cross compiler is detected then cross compile mode will be used." >&2
1127
elif test "x$build_alias" != "x$host_alias"; then
1133
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135
test "$silent" = yes && exec 6>/dev/null
1138
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139
ac_ls_di=`ls -di .` &&
1140
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141
{ echo "$as_me: error: Working directory cannot be determined" >&2
1142
{ (exit 1); exit 1; }; }
1143
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1145
{ (exit 1); exit 1; }; }
1148
# Find the source files, if location was not specified.
1149
if test -z "$srcdir"; then
1150
ac_srcdir_defaulted=yes
1151
# Try the directory containing this script, then the parent directory.
1152
ac_confdir=`$as_dirname -- "$0" ||
1153
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154
X"$0" : 'X\(//\)[^/]' \| \
1155
X"$0" : 'X\(//\)$' \| \
1156
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176
if test ! -r "$srcdir/$ac_unique_file"; then
1180
ac_srcdir_defaulted=no
1182
if test ! -r "$srcdir/$ac_unique_file"; then
1183
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185
{ (exit 1); exit 1; }; }
1187
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190
{ (exit 1); exit 1; }; }
1192
# When building in place, set srcdir=.
1193
if test "$ac_abs_confdir" = "$ac_pwd"; then
1196
# Remove unnecessary trailing slashes from srcdir.
1197
# Double slashes in file names in object file debugging info
1198
# mess up M-x gdb in Emacs.
1200
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202
for ac_var in $ac_precious_vars; do
1203
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204
eval ac_env_${ac_var}_value=\$${ac_var}
1205
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210
# Report the --help message.
1212
if test "$ac_init_help" = "long"; then
1213
# Omit some internal or obsolete options to make the list less imposing.
1214
# This message is too long to be a string in the A/UX 3.1 sh.
1216
\`configure' configures calc 0.2.2 to adapt to many kinds of systems.
1218
Usage: $0 [OPTION]... [VAR=VALUE]...
1220
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221
VAR=VALUE. See below for descriptions of some of the useful variables.
1223
Defaults for the options are specified in brackets.
1226
-h, --help display this help and exit
1227
--help=short display options specific to this package
1228
--help=recursive display the short help of all the included packages
1229
-V, --version display version information and exit
1230
-q, --quiet, --silent do not print \`checking...' messages
1231
--cache-file=FILE cache test results in FILE [disabled]
1232
-C, --config-cache alias for \`--cache-file=config.cache'
1233
-n, --no-create do not create output files
1234
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
Installation directories:
1237
--prefix=PREFIX install architecture-independent files in PREFIX
1238
[$ac_default_prefix]
1239
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242
By default, \`make install' will install all the files in
1243
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245
for instance \`--prefix=\$HOME'.
1247
For better control, use the options below.
1249
Fine tuning of the installation directories:
1250
--bindir=DIR user executables [EPREFIX/bin]
1251
--sbindir=DIR system admin executables [EPREFIX/sbin]
1252
--libexecdir=DIR program executables [EPREFIX/libexec]
1253
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256
--libdir=DIR object code libraries [EPREFIX/lib]
1257
--includedir=DIR C header files [PREFIX/include]
1258
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1259
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261
--infodir=DIR info documentation [DATAROOTDIR/info]
1262
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263
--mandir=DIR man documentation [DATAROOTDIR/man]
1264
--docdir=DIR documentation root [DATAROOTDIR/doc/calc]
1265
--htmldir=DIR html documentation [DOCDIR]
1266
--dvidir=DIR dvi documentation [DOCDIR]
1267
--pdfdir=DIR pdf documentation [DOCDIR]
1268
--psdir=DIR ps documentation [DOCDIR]
1274
--program-prefix=PREFIX prepend PREFIX to installed program names
1275
--program-suffix=SUFFIX append SUFFIX to installed program names
1276
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280
if test -n "$ac_init_help"; then
1281
case $ac_init_help in
1282
short | recursive ) echo "Configuration of calc 0.2.2:";;
1287
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289
--disable-dependency-tracking speeds up one-time build
1290
--enable-dependency-tracking do not reject slow dependency extractors
1292
Some influential environment variables:
1293
CXX C++ compiler command
1294
CXXFLAGS C++ compiler flags
1295
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1296
nonstandard directory <lib dir>
1297
LIBS libraries to pass to the linker, e.g. -l<library>
1298
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1299
you have headers in a nonstandard directory <include dir>
1300
CC C compiler command
1301
CFLAGS C compiler flags
1304
Use these variables to override the choices made by `configure' or to help
1305
it to find libraries and programs with nonstandard names/locations.
1311
if test "$ac_init_help" = "recursive"; then
1312
# If there are subdirs, report their specific --help.
1313
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1314
test -d "$ac_dir" || continue
1318
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1320
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1321
# A ".." for each directory in $ac_dir_suffix.
1322
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1323
case $ac_top_builddir_sub in
1324
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1328
ac_abs_top_builddir=$ac_pwd
1329
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1330
# for backward compatibility:
1331
ac_top_builddir=$ac_top_build_prefix
1334
.) # We are building in place.
1336
ac_top_srcdir=$ac_top_builddir_sub
1337
ac_abs_top_srcdir=$ac_pwd ;;
1338
[\\/]* | ?:[\\/]* ) # Absolute name.
1339
ac_srcdir=$srcdir$ac_dir_suffix;
1340
ac_top_srcdir=$srcdir
1341
ac_abs_top_srcdir=$srcdir ;;
1343
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1344
ac_top_srcdir=$ac_top_build_prefix$srcdir
1345
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1347
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1349
cd "$ac_dir" || { ac_status=$?; continue; }
1350
# Check for guested configure.
1351
if test -f "$ac_srcdir/configure.gnu"; then
1353
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1354
elif test -f "$ac_srcdir/configure"; then
1356
$SHELL "$ac_srcdir/configure" --help=recursive
1358
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1360
cd "$ac_pwd" || { ac_status=$?; break; }
1364
test -n "$ac_init_help" && exit $ac_status
1365
if $ac_init_version; then
1367
calc configure 0.2.2
1368
generated by GNU Autoconf 2.61
1370
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1371
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1372
This configure script is free software; the Free Software Foundation
1373
gives unlimited permission to copy, distribute and modify it.
1377
cat >config.log <<_ACEOF
1378
This file contains any messages produced by compilers while
1379
running configure, to aid debugging if configure makes a mistake.
1381
It was created by calc $as_me 0.2.2, which was
1382
generated by GNU Autoconf 2.61. Invocation command line was
1394
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1395
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1396
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1397
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1398
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1400
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1401
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1403
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1404
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1405
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1406
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1407
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1408
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1409
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417
test -z "$as_dir" && as_dir=.
1418
echo "PATH: $as_dir"
1434
# Keep a trace of the command line.
1435
# Strip out --no-create and --no-recursion so they do not pile up.
1436
# Strip out --silent because we don't want to record it for future runs.
1437
# Also quote any args containing shell meta-characters.
1438
# Make two passes to allow for proper duplicate-argument suppression.
1442
ac_must_keep_next=false
1448
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1449
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1450
| -silent | --silent | --silen | --sile | --sil)
1453
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1456
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1458
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1459
if test $ac_must_keep_next = true; then
1460
ac_must_keep_next=false # Got value, back to normal.
1463
*=* | --config-cache | -C | -disable-* | --disable-* \
1464
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1465
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1466
| -with-* | --with-* | -without-* | --without-* | --x)
1467
case "$ac_configure_args0 " in
1468
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1471
-* ) ac_must_keep_next=true ;;
1474
ac_configure_args="$ac_configure_args '$ac_arg'"
1479
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1480
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1482
# When interrupted or exit'd, cleanup temporary files, and complete
1483
# config.log. We remove comments because anyway the quotes in there
1484
# would cause problems or look ugly.
1485
# WARNING: Use '\'' to represent an apostrophe within the trap.
1486
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1487
trap 'exit_status=$?
1488
# Save into config.log some information that might help in debugging.
1493
## ---------------- ##
1494
## Cache variables. ##
1495
## ---------------- ##
1498
# The following way of writing the cache mishandles newlines in values,
1500
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1501
eval ac_val=\$$ac_var
1505
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1506
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1509
_ | IFS | as_nl) ;; #(
1510
*) $as_unset $ac_var ;;
1515
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1516
*${as_nl}ac_space=\ *)
1518
"s/'\''/'\''\\\\'\'''\''/g;
1519
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1522
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1530
## ----------------- ##
1531
## Output variables. ##
1532
## ----------------- ##
1535
for ac_var in $ac_subst_vars
1537
eval ac_val=\$$ac_var
1539
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1541
echo "$ac_var='\''$ac_val'\''"
1545
if test -n "$ac_subst_files"; then
1547
## ------------------- ##
1548
## File substitutions. ##
1549
## ------------------- ##
1552
for ac_var in $ac_subst_files
1554
eval ac_val=\$$ac_var
1556
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558
echo "$ac_var='\''$ac_val'\''"
1563
if test -s confdefs.h; then
1573
test "$ac_signal" != 0 &&
1574
echo "$as_me: caught signal $ac_signal"
1575
echo "$as_me: exit $exit_status"
1577
rm -f core *.core core.conftest.* &&
1578
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1581
for ac_signal in 1 2 13 15; do
1582
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1586
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1587
rm -f -r conftest* confdefs.h
1589
# Predefined preprocessor variables.
1591
cat >>confdefs.h <<_ACEOF
1592
#define PACKAGE_NAME "$PACKAGE_NAME"
1596
cat >>confdefs.h <<_ACEOF
1597
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1601
cat >>confdefs.h <<_ACEOF
1602
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1606
cat >>confdefs.h <<_ACEOF
1607
#define PACKAGE_STRING "$PACKAGE_STRING"
1611
cat >>confdefs.h <<_ACEOF
1612
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1616
# Let the site file select an alternate cache file if it wants to.
1617
# Prefer explicitly selected file to automatically selected ones.
1618
if test -n "$CONFIG_SITE"; then
1619
set x "$CONFIG_SITE"
1620
elif test "x$prefix" != xNONE; then
1621
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1623
set x "$ac_default_prefix/share/config.site" \
1624
"$ac_default_prefix/etc/config.site"
1629
if test -r "$ac_site_file"; then
1630
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1631
echo "$as_me: loading site script $ac_site_file" >&6;}
1632
sed 's/^/| /' "$ac_site_file" >&5
1637
if test -r "$cache_file"; then
1638
# Some versions of bash will fail to source /dev/null (special
1639
# files actually), so we avoid doing that.
1640
if test -f "$cache_file"; then
1641
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1642
echo "$as_me: loading cache $cache_file" >&6;}
1644
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1645
*) . "./$cache_file";;
1649
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1650
echo "$as_me: creating cache $cache_file" >&6;}
1654
# Check that the precious variables saved in the cache have kept the same
1656
ac_cache_corrupted=false
1657
for ac_var in $ac_precious_vars; do
1658
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1659
eval ac_new_set=\$ac_env_${ac_var}_set
1660
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1661
eval ac_new_val=\$ac_env_${ac_var}_value
1662
case $ac_old_set,$ac_new_set in
1664
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1665
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1666
ac_cache_corrupted=: ;;
1668
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1669
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1670
ac_cache_corrupted=: ;;
1673
if test "x$ac_old_val" != "x$ac_new_val"; then
1674
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1675
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1676
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1677
echo "$as_me: former value: $ac_old_val" >&2;}
1678
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1679
echo "$as_me: current value: $ac_new_val" >&2;}
1680
ac_cache_corrupted=:
1683
# Pass precious variables to config.status.
1684
if test "$ac_new_set" = set; then
1686
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1687
*) ac_arg=$ac_var=$ac_new_val ;;
1689
case " $ac_configure_args " in
1690
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1691
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1695
if $ac_cache_corrupted; then
1696
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1697
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1698
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1699
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1700
{ (exit 1); exit 1; }; }
1728
ac_cpp='$CPP $CPPFLAGS'
1729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1734
am__api_version="1.9"
1736
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1737
if test -f "$ac_dir/install-sh"; then
1739
ac_install_sh="$ac_aux_dir/install-sh -c"
1741
elif test -f "$ac_dir/install.sh"; then
1743
ac_install_sh="$ac_aux_dir/install.sh -c"
1745
elif test -f "$ac_dir/shtool"; then
1747
ac_install_sh="$ac_aux_dir/shtool install -c"
1751
if test -z "$ac_aux_dir"; then
1752
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1753
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1754
{ (exit 1); exit 1; }; }
1757
# These three variables are undocumented and unsupported,
1758
# and are intended to be withdrawn in a future Autoconf release.
1759
# They can cause serious problems if a builder's source tree is in a directory
1760
# whose full name contains unusual characters.
1761
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1762
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1763
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1766
# Find a good install program. We prefer a C program (faster),
1767
# so one script is as good as another. But avoid the broken or
1768
# incompatible versions:
1769
# SysV /etc/install, /usr/sbin/install
1770
# SunOS /usr/etc/install
1771
# IRIX /sbin/install
1773
# AmigaOS /C/install, which installs bootblocks on floppy discs
1774
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1775
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1776
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1777
# OS/2's system install, which has a completely different semantic
1778
# ./install, which can be erroneously created by make from ./install.sh.
1779
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1780
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1781
if test -z "$INSTALL"; then
1782
if test "${ac_cv_path_install+set}" = set; then
1783
echo $ECHO_N "(cached) $ECHO_C" >&6
1785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789
test -z "$as_dir" && as_dir=.
1790
# Account for people who put trailing slashes in PATH elements.
1792
./ | .// | /cC/* | \
1793
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1794
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1797
# OSF1 and SCO ODT 3.0 have their own names for install.
1798
# Don't use installbsd from OSF since it installs stuff as root
1800
for ac_prog in ginstall scoinst install; do
1801
for ac_exec_ext in '' $ac_executable_extensions; do
1802
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1803
if test $ac_prog = install &&
1804
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1805
# AIX install. It has an incompatible calling convention.
1807
elif test $ac_prog = install &&
1808
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809
# program-specific install script used by HP pwplus--don't use.
1812
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1825
if test "${ac_cv_path_install+set}" = set; then
1826
INSTALL=$ac_cv_path_install
1828
# As a last resort, use the slow shell script. Don't cache a
1829
# value for INSTALL within a source directory, because that will
1830
# break other packages using the cache if that directory is
1831
# removed, or if the value is a relative name.
1832
INSTALL=$ac_install_sh
1835
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1836
echo "${ECHO_T}$INSTALL" >&6; }
1838
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1839
# It thinks the first close brace ends the variable substitution.
1840
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1842
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1844
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1846
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1847
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1850
echo timestamp > conftest.file
1851
# Do `set' in a subshell so we don't clobber the current shell's
1852
# arguments. Must try -L first in case configure is actually a
1853
# symlink; some systems play weird games with the mod time of symlinks
1854
# (eg FreeBSD returns the mod time of the symlink's containing
1857
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1858
if test "$*" = "X"; then
1860
set X `ls -t $srcdir/configure conftest.file`
1863
if test "$*" != "X $srcdir/configure conftest.file" \
1864
&& test "$*" != "X conftest.file $srcdir/configure"; then
1866
# If neither matched, then we have a broken ls. This can happen
1867
# if, for instance, CONFIG_SHELL is bash and it inherits a
1868
# broken ls alias from the environment. This has actually
1869
# happened. Such a system could not be considered "sane".
1870
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1871
alias in your environment" >&5
1872
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1873
alias in your environment" >&2;}
1874
{ (exit 1); exit 1; }; }
1877
test "$2" = conftest.file
1883
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1884
Check your system clock" >&5
1885
echo "$as_me: error: newly created file is older than distributed files!
1886
Check your system clock" >&2;}
1887
{ (exit 1); exit 1; }; }
1889
{ echo "$as_me:$LINENO: result: yes" >&5
1890
echo "${ECHO_T}yes" >&6; }
1891
test "$program_prefix" != NONE &&
1892
program_transform_name="s&^&$program_prefix&;$program_transform_name"
1893
# Use a double $ so make ignores it.
1894
test "$program_suffix" != NONE &&
1895
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1896
# Double any \ or $. echo might interpret backslashes.
1897
# By default was `s,x,x', remove it if useless.
1898
cat <<\_ACEOF >conftest.sed
1899
s/[\\$]/&&/g;s/;s,x,x,$//
1901
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1904
# expand $ac_aux_dir to an absolute path
1905
am_aux_dir=`cd $ac_aux_dir && pwd`
1907
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1908
# Use eval to expand $SHELL
1909
if eval "$MISSING --run true"; then
1910
am_missing_run="$MISSING --run "
1913
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1914
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1917
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1918
# We used to keeping the `.' as first argument, in order to
1919
# allow $(mkdir_p) to be used without argument. As in
1920
# $(mkdir_p) $(somedir)
1921
# where $(somedir) is conditionally defined. However this is wrong
1923
# 1. if the package is installed by a user who cannot write `.'
1924
# make install will fail,
1925
# 2. the above comment should most certainly read
1926
# $(mkdir_p) $(DESTDIR)$(somedir)
1927
# so it does not work when $(somedir) is undefined and
1928
# $(DESTDIR) is not.
1929
# To support the latter case, we have to write
1930
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1931
# so the `.' trick is pointless.
1932
mkdir_p='mkdir -p --'
1934
# On NextStep and OpenStep, the `mkdir' command does not
1935
# recognize any option. It will interpret all options as
1936
# directories to create, and then abort because `.' already
1938
for d in ./-p ./--version;
1940
test -d $d && rmdir $d
1942
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1943
if test -f "$ac_aux_dir/mkinstalldirs"; then
1944
mkdir_p='$(mkinstalldirs)'
1946
mkdir_p='$(install_sh) -d'
1950
for ac_prog in gawk mawk nawk awk
1952
# Extract the first word of "$ac_prog", so it can be a program name with args.
1953
set dummy $ac_prog; ac_word=$2
1954
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956
if test "${ac_cv_prog_AWK+set}" = set; then
1957
echo $ECHO_N "(cached) $ECHO_C" >&6
1959
if test -n "$AWK"; then
1960
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966
test -z "$as_dir" && as_dir=.
1967
for ac_exec_ext in '' $ac_executable_extensions; do
1968
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1969
ac_cv_prog_AWK="$ac_prog"
1970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980
if test -n "$AWK"; then
1981
{ echo "$as_me:$LINENO: result: $AWK" >&5
1982
echo "${ECHO_T}$AWK" >&6; }
1984
{ echo "$as_me:$LINENO: result: no" >&5
1985
echo "${ECHO_T}no" >&6; }
1989
test -n "$AWK" && break
1992
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1994
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1995
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1996
echo $ECHO_N "(cached) $ECHO_C" >&6
1998
cat >conftest.make <<\_ACEOF
2001
@echo '@@@%%%=$(MAKE)=@@@%%%'
2003
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006
eval ac_cv_prog_make_${ac_make}_set=yes;;
2008
eval ac_cv_prog_make_${ac_make}_set=no;;
2012
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2013
{ echo "$as_me:$LINENO: result: yes" >&5
2014
echo "${ECHO_T}yes" >&6; }
2017
{ echo "$as_me:$LINENO: result: no" >&5
2018
echo "${ECHO_T}no" >&6; }
2019
SET_MAKE="MAKE=${MAKE-make}"
2022
rm -rf .tst 2>/dev/null
2023
mkdir .tst 2>/dev/null
2024
if test -d .tst; then
2029
rmdir .tst 2>/dev/null
2031
# test to see if srcdir already configured
2032
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2033
test -f $srcdir/config.status; then
2034
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2035
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2036
{ (exit 1); exit 1; }; }
2039
# test whether we have cygpath
2040
if test -z "$CYGPATH_W"; then
2041
if (cygpath --version) >/dev/null 2>/dev/null; then
2042
CYGPATH_W='cygpath -w'
2049
# Define the identity of the package.
2054
cat >>confdefs.h <<_ACEOF
2055
#define PACKAGE "$PACKAGE"
2059
cat >>confdefs.h <<_ACEOF
2060
#define VERSION "$VERSION"
2063
# Some tools Automake needs.
2065
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2068
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2071
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2074
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2077
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2079
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2081
# Installed binaries are usually stripped using `strip' when the user
2082
# run `make install-strip'. However `strip' might not be the right
2083
# tool to use in cross-compilation environments, therefore Automake
2084
# will honor the `STRIP' environment variable to overrule this program.
2085
if test "$cross_compiling" != no; then
2086
if test -n "$ac_tool_prefix"; then
2087
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2088
set dummy ${ac_tool_prefix}strip; ac_word=$2
2089
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091
if test "${ac_cv_prog_STRIP+set}" = set; then
2092
echo $ECHO_N "(cached) $ECHO_C" >&6
2094
if test -n "$STRIP"; then
2095
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101
test -z "$as_dir" && as_dir=.
2102
for ac_exec_ext in '' $ac_executable_extensions; do
2103
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2105
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114
STRIP=$ac_cv_prog_STRIP
2115
if test -n "$STRIP"; then
2116
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2117
echo "${ECHO_T}$STRIP" >&6; }
2119
{ echo "$as_me:$LINENO: result: no" >&5
2120
echo "${ECHO_T}no" >&6; }
2125
if test -z "$ac_cv_prog_STRIP"; then
2127
# Extract the first word of "strip", so it can be a program name with args.
2128
set dummy strip; ac_word=$2
2129
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2132
echo $ECHO_N "(cached) $ECHO_C" >&6
2134
if test -n "$ac_ct_STRIP"; then
2135
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
test -z "$as_dir" && as_dir=.
2142
for ac_exec_ext in '' $ac_executable_extensions; do
2143
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144
ac_cv_prog_ac_ct_STRIP="strip"
2145
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2155
if test -n "$ac_ct_STRIP"; then
2156
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2157
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2159
{ echo "$as_me:$LINENO: result: no" >&5
2160
echo "${ECHO_T}no" >&6; }
2163
if test "x$ac_ct_STRIP" = x; then
2166
case $cross_compiling:$ac_tool_warned in
2168
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2169
whose name does not start with the host triplet. If you think this
2170
configuration is useful to you, please write to autoconf@gnu.org." >&5
2171
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2172
whose name does not start with the host triplet. If you think this
2173
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2174
ac_tool_warned=yes ;;
2179
STRIP="$ac_cv_prog_STRIP"
2183
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2185
# We need awk for the "check" target. The system "awk" is bad on
2187
# Always define AMTAR for backward compatibility.
2189
AMTAR=${AMTAR-"${am_missing_run}tar"}
2191
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2198
ac_config_headers="$ac_config_headers config.h"
2203
# Checks for programs.
2205
ac_cpp='$CXXCPP $CPPFLAGS'
2206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2209
if test -z "$CXX"; then
2210
if test -n "$CCC"; then
2213
if test -n "$ac_tool_prefix"; then
2214
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2216
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220
if test "${ac_cv_prog_CXX+set}" = set; then
2221
echo $ECHO_N "(cached) $ECHO_C" >&6
2223
if test -n "$CXX"; then
2224
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230
test -z "$as_dir" && as_dir=.
2231
for ac_exec_ext in '' $ac_executable_extensions; do
2232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2234
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244
if test -n "$CXX"; then
2245
{ echo "$as_me:$LINENO: result: $CXX" >&5
2246
echo "${ECHO_T}$CXX" >&6; }
2248
{ echo "$as_me:$LINENO: result: no" >&5
2249
echo "${ECHO_T}no" >&6; }
2253
test -n "$CXX" && break
2256
if test -z "$CXX"; then
2258
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2260
# Extract the first word of "$ac_prog", so it can be a program name with args.
2261
set dummy $ac_prog; ac_word=$2
2262
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2265
echo $ECHO_N "(cached) $ECHO_C" >&6
2267
if test -n "$ac_ct_CXX"; then
2268
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274
test -z "$as_dir" && as_dir=.
2275
for ac_exec_ext in '' $ac_executable_extensions; do
2276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277
ac_cv_prog_ac_ct_CXX="$ac_prog"
2278
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2288
if test -n "$ac_ct_CXX"; then
2289
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2290
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2292
{ echo "$as_me:$LINENO: result: no" >&5
2293
echo "${ECHO_T}no" >&6; }
2297
test -n "$ac_ct_CXX" && break
2300
if test "x$ac_ct_CXX" = x; then
2303
case $cross_compiling:$ac_tool_warned in
2305
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2306
whose name does not start with the host triplet. If you think this
2307
configuration is useful to you, please write to autoconf@gnu.org." >&5
2308
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2309
whose name does not start with the host triplet. If you think this
2310
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2311
ac_tool_warned=yes ;;
2319
# Provide some information about the compiler.
2320
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2321
ac_compiler=`set X $ac_compile; echo $2`
2322
{ (ac_try="$ac_compiler --version >&5"
2324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325
*) ac_try_echo=$ac_try;;
2327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328
(eval "$ac_compiler --version >&5") 2>&5
2330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331
(exit $ac_status); }
2332
{ (ac_try="$ac_compiler -v >&5"
2334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335
*) ac_try_echo=$ac_try;;
2337
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2338
(eval "$ac_compiler -v >&5") 2>&5
2340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341
(exit $ac_status); }
2342
{ (ac_try="$ac_compiler -V >&5"
2344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345
*) ac_try_echo=$ac_try;;
2347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348
(eval "$ac_compiler -V >&5") 2>&5
2350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351
(exit $ac_status); }
2353
cat >conftest.$ac_ext <<_ACEOF
2356
cat confdefs.h >>conftest.$ac_ext
2357
cat >>conftest.$ac_ext <<_ACEOF
2358
/* end confdefs.h. */
2368
ac_clean_files_save=$ac_clean_files
2369
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2370
# Try to create an executable without -o first, disregard a.out.
2371
# It will help us diagnose broken compilers, and finding out an intuition
2373
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2374
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2375
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377
# List of possible output files, starting from the most likely.
2378
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2379
# only as a last resort. b.out is created by i960 compilers.
2380
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2382
# The IRIX 6 linker writes into existing files which may not be
2383
# executable, retaining their permissions. Remove them first so a
2384
# subsequent execution test works.
2386
for ac_file in $ac_files
2389
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2390
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2395
if { (ac_try="$ac_link_default"
2397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398
*) ac_try_echo=$ac_try;;
2400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401
(eval "$ac_link_default") 2>&5
2403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404
(exit $ac_status); }; then
2405
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2406
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2407
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2408
# so that the user can short-circuit this test for compilers unknown to
2410
for ac_file in $ac_files ''
2412
test -f "$ac_file" || continue
2414
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2417
# We found the default executable, but exeext='' is most
2421
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2423
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425
# We set ac_cv_exeext here because the later test for it is not
2426
# safe: cross compilers may not add the suffix if given an `-o'
2427
# argument, so we may need to know it at that point already.
2428
# Even if this section looks crufty: it has the advantage of
2435
test "$ac_cv_exeext" = no && ac_cv_exeext=
2441
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2442
echo "${ECHO_T}$ac_file" >&6; }
2443
if test -z "$ac_file"; then
2444
echo "$as_me: failed program was:" >&5
2445
sed 's/^/| /' conftest.$ac_ext >&5
2447
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2448
See \`config.log' for more details." >&5
2449
echo "$as_me: error: C++ compiler cannot create executables
2450
See \`config.log' for more details." >&2;}
2451
{ (exit 77); exit 77; }; }
2454
ac_exeext=$ac_cv_exeext
2456
# Check that the compiler produces executables we can run. If not, either
2457
# the compiler is broken, or we cross compile.
2458
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2459
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2460
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461
# If not cross compiling, check that we can run a simple program.
2462
if test "$cross_compiling" != yes; then
2463
if { ac_try='./$ac_file'
2464
{ (case "(($ac_try" in
2465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466
*) ac_try_echo=$ac_try;;
2468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469
(eval "$ac_try") 2>&5
2471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
(exit $ac_status); }; }; then
2475
if test "$cross_compiling" = maybe; then
2478
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2479
If you meant to cross compile, use \`--host'.
2480
See \`config.log' for more details." >&5
2481
echo "$as_me: error: cannot run C++ compiled programs.
2482
If you meant to cross compile, use \`--host'.
2483
See \`config.log' for more details." >&2;}
2484
{ (exit 1); exit 1; }; }
2488
{ echo "$as_me:$LINENO: result: yes" >&5
2489
echo "${ECHO_T}yes" >&6; }
2491
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2492
ac_clean_files=$ac_clean_files_save
2493
# Check that the compiler produces executables we can run. If not, either
2494
# the compiler is broken, or we cross compile.
2495
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2496
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2497
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2498
echo "${ECHO_T}$cross_compiling" >&6; }
2500
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2501
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2502
if { (ac_try="$ac_link"
2504
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505
*) ac_try_echo=$ac_try;;
2507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508
(eval "$ac_link") 2>&5
2510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511
(exit $ac_status); }; then
2512
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2513
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2514
# work properly (i.e., refer to `conftest.exe'), while it won't with
2516
for ac_file in conftest.exe conftest conftest.*; do
2517
test -f "$ac_file" || continue
2519
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2520
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2527
See \`config.log' for more details." >&5
2528
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2529
See \`config.log' for more details." >&2;}
2530
{ (exit 1); exit 1; }; }
2533
rm -f conftest$ac_cv_exeext
2534
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2535
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2537
rm -f conftest.$ac_ext
2538
EXEEXT=$ac_cv_exeext
2540
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2541
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2542
if test "${ac_cv_objext+set}" = set; then
2543
echo $ECHO_N "(cached) $ECHO_C" >&6
2545
cat >conftest.$ac_ext <<_ACEOF
2548
cat confdefs.h >>conftest.$ac_ext
2549
cat >>conftest.$ac_ext <<_ACEOF
2550
/* end confdefs.h. */
2560
rm -f conftest.o conftest.obj
2561
if { (ac_try="$ac_compile"
2563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564
*) ac_try_echo=$ac_try;;
2566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567
(eval "$ac_compile") 2>&5
2569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
(exit $ac_status); }; then
2571
for ac_file in conftest.o conftest.obj conftest.*; do
2572
test -f "$ac_file" || continue;
2574
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2575
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2580
echo "$as_me: failed program was:" >&5
2581
sed 's/^/| /' conftest.$ac_ext >&5
2583
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584
See \`config.log' for more details." >&5
2585
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586
See \`config.log' for more details." >&2;}
2587
{ (exit 1); exit 1; }; }
2590
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593
echo "${ECHO_T}$ac_cv_objext" >&6; }
2594
OBJEXT=$ac_cv_objext
2596
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2597
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2598
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2599
echo $ECHO_N "(cached) $ECHO_C" >&6
2601
cat >conftest.$ac_ext <<_ACEOF
2604
cat confdefs.h >>conftest.$ac_ext
2605
cat >>conftest.$ac_ext <<_ACEOF
2606
/* end confdefs.h. */
2619
rm -f conftest.$ac_objext
2620
if { (ac_try="$ac_compile"
2622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623
*) ac_try_echo=$ac_try;;
2625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626
(eval "$ac_compile") 2>conftest.er1
2628
grep -v '^ *+' conftest.er1 >conftest.err
2630
cat conftest.err >&5
2631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
(exit $ac_status); } && {
2633
test -z "$ac_cxx_werror_flag" ||
2634
test ! -s conftest.err
2635
} && test -s conftest.$ac_objext; then
2638
echo "$as_me: failed program was:" >&5
2639
sed 's/^/| /' conftest.$ac_ext >&5
2644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2648
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2649
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2650
GXX=`test $ac_compiler_gnu = yes && echo yes`
2651
ac_test_CXXFLAGS=${CXXFLAGS+set}
2652
ac_save_CXXFLAGS=$CXXFLAGS
2653
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2654
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2655
if test "${ac_cv_prog_cxx_g+set}" = set; then
2656
echo $ECHO_N "(cached) $ECHO_C" >&6
2658
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2659
ac_cxx_werror_flag=yes
2662
cat >conftest.$ac_ext <<_ACEOF
2665
cat confdefs.h >>conftest.$ac_ext
2666
cat >>conftest.$ac_ext <<_ACEOF
2667
/* end confdefs.h. */
2677
rm -f conftest.$ac_objext
2678
if { (ac_try="$ac_compile"
2680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681
*) ac_try_echo=$ac_try;;
2683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684
(eval "$ac_compile") 2>conftest.er1
2686
grep -v '^ *+' conftest.er1 >conftest.err
2688
cat conftest.err >&5
2689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690
(exit $ac_status); } && {
2691
test -z "$ac_cxx_werror_flag" ||
2692
test ! -s conftest.err
2693
} && test -s conftest.$ac_objext; then
2694
ac_cv_prog_cxx_g=yes
2696
echo "$as_me: failed program was:" >&5
2697
sed 's/^/| /' conftest.$ac_ext >&5
2700
cat >conftest.$ac_ext <<_ACEOF
2703
cat confdefs.h >>conftest.$ac_ext
2704
cat >>conftest.$ac_ext <<_ACEOF
2705
/* end confdefs.h. */
2715
rm -f conftest.$ac_objext
2716
if { (ac_try="$ac_compile"
2718
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719
*) ac_try_echo=$ac_try;;
2721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722
(eval "$ac_compile") 2>conftest.er1
2724
grep -v '^ *+' conftest.er1 >conftest.err
2726
cat conftest.err >&5
2727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728
(exit $ac_status); } && {
2729
test -z "$ac_cxx_werror_flag" ||
2730
test ! -s conftest.err
2731
} && test -s conftest.$ac_objext; then
2734
echo "$as_me: failed program was:" >&5
2735
sed 's/^/| /' conftest.$ac_ext >&5
2737
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2739
cat >conftest.$ac_ext <<_ACEOF
2742
cat confdefs.h >>conftest.$ac_ext
2743
cat >>conftest.$ac_ext <<_ACEOF
2744
/* end confdefs.h. */
2754
rm -f conftest.$ac_objext
2755
if { (ac_try="$ac_compile"
2757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758
*) ac_try_echo=$ac_try;;
2760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761
(eval "$ac_compile") 2>conftest.er1
2763
grep -v '^ *+' conftest.er1 >conftest.err
2765
cat conftest.err >&5
2766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767
(exit $ac_status); } && {
2768
test -z "$ac_cxx_werror_flag" ||
2769
test ! -s conftest.err
2770
} && test -s conftest.$ac_objext; then
2771
ac_cv_prog_cxx_g=yes
2773
echo "$as_me: failed program was:" >&5
2774
sed 's/^/| /' conftest.$ac_ext >&5
2779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2788
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2789
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2790
if test "$ac_test_CXXFLAGS" = set; then
2791
CXXFLAGS=$ac_save_CXXFLAGS
2792
elif test $ac_cv_prog_cxx_g = yes; then
2793
if test "$GXX" = yes; then
2799
if test "$GXX" = yes; then
2806
ac_cpp='$CPP $CPPFLAGS'
2807
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810
DEPDIR="${am__leading_dot}deps"
2812
ac_config_commands="$ac_config_commands depfiles"
2815
am_make=${MAKE-make}
2816
cat > confinc << 'END'
2821
# If we don't find an include directive, just comment out the code.
2822
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2823
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2827
# First try GNU make style include.
2828
echo "include confinc" > confmf
2829
# We grep out `Entering directory' and `Leaving directory'
2830
# messages which can occur if `w' ends up in MAKEFLAGS.
2831
# In particular we don't look at `^make:' because GNU make might
2832
# be invoked under some other name (usually "gmake"), in which
2833
# case it prints its new name instead of `make'.
2834
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2839
# Now try BSD make style include.
2840
if test "$am__include" = "#"; then
2841
echo '.include "confinc"' > confmf
2842
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2843
am__include=.include
2850
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2851
echo "${ECHO_T}$_am_result" >&6; }
2852
rm -f confinc confmf
2854
# Check whether --enable-dependency-tracking was given.
2855
if test "${enable_dependency_tracking+set}" = set; then
2856
enableval=$enable_dependency_tracking;
2859
if test "x$enable_dependency_tracking" != xno; then
2860
am_depcomp="$ac_aux_dir/depcomp"
2865
if test "x$enable_dependency_tracking" != xno; then
2876
depcc="$CXX" am_compiler_list=
2878
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2879
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2880
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2881
echo $ECHO_N "(cached) $ECHO_C" >&6
2883
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2884
# We make a subdir and do the tests there. Otherwise we can end up
2885
# making bogus files that we don't know about and never remove. For
2886
# instance it was reported that on HP-UX the gcc test will end up
2887
# making a dummy file named `D' -- because `-MD' means `put the output
2890
# Copy depcomp to subdir because otherwise we won't find it if we're
2891
# using a relative directory.
2892
cp "$am_depcomp" conftest.dir
2894
# We will build objects and dependencies in a subdirectory because
2895
# it helps to detect inapplicable dependency modes. For instance
2896
# both Tru64's cc and ICC support -MD to output dependencies as a
2897
# side effect of compilation, but ICC will put the dependencies in
2898
# the current directory while Tru64 will put them in the object
2902
am_cv_CXX_dependencies_compiler_type=none
2903
if test "$am_compiler_list" = ""; then
2904
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2906
for depmode in $am_compiler_list; do
2907
# Setup a source with many dependencies, because some compilers
2908
# like to wrap large dependency lists on column 80 (with \), and
2909
# we should not choose a depcomp mode which is confused by this.
2911
# We need to recreate these files for each test, as the compiler may
2912
# overwrite some of them when testing with obscure command lines.
2913
# This happens at least with the AIX C compiler.
2915
for i in 1 2 3 4 5 6; do
2916
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2917
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2918
# Solaris 8's {/usr,}/bin/sh.
2919
touch sub/conftst$i.h
2921
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2925
# after this tag, mechanisms are not by side-effect, so they'll
2926
# only be used when explicitly requested
2927
if test "x$enable_dependency_tracking" = xyes; then
2935
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2936
# mode. It turns out that the SunPro C++ compiler does not properly
2937
# handle `-M -o', and we need to detect this.
2938
if depmode=$depmode \
2939
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2940
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2941
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2942
>/dev/null 2>conftest.err &&
2943
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2944
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2945
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2946
# icc doesn't choke on unknown options, it will just issue warnings
2947
# or remarks (even with -Werror). So we grep stderr for any message
2948
# that says an option was ignored or not supported.
2949
# When given -MP, icc 7.0 and 7.1 complain thusly:
2950
# icc: Command line warning: ignoring option '-M'; no argument required
2951
# The diagnosis changed in icc 8.0:
2952
# icc: Command line remark: option '-MP' not supported
2953
if (grep 'ignoring option' conftest.err ||
2954
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2955
am_cv_CXX_dependencies_compiler_type=$depmode
2964
am_cv_CXX_dependencies_compiler_type=none
2968
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2969
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
2970
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2975
test "x$enable_dependency_tracking" != xno \
2976
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2977
am__fastdepCXX_TRUE=
2978
am__fastdepCXX_FALSE='#'
2980
am__fastdepCXX_TRUE='#'
2981
am__fastdepCXX_FALSE=
2986
ac_cpp='$CPP $CPPFLAGS'
2987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990
if test -n "$ac_tool_prefix"; then
2991
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2992
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2993
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995
if test "${ac_cv_prog_CC+set}" = set; then
2996
echo $ECHO_N "(cached) $ECHO_C" >&6
2998
if test -n "$CC"; then
2999
ac_cv_prog_CC="$CC" # Let the user override the test.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019
if test -n "$CC"; then
3020
{ echo "$as_me:$LINENO: result: $CC" >&5
3021
echo "${ECHO_T}$CC" >&6; }
3023
{ echo "$as_me:$LINENO: result: no" >&5
3024
echo "${ECHO_T}no" >&6; }
3029
if test -z "$ac_cv_prog_CC"; then
3031
# Extract the first word of "gcc", so it can be a program name with args.
3032
set dummy gcc; ac_word=$2
3033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3036
echo $ECHO_N "(cached) $ECHO_C" >&6
3038
if test -n "$ac_ct_CC"; then
3039
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045
test -z "$as_dir" && as_dir=.
3046
for ac_exec_ext in '' $ac_executable_extensions; do
3047
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048
ac_cv_prog_ac_ct_CC="gcc"
3049
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059
if test -n "$ac_ct_CC"; then
3060
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3061
echo "${ECHO_T}$ac_ct_CC" >&6; }
3063
{ echo "$as_me:$LINENO: result: no" >&5
3064
echo "${ECHO_T}no" >&6; }
3067
if test "x$ac_ct_CC" = x; then
3070
case $cross_compiling:$ac_tool_warned in
3072
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3073
whose name does not start with the host triplet. If you think this
3074
configuration is useful to you, please write to autoconf@gnu.org." >&5
3075
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3076
whose name does not start with the host triplet. If you think this
3077
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3078
ac_tool_warned=yes ;;
3086
if test -z "$CC"; then
3087
if test -n "$ac_tool_prefix"; then
3088
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089
set dummy ${ac_tool_prefix}cc; ac_word=$2
3090
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3091
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3092
if test "${ac_cv_prog_CC+set}" = set; then
3093
echo $ECHO_N "(cached) $ECHO_C" >&6
3095
if test -n "$CC"; then
3096
ac_cv_prog_CC="$CC" # Let the user override the test.
3098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102
test -z "$as_dir" && as_dir=.
3103
for ac_exec_ext in '' $ac_executable_extensions; do
3104
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105
ac_cv_prog_CC="${ac_tool_prefix}cc"
3106
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116
if test -n "$CC"; then
3117
{ echo "$as_me:$LINENO: result: $CC" >&5
3118
echo "${ECHO_T}$CC" >&6; }
3120
{ echo "$as_me:$LINENO: result: no" >&5
3121
echo "${ECHO_T}no" >&6; }
3127
if test -z "$CC"; then
3128
# Extract the first word of "cc", so it can be a program name with args.
3129
set dummy cc; ac_word=$2
3130
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3132
if test "${ac_cv_prog_CC+set}" = set; then
3133
echo $ECHO_N "(cached) $ECHO_C" >&6
3135
if test -n "$CC"; then
3136
ac_cv_prog_CC="$CC" # Let the user override the test.
3139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143
test -z "$as_dir" && as_dir=.
3144
for ac_exec_ext in '' $ac_executable_extensions; do
3145
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147
ac_prog_rejected=yes
3151
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158
if test $ac_prog_rejected = yes; then
3159
# We found a bogon in the path, so make sure we never use it.
3160
set dummy $ac_cv_prog_CC
3162
if test $# != 0; then
3163
# We chose a different compiler from the bogus one.
3164
# However, it has the same basename, so the bogon will be chosen
3165
# first if we set CC to just the basename; use the full file name.
3167
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173
if test -n "$CC"; then
3174
{ echo "$as_me:$LINENO: result: $CC" >&5
3175
echo "${ECHO_T}$CC" >&6; }
3177
{ echo "$as_me:$LINENO: result: no" >&5
3178
echo "${ECHO_T}no" >&6; }
3183
if test -z "$CC"; then
3184
if test -n "$ac_tool_prefix"; then
3185
for ac_prog in cl.exe
3187
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3191
if test "${ac_cv_prog_CC+set}" = set; then
3192
echo $ECHO_N "(cached) $ECHO_C" >&6
3194
if test -n "$CC"; then
3195
ac_cv_prog_CC="$CC" # Let the user override the test.
3197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201
test -z "$as_dir" && as_dir=.
3202
for ac_exec_ext in '' $ac_executable_extensions; do
3203
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215
if test -n "$CC"; then
3216
{ echo "$as_me:$LINENO: result: $CC" >&5
3217
echo "${ECHO_T}$CC" >&6; }
3219
{ echo "$as_me:$LINENO: result: no" >&5
3220
echo "${ECHO_T}no" >&6; }
3224
test -n "$CC" && break
3227
if test -z "$CC"; then
3229
for ac_prog in cl.exe
3231
# Extract the first word of "$ac_prog", so it can be a program name with args.
3232
set dummy $ac_prog; ac_word=$2
3233
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3235
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3236
echo $ECHO_N "(cached) $ECHO_C" >&6
3238
if test -n "$ac_ct_CC"; then
3239
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245
test -z "$as_dir" && as_dir=.
3246
for ac_exec_ext in '' $ac_executable_extensions; do
3247
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248
ac_cv_prog_ac_ct_CC="$ac_prog"
3249
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259
if test -n "$ac_ct_CC"; then
3260
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3261
echo "${ECHO_T}$ac_ct_CC" >&6; }
3263
{ echo "$as_me:$LINENO: result: no" >&5
3264
echo "${ECHO_T}no" >&6; }
3268
test -n "$ac_ct_CC" && break
3271
if test "x$ac_ct_CC" = x; then
3274
case $cross_compiling:$ac_tool_warned in
3276
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3277
whose name does not start with the host triplet. If you think this
3278
configuration is useful to you, please write to autoconf@gnu.org." >&5
3279
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3280
whose name does not start with the host triplet. If you think this
3281
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3282
ac_tool_warned=yes ;;
3291
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3292
See \`config.log' for more details." >&5
3293
echo "$as_me: error: no acceptable C compiler found in \$PATH
3294
See \`config.log' for more details." >&2;}
3295
{ (exit 1); exit 1; }; }
3297
# Provide some information about the compiler.
3298
echo "$as_me:$LINENO: checking for C compiler version" >&5
3299
ac_compiler=`set X $ac_compile; echo $2`
3300
{ (ac_try="$ac_compiler --version >&5"
3302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303
*) ac_try_echo=$ac_try;;
3305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306
(eval "$ac_compiler --version >&5") 2>&5
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); }
3310
{ (ac_try="$ac_compiler -v >&5"
3312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313
*) ac_try_echo=$ac_try;;
3315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316
(eval "$ac_compiler -v >&5") 2>&5
3318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319
(exit $ac_status); }
3320
{ (ac_try="$ac_compiler -V >&5"
3322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323
*) ac_try_echo=$ac_try;;
3325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326
(eval "$ac_compiler -V >&5") 2>&5
3328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329
(exit $ac_status); }
3331
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3332
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3333
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3334
echo $ECHO_N "(cached) $ECHO_C" >&6
3336
cat >conftest.$ac_ext <<_ACEOF
3339
cat confdefs.h >>conftest.$ac_ext
3340
cat >>conftest.$ac_ext <<_ACEOF
3341
/* end confdefs.h. */
3354
rm -f conftest.$ac_objext
3355
if { (ac_try="$ac_compile"
3357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358
*) ac_try_echo=$ac_try;;
3360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361
(eval "$ac_compile") 2>conftest.er1
3363
grep -v '^ *+' conftest.er1 >conftest.err
3365
cat conftest.err >&5
3366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367
(exit $ac_status); } && {
3368
test -z "$ac_c_werror_flag" ||
3369
test ! -s conftest.err
3370
} && test -s conftest.$ac_objext; then
3373
echo "$as_me: failed program was:" >&5
3374
sed 's/^/| /' conftest.$ac_ext >&5
3379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3384
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3385
GCC=`test $ac_compiler_gnu = yes && echo yes`
3386
ac_test_CFLAGS=${CFLAGS+set}
3387
ac_save_CFLAGS=$CFLAGS
3388
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3389
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3390
if test "${ac_cv_prog_cc_g+set}" = set; then
3391
echo $ECHO_N "(cached) $ECHO_C" >&6
3393
ac_save_c_werror_flag=$ac_c_werror_flag
3394
ac_c_werror_flag=yes
3397
cat >conftest.$ac_ext <<_ACEOF
3400
cat confdefs.h >>conftest.$ac_ext
3401
cat >>conftest.$ac_ext <<_ACEOF
3402
/* end confdefs.h. */
3412
rm -f conftest.$ac_objext
3413
if { (ac_try="$ac_compile"
3415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416
*) ac_try_echo=$ac_try;;
3418
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419
(eval "$ac_compile") 2>conftest.er1
3421
grep -v '^ *+' conftest.er1 >conftest.err
3423
cat conftest.err >&5
3424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425
(exit $ac_status); } && {
3426
test -z "$ac_c_werror_flag" ||
3427
test ! -s conftest.err
3428
} && test -s conftest.$ac_objext; then
3431
echo "$as_me: failed program was:" >&5
3432
sed 's/^/| /' conftest.$ac_ext >&5
3435
cat >conftest.$ac_ext <<_ACEOF
3438
cat confdefs.h >>conftest.$ac_ext
3439
cat >>conftest.$ac_ext <<_ACEOF
3440
/* end confdefs.h. */
3450
rm -f conftest.$ac_objext
3451
if { (ac_try="$ac_compile"
3453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454
*) ac_try_echo=$ac_try;;
3456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457
(eval "$ac_compile") 2>conftest.er1
3459
grep -v '^ *+' conftest.er1 >conftest.err
3461
cat conftest.err >&5
3462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463
(exit $ac_status); } && {
3464
test -z "$ac_c_werror_flag" ||
3465
test ! -s conftest.err
3466
} && test -s conftest.$ac_objext; then
3469
echo "$as_me: failed program was:" >&5
3470
sed 's/^/| /' conftest.$ac_ext >&5
3472
ac_c_werror_flag=$ac_save_c_werror_flag
3474
cat >conftest.$ac_ext <<_ACEOF
3477
cat confdefs.h >>conftest.$ac_ext
3478
cat >>conftest.$ac_ext <<_ACEOF
3479
/* end confdefs.h. */
3489
rm -f conftest.$ac_objext
3490
if { (ac_try="$ac_compile"
3492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493
*) ac_try_echo=$ac_try;;
3495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496
(eval "$ac_compile") 2>conftest.er1
3498
grep -v '^ *+' conftest.er1 >conftest.err
3500
cat conftest.err >&5
3501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
(exit $ac_status); } && {
3503
test -z "$ac_c_werror_flag" ||
3504
test ! -s conftest.err
3505
} && test -s conftest.$ac_objext; then
3508
echo "$as_me: failed program was:" >&5
3509
sed 's/^/| /' conftest.$ac_ext >&5
3514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521
ac_c_werror_flag=$ac_save_c_werror_flag
3523
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3524
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3525
if test "$ac_test_CFLAGS" = set; then
3526
CFLAGS=$ac_save_CFLAGS
3527
elif test $ac_cv_prog_cc_g = yes; then
3528
if test "$GCC" = yes; then
3534
if test "$GCC" = yes; then
3540
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3541
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3542
if test "${ac_cv_prog_cc_c89+set}" = set; then
3543
echo $ECHO_N "(cached) $ECHO_C" >&6
3545
ac_cv_prog_cc_c89=no
3547
cat >conftest.$ac_ext <<_ACEOF
3550
cat confdefs.h >>conftest.$ac_ext
3551
cat >>conftest.$ac_ext <<_ACEOF
3552
/* end confdefs.h. */
3555
#include <sys/types.h>
3556
#include <sys/stat.h>
3557
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3558
struct buf { int x; };
3559
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3560
static char *e (p, i)
3566
static char *f (char * (*g) (char **, int), char **p, ...)
3571
s = g (p, va_arg (v,int));
3576
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3577
function prototypes and stuff, but not '\xHH' hex character constants.
3578
These don't provoke an error unfortunately, instead are silently treated
3579
as 'x'. The following induces an error, until -std is added to get
3580
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3581
array size at least. It's necessary to write '\x00'==0 to get something
3582
that's true only with -std. */
3583
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3585
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3586
inside strings and character constants. */
3588
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3590
int test (int i, double x);
3591
struct s1 {int (*f) (int a);};
3592
struct s2 {int (*f) (double a);};
3593
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3599
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3604
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3605
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607
CC="$ac_save_CC $ac_arg"
3608
rm -f conftest.$ac_objext
3609
if { (ac_try="$ac_compile"
3611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
*) ac_try_echo=$ac_try;;
3614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615
(eval "$ac_compile") 2>conftest.er1
3617
grep -v '^ *+' conftest.er1 >conftest.err
3619
cat conftest.err >&5
3620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
(exit $ac_status); } && {
3622
test -z "$ac_c_werror_flag" ||
3623
test ! -s conftest.err
3624
} && test -s conftest.$ac_objext; then
3625
ac_cv_prog_cc_c89=$ac_arg
3627
echo "$as_me: failed program was:" >&5
3628
sed 's/^/| /' conftest.$ac_ext >&5
3633
rm -f core conftest.err conftest.$ac_objext
3634
test "x$ac_cv_prog_cc_c89" != "xno" && break
3636
rm -f conftest.$ac_ext
3641
case "x$ac_cv_prog_cc_c89" in
3643
{ echo "$as_me:$LINENO: result: none needed" >&5
3644
echo "${ECHO_T}none needed" >&6; } ;;
3646
{ echo "$as_me:$LINENO: result: unsupported" >&5
3647
echo "${ECHO_T}unsupported" >&6; } ;;
3649
CC="$CC $ac_cv_prog_cc_c89"
3650
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3651
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3656
ac_cpp='$CPP $CPPFLAGS'
3657
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
depcc="$CC" am_compiler_list=
3663
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3664
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3665
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3666
echo $ECHO_N "(cached) $ECHO_C" >&6
3668
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3669
# We make a subdir and do the tests there. Otherwise we can end up
3670
# making bogus files that we don't know about and never remove. For
3671
# instance it was reported that on HP-UX the gcc test will end up
3672
# making a dummy file named `D' -- because `-MD' means `put the output
3675
# Copy depcomp to subdir because otherwise we won't find it if we're
3676
# using a relative directory.
3677
cp "$am_depcomp" conftest.dir
3679
# We will build objects and dependencies in a subdirectory because
3680
# it helps to detect inapplicable dependency modes. For instance
3681
# both Tru64's cc and ICC support -MD to output dependencies as a
3682
# side effect of compilation, but ICC will put the dependencies in
3683
# the current directory while Tru64 will put them in the object
3687
am_cv_CC_dependencies_compiler_type=none
3688
if test "$am_compiler_list" = ""; then
3689
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3691
for depmode in $am_compiler_list; do
3692
# Setup a source with many dependencies, because some compilers
3693
# like to wrap large dependency lists on column 80 (with \), and
3694
# we should not choose a depcomp mode which is confused by this.
3696
# We need to recreate these files for each test, as the compiler may
3697
# overwrite some of them when testing with obscure command lines.
3698
# This happens at least with the AIX C compiler.
3700
for i in 1 2 3 4 5 6; do
3701
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3702
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3703
# Solaris 8's {/usr,}/bin/sh.
3704
touch sub/conftst$i.h
3706
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3710
# after this tag, mechanisms are not by side-effect, so they'll
3711
# only be used when explicitly requested
3712
if test "x$enable_dependency_tracking" = xyes; then
3720
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3721
# mode. It turns out that the SunPro C++ compiler does not properly
3722
# handle `-M -o', and we need to detect this.
3723
if depmode=$depmode \
3724
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3725
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3727
>/dev/null 2>conftest.err &&
3728
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3729
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3730
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3731
# icc doesn't choke on unknown options, it will just issue warnings
3732
# or remarks (even with -Werror). So we grep stderr for any message
3733
# that says an option was ignored or not supported.
3734
# When given -MP, icc 7.0 and 7.1 complain thusly:
3735
# icc: Command line warning: ignoring option '-M'; no argument required
3736
# The diagnosis changed in icc 8.0:
3737
# icc: Command line remark: option '-MP' not supported
3738
if (grep 'ignoring option' conftest.err ||
3739
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3740
am_cv_CC_dependencies_compiler_type=$depmode
3749
am_cv_CC_dependencies_compiler_type=none
3753
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3754
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3755
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3760
test "x$enable_dependency_tracking" != xno \
3761
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3763
am__fastdepCC_FALSE='#'
3765
am__fastdepCC_TRUE='#'
3766
am__fastdepCC_FALSE=
3771
# Checks for libraries.
3773
# Checks for header files.
3776
ac_cpp='$CPP $CPPFLAGS'
3777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3781
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3782
# On Suns, sometimes $CPP names a directory.
3783
if test -n "$CPP" && test -d "$CPP"; then
3786
if test -z "$CPP"; then
3787
if test "${ac_cv_prog_CPP+set}" = set; then
3788
echo $ECHO_N "(cached) $ECHO_C" >&6
3790
# Double quotes because CPP needs to be expanded
3791
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794
for ac_c_preproc_warn_flag in '' yes
3796
# Use a header file that comes with gcc, so configuring glibc
3797
# with a fresh cross-compiler works.
3798
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799
# <limits.h> exists even on freestanding compilers.
3800
# On the NeXT, cc -E runs the code through the compiler's parser,
3801
# not just through cpp. "Syntax error" is here to catch this case.
3802
cat >conftest.$ac_ext <<_ACEOF
3805
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h. */
3809
# include <limits.h>
3811
# include <assert.h>
3815
if { (ac_try="$ac_cpp conftest.$ac_ext"
3817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818
*) ac_try_echo=$ac_try;;
3820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3823
grep -v '^ *+' conftest.er1 >conftest.err
3825
cat conftest.err >&5
3826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827
(exit $ac_status); } >/dev/null && {
3828
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829
test ! -s conftest.err
3833
echo "$as_me: failed program was:" >&5
3834
sed 's/^/| /' conftest.$ac_ext >&5
3836
# Broken: fails on valid input.
3840
rm -f conftest.err conftest.$ac_ext
3842
# OK, works on sane cases. Now check whether nonexistent headers
3843
# can be detected and how.
3844
cat >conftest.$ac_ext <<_ACEOF
3847
cat confdefs.h >>conftest.$ac_ext
3848
cat >>conftest.$ac_ext <<_ACEOF
3849
/* end confdefs.h. */
3850
#include <ac_nonexistent.h>
3852
if { (ac_try="$ac_cpp conftest.$ac_ext"
3854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855
*) ac_try_echo=$ac_try;;
3857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3860
grep -v '^ *+' conftest.er1 >conftest.err
3862
cat conftest.err >&5
3863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
(exit $ac_status); } >/dev/null && {
3865
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3866
test ! -s conftest.err
3868
# Broken: success on invalid input.
3871
echo "$as_me: failed program was:" >&5
3872
sed 's/^/| /' conftest.$ac_ext >&5
3874
# Passes both tests.
3879
rm -f conftest.err conftest.$ac_ext
3882
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883
rm -f conftest.err conftest.$ac_ext
3884
if $ac_preproc_ok; then
3896
{ echo "$as_me:$LINENO: result: $CPP" >&5
3897
echo "${ECHO_T}$CPP" >&6; }
3899
for ac_c_preproc_warn_flag in '' yes
3901
# Use a header file that comes with gcc, so configuring glibc
3902
# with a fresh cross-compiler works.
3903
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904
# <limits.h> exists even on freestanding compilers.
3905
# On the NeXT, cc -E runs the code through the compiler's parser,
3906
# not just through cpp. "Syntax error" is here to catch this case.
3907
cat >conftest.$ac_ext <<_ACEOF
3910
cat confdefs.h >>conftest.$ac_ext
3911
cat >>conftest.$ac_ext <<_ACEOF
3912
/* end confdefs.h. */
3914
# include <limits.h>
3916
# include <assert.h>
3920
if { (ac_try="$ac_cpp conftest.$ac_ext"
3922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923
*) ac_try_echo=$ac_try;;
3925
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3928
grep -v '^ *+' conftest.er1 >conftest.err
3930
cat conftest.err >&5
3931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932
(exit $ac_status); } >/dev/null && {
3933
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934
test ! -s conftest.err
3938
echo "$as_me: failed program was:" >&5
3939
sed 's/^/| /' conftest.$ac_ext >&5
3941
# Broken: fails on valid input.
3945
rm -f conftest.err conftest.$ac_ext
3947
# OK, works on sane cases. Now check whether nonexistent headers
3948
# can be detected and how.
3949
cat >conftest.$ac_ext <<_ACEOF
3952
cat confdefs.h >>conftest.$ac_ext
3953
cat >>conftest.$ac_ext <<_ACEOF
3954
/* end confdefs.h. */
3955
#include <ac_nonexistent.h>
3957
if { (ac_try="$ac_cpp conftest.$ac_ext"
3959
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960
*) ac_try_echo=$ac_try;;
3962
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3965
grep -v '^ *+' conftest.er1 >conftest.err
3967
cat conftest.err >&5
3968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969
(exit $ac_status); } >/dev/null && {
3970
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971
test ! -s conftest.err
3973
# Broken: success on invalid input.
3976
echo "$as_me: failed program was:" >&5
3977
sed 's/^/| /' conftest.$ac_ext >&5
3979
# Passes both tests.
3984
rm -f conftest.err conftest.$ac_ext
3987
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988
rm -f conftest.err conftest.$ac_ext
3989
if $ac_preproc_ok; then
3992
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3993
See \`config.log' for more details." >&5
3994
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3995
See \`config.log' for more details." >&2;}
3996
{ (exit 1); exit 1; }; }
4000
ac_cpp='$CPP $CPPFLAGS'
4001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4007
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4008
if test "${ac_cv_path_GREP+set}" = set; then
4009
echo $ECHO_N "(cached) $ECHO_C" >&6
4011
# Extract the first word of "grep ggrep" to use in msg output
4012
if test -z "$GREP"; then
4013
set dummy grep ggrep; ac_prog_name=$2
4014
if test "${ac_cv_path_GREP+set}" = set; then
4015
echo $ECHO_N "(cached) $ECHO_C" >&6
4017
ac_path_GREP_found=false
4018
# Loop through the user's path and test for each of PROGNAME-LIST
4019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023
test -z "$as_dir" && as_dir=.
4024
for ac_prog in grep ggrep; do
4025
for ac_exec_ext in '' $ac_executable_extensions; do
4026
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028
# Check for GNU ac_path_GREP and select it if it is found.
4029
# Check for GNU $ac_path_GREP
4030
case `"$ac_path_GREP" --version 2>&1` in
4032
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4035
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4038
cat "conftest.in" "conftest.in" >"conftest.tmp"
4039
mv "conftest.tmp" "conftest.in"
4040
cp "conftest.in" "conftest.nl"
4041
echo 'GREP' >> "conftest.nl"
4042
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044
ac_count=`expr $ac_count + 1`
4045
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046
# Best one so far, save it but keep looking for a better one
4047
ac_cv_path_GREP="$ac_path_GREP"
4048
ac_path_GREP_max=$ac_count
4050
# 10*(2^10) chars as input seems more than enough
4051
test $ac_count -gt 10 && break
4053
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057
$ac_path_GREP_found && break 3
4067
GREP="$ac_cv_path_GREP"
4068
if test -z "$GREP"; then
4069
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4070
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4071
{ (exit 1); exit 1; }; }
4075
ac_cv_path_GREP=$GREP
4080
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4081
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4082
GREP="$ac_cv_path_GREP"
4085
{ echo "$as_me:$LINENO: checking for egrep" >&5
4086
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4087
if test "${ac_cv_path_EGREP+set}" = set; then
4088
echo $ECHO_N "(cached) $ECHO_C" >&6
4090
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4091
then ac_cv_path_EGREP="$GREP -E"
4093
# Extract the first word of "egrep" to use in msg output
4094
if test -z "$EGREP"; then
4095
set dummy egrep; ac_prog_name=$2
4096
if test "${ac_cv_path_EGREP+set}" = set; then
4097
echo $ECHO_N "(cached) $ECHO_C" >&6
4099
ac_path_EGREP_found=false
4100
# Loop through the user's path and test for each of PROGNAME-LIST
4101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105
test -z "$as_dir" && as_dir=.
4106
for ac_prog in egrep; do
4107
for ac_exec_ext in '' $ac_executable_extensions; do
4108
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4110
# Check for GNU ac_path_EGREP and select it if it is found.
4111
# Check for GNU $ac_path_EGREP
4112
case `"$ac_path_EGREP" --version 2>&1` in
4114
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4117
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4120
cat "conftest.in" "conftest.in" >"conftest.tmp"
4121
mv "conftest.tmp" "conftest.in"
4122
cp "conftest.in" "conftest.nl"
4123
echo 'EGREP' >> "conftest.nl"
4124
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126
ac_count=`expr $ac_count + 1`
4127
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128
# Best one so far, save it but keep looking for a better one
4129
ac_cv_path_EGREP="$ac_path_EGREP"
4130
ac_path_EGREP_max=$ac_count
4132
# 10*(2^10) chars as input seems more than enough
4133
test $ac_count -gt 10 && break
4135
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139
$ac_path_EGREP_found && break 3
4149
EGREP="$ac_cv_path_EGREP"
4150
if test -z "$EGREP"; then
4151
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4152
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4153
{ (exit 1); exit 1; }; }
4157
ac_cv_path_EGREP=$EGREP
4163
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4164
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4165
EGREP="$ac_cv_path_EGREP"
4168
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4169
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4170
if test "${ac_cv_header_stdc+set}" = set; then
4171
echo $ECHO_N "(cached) $ECHO_C" >&6
4173
cat >conftest.$ac_ext <<_ACEOF
4176
cat confdefs.h >>conftest.$ac_ext
4177
cat >>conftest.$ac_ext <<_ACEOF
4178
/* end confdefs.h. */
4192
rm -f conftest.$ac_objext
4193
if { (ac_try="$ac_compile"
4195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196
*) ac_try_echo=$ac_try;;
4198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199
(eval "$ac_compile") 2>conftest.er1
4201
grep -v '^ *+' conftest.er1 >conftest.err
4203
cat conftest.err >&5
4204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205
(exit $ac_status); } && {
4206
test -z "$ac_c_werror_flag" ||
4207
test ! -s conftest.err
4208
} && test -s conftest.$ac_objext; then
4209
ac_cv_header_stdc=yes
4211
echo "$as_me: failed program was:" >&5
4212
sed 's/^/| /' conftest.$ac_ext >&5
4214
ac_cv_header_stdc=no
4217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219
if test $ac_cv_header_stdc = yes; then
4220
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4221
cat >conftest.$ac_ext <<_ACEOF
4224
cat confdefs.h >>conftest.$ac_ext
4225
cat >>conftest.$ac_ext <<_ACEOF
4226
/* end confdefs.h. */
4230
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231
$EGREP "memchr" >/dev/null 2>&1; then
4234
ac_cv_header_stdc=no
4240
if test $ac_cv_header_stdc = yes; then
4241
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242
cat >conftest.$ac_ext <<_ACEOF
4245
cat confdefs.h >>conftest.$ac_ext
4246
cat >>conftest.$ac_ext <<_ACEOF
4247
/* end confdefs.h. */
4251
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252
$EGREP "free" >/dev/null 2>&1; then
4255
ac_cv_header_stdc=no
4261
if test $ac_cv_header_stdc = yes; then
4262
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4263
if test "$cross_compiling" = yes; then
4266
cat >conftest.$ac_ext <<_ACEOF
4269
cat confdefs.h >>conftest.$ac_ext
4270
cat >>conftest.$ac_ext <<_ACEOF
4271
/* end confdefs.h. */
4274
#if ((' ' & 0x0FF) == 0x020)
4275
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4276
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278
# define ISLOWER(c) \
4279
(('a' <= (c) && (c) <= 'i') \
4280
|| ('j' <= (c) && (c) <= 'r') \
4281
|| ('s' <= (c) && (c) <= 'z'))
4282
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4285
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290
for (i = 0; i < 256; i++)
4291
if (XOR (islower (i), ISLOWER (i))
4292
|| toupper (i) != TOUPPER (i))
4297
rm -f conftest$ac_exeext
4298
if { (ac_try="$ac_link"
4300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301
*) ac_try_echo=$ac_try;;
4303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304
(eval "$ac_link") 2>&5
4306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4308
{ (case "(($ac_try" in
4309
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310
*) ac_try_echo=$ac_try;;
4312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313
(eval "$ac_try") 2>&5
4315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
(exit $ac_status); }; }; then
4319
echo "$as_me: program exited with status $ac_status" >&5
4320
echo "$as_me: failed program was:" >&5
4321
sed 's/^/| /' conftest.$ac_ext >&5
4324
ac_cv_header_stdc=no
4326
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4332
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4333
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4334
if test $ac_cv_header_stdc = yes; then
4336
cat >>confdefs.h <<\_ACEOF
4337
#define STDC_HEADERS 1
4342
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353
inttypes.h stdint.h unistd.h
4355
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4357
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4358
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4359
echo $ECHO_N "(cached) $ECHO_C" >&6
4361
cat >conftest.$ac_ext <<_ACEOF
4364
cat confdefs.h >>conftest.$ac_ext
4365
cat >>conftest.$ac_ext <<_ACEOF
4366
/* end confdefs.h. */
4367
$ac_includes_default
4369
#include <$ac_header>
4371
rm -f conftest.$ac_objext
4372
if { (ac_try="$ac_compile"
4374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375
*) ac_try_echo=$ac_try;;
4377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378
(eval "$ac_compile") 2>conftest.er1
4380
grep -v '^ *+' conftest.er1 >conftest.err
4382
cat conftest.err >&5
4383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384
(exit $ac_status); } && {
4385
test -z "$ac_c_werror_flag" ||
4386
test ! -s conftest.err
4387
} && test -s conftest.$ac_objext; then
4388
eval "$as_ac_Header=yes"
4390
echo "$as_me: failed program was:" >&5
4391
sed 's/^/| /' conftest.$ac_ext >&5
4393
eval "$as_ac_Header=no"
4396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398
ac_res=`eval echo '${'$as_ac_Header'}'`
4399
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4400
echo "${ECHO_T}$ac_res" >&6; }
4401
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4402
cat >>confdefs.h <<_ACEOF
4403
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414
for ac_header in stdlib.h sys/time.h unistd.h
4416
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4418
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4419
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4420
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4421
echo $ECHO_N "(cached) $ECHO_C" >&6
4423
ac_res=`eval echo '${'$as_ac_Header'}'`
4424
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4425
echo "${ECHO_T}$ac_res" >&6; }
4427
# Is the header compilable?
4428
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4429
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4430
cat >conftest.$ac_ext <<_ACEOF
4433
cat confdefs.h >>conftest.$ac_ext
4434
cat >>conftest.$ac_ext <<_ACEOF
4435
/* end confdefs.h. */
4436
$ac_includes_default
4437
#include <$ac_header>
4439
rm -f conftest.$ac_objext
4440
if { (ac_try="$ac_compile"
4442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443
*) ac_try_echo=$ac_try;;
4445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446
(eval "$ac_compile") 2>conftest.er1
4448
grep -v '^ *+' conftest.er1 >conftest.err
4450
cat conftest.err >&5
4451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452
(exit $ac_status); } && {
4453
test -z "$ac_c_werror_flag" ||
4454
test ! -s conftest.err
4455
} && test -s conftest.$ac_objext; then
4456
ac_header_compiler=yes
4458
echo "$as_me: failed program was:" >&5
4459
sed 's/^/| /' conftest.$ac_ext >&5
4461
ac_header_compiler=no
4464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466
echo "${ECHO_T}$ac_header_compiler" >&6; }
4468
# Is the header present?
4469
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4471
cat >conftest.$ac_ext <<_ACEOF
4474
cat confdefs.h >>conftest.$ac_ext
4475
cat >>conftest.$ac_ext <<_ACEOF
4476
/* end confdefs.h. */
4477
#include <$ac_header>
4479
if { (ac_try="$ac_cpp conftest.$ac_ext"
4481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482
*) ac_try_echo=$ac_try;;
4484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4487
grep -v '^ *+' conftest.er1 >conftest.err
4489
cat conftest.err >&5
4490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491
(exit $ac_status); } >/dev/null && {
4492
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4493
test ! -s conftest.err
4495
ac_header_preproc=yes
4497
echo "$as_me: failed program was:" >&5
4498
sed 's/^/| /' conftest.$ac_ext >&5
4500
ac_header_preproc=no
4503
rm -f conftest.err conftest.$ac_ext
4504
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4505
echo "${ECHO_T}$ac_header_preproc" >&6; }
4507
# So? What about this header?
4508
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4510
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4511
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4512
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4513
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4514
ac_header_preproc=yes
4517
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4518
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4519
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4520
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4521
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4522
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4523
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4524
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4525
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4528
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4532
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4533
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4534
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4535
echo $ECHO_N "(cached) $ECHO_C" >&6
4537
eval "$as_ac_Header=\$ac_header_preproc"
4539
ac_res=`eval echo '${'$as_ac_Header'}'`
4540
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4541
echo "${ECHO_T}$ac_res" >&6; }
4544
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4545
cat >>confdefs.h <<_ACEOF
4546
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554
# Checks for typedefs, structures, and compiler characteristics.
4555
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4556
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4557
if test "${ac_cv_header_stdbool_h+set}" = set; then
4558
echo $ECHO_N "(cached) $ECHO_C" >&6
4560
cat >conftest.$ac_ext <<_ACEOF
4563
cat confdefs.h >>conftest.$ac_ext
4564
cat >>conftest.$ac_ext <<_ACEOF
4565
/* end confdefs.h. */
4567
#include <stdbool.h>
4569
"error: bool is not defined"
4572
"error: false is not defined"
4575
"error: false is not 0"
4578
"error: true is not defined"
4581
"error: true is not 1"
4583
#ifndef __bool_true_false_are_defined
4584
"error: __bool_true_false_are_defined is not defined"
4587
struct s { _Bool s: 1; _Bool t; } s;
4589
char a[true == 1 ? 1 : -1];
4590
char b[false == 0 ? 1 : -1];
4591
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4592
char d[(bool) 0.5 == true ? 1 : -1];
4594
char f[(_Bool) 0.0 == false ? 1 : -1];
4596
char h[sizeof (_Bool)];
4598
enum { j = false, k = true, l = false * true, m = true * 256 };
4600
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4601
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4602
# if defined __xlc__ || defined __GNUC__
4603
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4604
reported by James Lemley on 2005-10-05; see
4605
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4606
This test is not quite right, since xlc is allowed to
4607
reject this program, as the initializer for xlcbug is
4608
not one of the forms that C requires support for.
4609
However, doing the test right would require a runtime
4610
test, and that would make cross-compilation harder.
4611
Let us hope that IBM fixes the xlc bug, and also adds
4612
support for this kind of constant expression. In the
4613
meantime, this test will reject xlc, which is OK, since
4614
our stdbool.h substitute should suffice. We also test
4615
this with GCC, where it should work, to detect more
4616
quickly whether someone messes up the test in the
4618
char digs[] = "0123456789";
4619
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4621
/* Catch a bug in an HP-UX C compiler. See
4622
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4623
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4634
/* Refer to every declared value, to avoid compiler optimizations. */
4635
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4636
+ !m + !n + !o + !p + !q + !pq);
4642
rm -f conftest.$ac_objext
4643
if { (ac_try="$ac_compile"
4645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646
*) ac_try_echo=$ac_try;;
4648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649
(eval "$ac_compile") 2>conftest.er1
4651
grep -v '^ *+' conftest.er1 >conftest.err
4653
cat conftest.err >&5
4654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
(exit $ac_status); } && {
4656
test -z "$ac_c_werror_flag" ||
4657
test ! -s conftest.err
4658
} && test -s conftest.$ac_objext; then
4659
ac_cv_header_stdbool_h=yes
4661
echo "$as_me: failed program was:" >&5
4662
sed 's/^/| /' conftest.$ac_ext >&5
4664
ac_cv_header_stdbool_h=no
4667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4670
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4671
{ echo "$as_me:$LINENO: checking for _Bool" >&5
4672
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4673
if test "${ac_cv_type__Bool+set}" = set; then
4674
echo $ECHO_N "(cached) $ECHO_C" >&6
4676
cat >conftest.$ac_ext <<_ACEOF
4679
cat confdefs.h >>conftest.$ac_ext
4680
cat >>conftest.$ac_ext <<_ACEOF
4681
/* end confdefs.h. */
4682
$ac_includes_default
4683
typedef _Bool ac__type_new_;
4687
if ((ac__type_new_ *) 0)
4689
if (sizeof (ac__type_new_))
4695
rm -f conftest.$ac_objext
4696
if { (ac_try="$ac_compile"
4698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699
*) ac_try_echo=$ac_try;;
4701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702
(eval "$ac_compile") 2>conftest.er1
4704
grep -v '^ *+' conftest.er1 >conftest.err
4706
cat conftest.err >&5
4707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
(exit $ac_status); } && {
4709
test -z "$ac_c_werror_flag" ||
4710
test ! -s conftest.err
4711
} && test -s conftest.$ac_objext; then
4712
ac_cv_type__Bool=yes
4714
echo "$as_me: failed program was:" >&5
4715
sed 's/^/| /' conftest.$ac_ext >&5
4720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4723
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4724
if test $ac_cv_type__Bool = yes; then
4726
cat >>confdefs.h <<_ACEOF
4727
#define HAVE__BOOL 1
4733
if test $ac_cv_header_stdbool_h = yes; then
4735
cat >>confdefs.h <<\_ACEOF
4736
#define HAVE_STDBOOL_H 1
4741
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4742
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4743
if test "${ac_cv_c_const+set}" = set; then
4744
echo $ECHO_N "(cached) $ECHO_C" >&6
4746
cat >conftest.$ac_ext <<_ACEOF
4749
cat confdefs.h >>conftest.$ac_ext
4750
cat >>conftest.$ac_ext <<_ACEOF
4751
/* end confdefs.h. */
4756
/* FIXME: Include the comments suggested by Paul. */
4758
/* Ultrix mips cc rejects this. */
4759
typedef int charset[2];
4761
/* SunOS 4.1.1 cc rejects this. */
4762
char const *const *pcpcc;
4764
/* NEC SVR4.0.2 mips cc rejects this. */
4765
struct point {int x, y;};
4766
static struct point const zero = {0,0};
4767
/* AIX XL C 1.02.0.0 rejects this.
4768
It does not let you subtract one const X* pointer from another in
4769
an arm of an if-expression whose if-part is not a constant
4771
const char *g = "string";
4772
pcpcc = &g + (g ? g-g : 0);
4773
/* HPUX 7.0 cc rejects these. */
4775
ppc = (char**) pcpcc;
4776
pcpcc = (char const *const *) ppc;
4777
{ /* SCO 3.2v4 cc rejects this. */
4779
char const *s = 0 ? (char *) 0 : (char const *) 0;
4784
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4786
const int *foo = &x[0];
4789
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4790
typedef const int *iptr;
4794
{ /* AIX XL C 1.02.0.0 rejects this saying
4795
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4796
struct s { int j; const int *ap[3]; };
4797
struct s *b; b->j = 5;
4799
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4803
return !cs[0] && !zero.x;
4810
rm -f conftest.$ac_objext
4811
if { (ac_try="$ac_compile"
4813
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814
*) ac_try_echo=$ac_try;;
4816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817
(eval "$ac_compile") 2>conftest.er1
4819
grep -v '^ *+' conftest.er1 >conftest.err
4821
cat conftest.err >&5
4822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823
(exit $ac_status); } && {
4824
test -z "$ac_c_werror_flag" ||
4825
test ! -s conftest.err
4826
} && test -s conftest.$ac_objext; then
4829
echo "$as_me: failed program was:" >&5
4830
sed 's/^/| /' conftest.$ac_ext >&5
4835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4838
echo "${ECHO_T}$ac_cv_c_const" >&6; }
4839
if test $ac_cv_c_const = no; then
4841
cat >>confdefs.h <<\_ACEOF
4847
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4848
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4849
if test "${ac_cv_header_time+set}" = set; then
4850
echo $ECHO_N "(cached) $ECHO_C" >&6
4852
cat >conftest.$ac_ext <<_ACEOF
4855
cat confdefs.h >>conftest.$ac_ext
4856
cat >>conftest.$ac_ext <<_ACEOF
4857
/* end confdefs.h. */
4858
#include <sys/types.h>
4859
#include <sys/time.h>
4865
if ((struct tm *) 0)
4871
rm -f conftest.$ac_objext
4872
if { (ac_try="$ac_compile"
4874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875
*) ac_try_echo=$ac_try;;
4877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878
(eval "$ac_compile") 2>conftest.er1
4880
grep -v '^ *+' conftest.er1 >conftest.err
4882
cat conftest.err >&5
4883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884
(exit $ac_status); } && {
4885
test -z "$ac_c_werror_flag" ||
4886
test ! -s conftest.err
4887
} && test -s conftest.$ac_objext; then
4888
ac_cv_header_time=yes
4890
echo "$as_me: failed program was:" >&5
4891
sed 's/^/| /' conftest.$ac_ext >&5
4893
ac_cv_header_time=no
4896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4899
echo "${ECHO_T}$ac_cv_header_time" >&6; }
4900
if test $ac_cv_header_time = yes; then
4902
cat >>confdefs.h <<\_ACEOF
4903
#define TIME_WITH_SYS_TIME 1
4910
{ echo "$as_me:$LINENO: checking whether atanhl is declared" >&5
4911
echo $ECHO_N "checking whether atanhl is declared... $ECHO_C" >&6; }
4912
if test "${ac_cv_have_decl_atanhl+set}" = set; then
4913
echo $ECHO_N "(cached) $ECHO_C" >&6
4915
cat >conftest.$ac_ext <<_ACEOF
4918
cat confdefs.h >>conftest.$ac_ext
4919
cat >>conftest.$ac_ext <<_ACEOF
4920
/* end confdefs.h. */
4934
rm -f conftest.$ac_objext
4935
if { (ac_try="$ac_compile"
4937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938
*) ac_try_echo=$ac_try;;
4940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941
(eval "$ac_compile") 2>conftest.er1
4943
grep -v '^ *+' conftest.er1 >conftest.err
4945
cat conftest.err >&5
4946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
(exit $ac_status); } && {
4948
test -z "$ac_c_werror_flag" ||
4949
test ! -s conftest.err
4950
} && test -s conftest.$ac_objext; then
4951
ac_cv_have_decl_atanhl=yes
4953
echo "$as_me: failed program was:" >&5
4954
sed 's/^/| /' conftest.$ac_ext >&5
4956
ac_cv_have_decl_atanhl=no
4959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_atanhl" >&5
4962
echo "${ECHO_T}$ac_cv_have_decl_atanhl" >&6; }
4963
if test $ac_cv_have_decl_atanhl = yes; then
4965
{ echo "$as_me:$LINENO: checking for atanhl in -lm" >&5
4966
echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6; }
4967
if test "${ac_cv_lib_m_atanhl+set}" = set; then
4968
echo $ECHO_N "(cached) $ECHO_C" >&6
4970
ac_check_lib_save_LIBS=$LIBS
4972
cat >conftest.$ac_ext <<_ACEOF
4975
cat confdefs.h >>conftest.$ac_ext
4976
cat >>conftest.$ac_ext <<_ACEOF
4977
/* end confdefs.h. */
4979
/* Override any GCC internal prototype to avoid an error.
4980
Use char because int might match the return type of a GCC
4981
builtin and then its argument prototype would still apply. */
4994
rm -f conftest.$ac_objext conftest$ac_exeext
4995
if { (ac_try="$ac_link"
4997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998
*) ac_try_echo=$ac_try;;
5000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001
(eval "$ac_link") 2>conftest.er1
5003
grep -v '^ *+' conftest.er1 >conftest.err
5005
cat conftest.err >&5
5006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
(exit $ac_status); } && {
5008
test -z "$ac_c_werror_flag" ||
5009
test ! -s conftest.err
5010
} && test -s conftest$ac_exeext &&
5011
$as_test_x conftest$ac_exeext; then
5012
ac_cv_lib_m_atanhl=yes
5014
echo "$as_me: failed program was:" >&5
5015
sed 's/^/| /' conftest.$ac_ext >&5
5017
ac_cv_lib_m_atanhl=no
5020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5021
conftest$ac_exeext conftest.$ac_ext
5022
LIBS=$ac_check_lib_save_LIBS
5024
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5
5025
echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6; }
5026
if test $ac_cv_lib_m_atanhl = yes; then
5027
cat >>confdefs.h <<_ACEOF
5034
CFLAGS="$CFLAGS -DNO_LONG_DOUBLE" CPPFLAGS="$CPPFLAGS -DNO_LONG_DOUBLE"
5038
CPPFLAGS="$CPPFLAGS -DNO_LONG_DOUBLE"
5043
# Checks for library functions.
5044
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5045
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5046
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5047
echo $ECHO_N "(cached) $ECHO_C" >&6
5049
rm -f conftest.sym conftest.file
5051
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5052
if test "$cross_compiling" = yes; then
5053
ac_cv_func_lstat_dereferences_slashed_symlink=no
5055
cat >conftest.$ac_ext <<_ACEOF
5058
cat confdefs.h >>conftest.$ac_ext
5059
cat >>conftest.$ac_ext <<_ACEOF
5060
/* end confdefs.h. */
5061
$ac_includes_default
5066
/* Linux will dereference the symlink and fail.
5067
That is better in the sense that it means we will not
5068
have to compile and use the lstat wrapper. */
5069
return lstat ("conftest.sym/", &sbuf) == 0;
5074
rm -f conftest$ac_exeext
5075
if { (ac_try="$ac_link"
5077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078
*) ac_try_echo=$ac_try;;
5080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081
(eval "$ac_link") 2>&5
5083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5085
{ (case "(($ac_try" in
5086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087
*) ac_try_echo=$ac_try;;
5089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090
(eval "$ac_try") 2>&5
5092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093
(exit $ac_status); }; }; then
5094
ac_cv_func_lstat_dereferences_slashed_symlink=yes
5096
echo "$as_me: program exited with status $ac_status" >&5
5097
echo "$as_me: failed program was:" >&5
5098
sed 's/^/| /' conftest.$ac_ext >&5
5101
ac_cv_func_lstat_dereferences_slashed_symlink=no
5103
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5108
# If the `ln -s' command failed, then we probably don't even
5109
# have an lstat function.
5110
ac_cv_func_lstat_dereferences_slashed_symlink=no
5112
rm -f conftest.sym conftest.file
5115
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5116
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5118
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5120
cat >>confdefs.h <<_ACEOF
5121
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5125
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5126
case " $LIBOBJS " in
5127
*" lstat.$ac_objext "* ) ;;
5128
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5134
{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
5135
echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
5136
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5137
echo $ECHO_N "(cached) $ECHO_C" >&6
5139
if test "$cross_compiling" = yes; then
5140
ac_cv_func_lstat_empty_string_bug=yes
5142
cat >conftest.$ac_ext <<_ACEOF
5145
cat confdefs.h >>conftest.$ac_ext
5146
cat >>conftest.$ac_ext <<_ACEOF
5147
/* end confdefs.h. */
5148
$ac_includes_default
5153
return lstat ("", &sbuf) == 0;
5158
rm -f conftest$ac_exeext
5159
if { (ac_try="$ac_link"
5161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162
*) ac_try_echo=$ac_try;;
5164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165
(eval "$ac_link") 2>&5
5167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5169
{ (case "(($ac_try" in
5170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171
*) ac_try_echo=$ac_try;;
5173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174
(eval "$ac_try") 2>&5
5176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177
(exit $ac_status); }; }; then
5178
ac_cv_func_lstat_empty_string_bug=no
5180
echo "$as_me: program exited with status $ac_status" >&5
5181
echo "$as_me: failed program was:" >&5
5182
sed 's/^/| /' conftest.$ac_ext >&5
5185
ac_cv_func_lstat_empty_string_bug=yes
5187
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5192
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
5193
echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
5194
if test $ac_cv_func_lstat_empty_string_bug = yes; then
5195
case " $LIBOBJS " in
5196
*" lstat.$ac_objext "* ) ;;
5197
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5202
cat >>confdefs.h <<_ACEOF
5203
#define HAVE_LSTAT_EMPTY_STRING_BUG 1
5208
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5209
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5210
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5211
echo $ECHO_N "(cached) $ECHO_C" >&6
5213
rm -f conftest.sym conftest.file
5215
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5216
if test "$cross_compiling" = yes; then
5217
ac_cv_func_lstat_dereferences_slashed_symlink=no
5219
cat >conftest.$ac_ext <<_ACEOF
5222
cat confdefs.h >>conftest.$ac_ext
5223
cat >>conftest.$ac_ext <<_ACEOF
5224
/* end confdefs.h. */
5225
$ac_includes_default
5230
/* Linux will dereference the symlink and fail.
5231
That is better in the sense that it means we will not
5232
have to compile and use the lstat wrapper. */
5233
return lstat ("conftest.sym/", &sbuf) == 0;
5238
rm -f conftest$ac_exeext
5239
if { (ac_try="$ac_link"
5241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242
*) ac_try_echo=$ac_try;;
5244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245
(eval "$ac_link") 2>&5
5247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5249
{ (case "(($ac_try" in
5250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251
*) ac_try_echo=$ac_try;;
5253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254
(eval "$ac_try") 2>&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); }; }; then
5258
ac_cv_func_lstat_dereferences_slashed_symlink=yes
5260
echo "$as_me: program exited with status $ac_status" >&5
5261
echo "$as_me: failed program was:" >&5
5262
sed 's/^/| /' conftest.$ac_ext >&5
5265
ac_cv_func_lstat_dereferences_slashed_symlink=no
5267
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5272
# If the `ln -s' command failed, then we probably don't even
5273
# have an lstat function.
5274
ac_cv_func_lstat_dereferences_slashed_symlink=no
5276
rm -f conftest.sym conftest.file
5279
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5280
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5282
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5284
cat >>confdefs.h <<_ACEOF
5285
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5289
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5290
case " $LIBOBJS " in
5291
*" lstat.$ac_objext "* ) ;;
5292
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5301
for ac_func in gettimeofday mkdir pow
5303
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5304
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5305
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5306
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5307
echo $ECHO_N "(cached) $ECHO_C" >&6
5309
cat >conftest.$ac_ext <<_ACEOF
5312
cat confdefs.h >>conftest.$ac_ext
5313
cat >>conftest.$ac_ext <<_ACEOF
5314
/* end confdefs.h. */
5315
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5316
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5317
#define $ac_func innocuous_$ac_func
5319
/* System header to define __stub macros and hopefully few prototypes,
5320
which can conflict with char $ac_func (); below.
5321
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322
<limits.h> exists even on freestanding compilers. */
5325
# include <limits.h>
5327
# include <assert.h>
5332
/* Override any GCC internal prototype to avoid an error.
5333
Use char because int might match the return type of a GCC
5334
builtin and then its argument prototype would still apply. */
5339
/* The GNU C library defines this for functions which it implements
5340
to always fail with ENOSYS. Some functions are actually named
5341
something starting with __ and the normal name is an alias. */
5342
#if defined __stub_$ac_func || defined __stub___$ac_func
5354
rm -f conftest.$ac_objext conftest$ac_exeext
5355
if { (ac_try="$ac_link"
5357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358
*) ac_try_echo=$ac_try;;
5360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361
(eval "$ac_link") 2>conftest.er1
5363
grep -v '^ *+' conftest.er1 >conftest.err
5365
cat conftest.err >&5
5366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367
(exit $ac_status); } && {
5368
test -z "$ac_c_werror_flag" ||
5369
test ! -s conftest.err
5370
} && test -s conftest$ac_exeext &&
5371
$as_test_x conftest$ac_exeext; then
5372
eval "$as_ac_var=yes"
5374
echo "$as_me: failed program was:" >&5
5375
sed 's/^/| /' conftest.$ac_ext >&5
5377
eval "$as_ac_var=no"
5380
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5381
conftest$ac_exeext conftest.$ac_ext
5383
ac_res=`eval echo '${'$as_ac_var'}'`
5384
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5385
echo "${ECHO_T}$ac_res" >&6; }
5386
if test `eval echo '${'$as_ac_var'}'` = yes; then
5387
cat >>confdefs.h <<_ACEOF
5388
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5395
LDFLAGS="$LDFLAGS -lm"
5396
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
5398
cat >confcache <<\_ACEOF
5399
# This file is a shell script that caches the results of configure
5400
# tests run on this system so they can be shared between configure
5401
# scripts and configure runs, see configure's option --config-cache.
5402
# It is not useful on other systems. If it contains results you don't
5403
# want to keep, you may remove or edit it.
5405
# config.status only pays attention to the cache file if you give it
5406
# the --recheck option to rerun configure.
5408
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5409
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5414
# The following way of writing the cache mishandles newlines in values,
5415
# but we know of no workaround that is simple, portable, and efficient.
5416
# So, we kill variables containing newlines.
5417
# Ultrix sh set writes to stderr and can't be redirected directly,
5418
# and sets the high bit in the cache file unless we assign to the vars.
5420
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5421
eval ac_val=\$$ac_var
5425
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5426
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5429
_ | IFS | as_nl) ;; #(
5430
*) $as_unset $ac_var ;;
5436
case $as_nl`(ac_space=' '; set) 2>&1` in #(
5437
*${as_nl}ac_space=\ *)
5438
# `set' does not quote correctly, so add quotes (double-quote
5439
# substitution turns \\\\ into \\, and sed turns \\ into \).
5442
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5445
# `set' quotes correctly as required by POSIX, so do not add quotes.
5446
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5455
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5457
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5459
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5460
if test -w "$cache_file"; then
5461
test "x$cache_file" != "x/dev/null" &&
5462
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
5463
echo "$as_me: updating cache $cache_file" >&6;}
5464
cat confcache >$cache_file
5466
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5467
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5472
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5473
# Let make expand exec_prefix.
5474
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5476
DEFS=-DHAVE_CONFIG_H
5480
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5481
# 1. Remove the extension, and $U if already installed.
5482
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5483
ac_i=`echo "$ac_i" | sed "$ac_script"`
5484
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5485
# will be set to the directory where LIBOBJS objects are built.
5486
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5487
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5491
LTLIBOBJS=$ac_ltlibobjs
5494
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5495
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5496
Usually this means the macro was only invoked conditionally." >&5
5497
echo "$as_me: error: conditional \"AMDEP\" was never defined.
5498
Usually this means the macro was only invoked conditionally." >&2;}
5499
{ (exit 1); exit 1; }; }
5501
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5502
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5503
Usually this means the macro was only invoked conditionally." >&5
5504
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5505
Usually this means the macro was only invoked conditionally." >&2;}
5506
{ (exit 1); exit 1; }; }
5508
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5509
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5510
Usually this means the macro was only invoked conditionally." >&5
5511
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5512
Usually this means the macro was only invoked conditionally." >&2;}
5513
{ (exit 1); exit 1; }; }
5516
: ${CONFIG_STATUS=./config.status}
5517
ac_clean_files_save=$ac_clean_files
5518
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5519
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5520
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5521
cat >$CONFIG_STATUS <<_ACEOF
5523
# Generated by $as_me.
5524
# Run this file to recreate the current configuration.
5525
# Compiler output produced by configure, useful for debugging
5526
# configure, is in config.log if it exists.
5531
SHELL=\${CONFIG_SHELL-$SHELL}
5534
cat >>$CONFIG_STATUS <<\_ACEOF
5535
## --------------------- ##
5536
## M4sh Initialization. ##
5537
## --------------------- ##
5539
# Be more Bourne compatible
5540
DUALCASE=1; export DUALCASE # for MKS sh
5541
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5544
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5545
# is contrary to our usage. Disable this feature.
5546
alias -g '${1+"$@"}'='"$@"'
5547
setopt NO_GLOB_SUBST
5549
case `(set -o) 2>/dev/null` in
5550
*posix*) set -o posix ;;
5559
# Avoid depending upon Character Ranges.
5560
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5561
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5562
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5563
as_cr_digits='0123456789'
5564
as_cr_alnum=$as_cr_Letters$as_cr_digits
5566
# The user is always right.
5567
if test "${PATH_SEPARATOR+set}" != set; then
5568
echo "#! /bin/sh" >conf$$.sh
5569
echo "exit 0" >>conf$$.sh
5571
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5579
# Support unset when possible.
5580
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5588
# We need space, tab and new line, in precisely that order. Quoting is
5589
# there to prevent editors from complaining about space-tab.
5590
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5591
# splitting by setting IFS to empty value.)
5596
# Find who we are. Look in the path if we contain no directory separator.
5598
*[\\/]* ) as_myself=$0 ;;
5599
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603
test -z "$as_dir" && as_dir=.
5604
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5610
# We did not find ourselves, most probably we were run as `sh COMMAND'
5611
# in which case we are not to be found in the path.
5612
if test "x$as_myself" = x; then
5615
if test ! -f "$as_myself"; then
5616
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5617
{ (exit 1); exit 1; }
5620
# Work around bugs in pre-3.0 UWIN ksh.
5621
for as_var in ENV MAIL MAILPATH
5622
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5630
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5631
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5632
LC_TELEPHONE LC_TIME
5634
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5635
eval $as_var=C; export $as_var
5637
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5641
# Required to use basename.
5642
if expr a : '\(a\)' >/dev/null 2>&1 &&
5643
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5649
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5650
as_basename=basename
5656
# Name of the executable.
5657
as_me=`$as_basename -- "$0" ||
5658
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5659
X"$0" : 'X\(//\)$' \| \
5660
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5662
sed '/^.*\/\([^/][^/]*\)\/*$/{
5683
test "x$as_lineno_1" != "x$as_lineno_2" &&
5684
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5686
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5687
# uniformly replaced by the line number. The first 'sed' inserts a
5688
# line-number line after each line using $LINENO; the second 'sed'
5689
# does the real work. The second script uses 'N' to pair each
5690
# line-number line with the line containing $LINENO, and appends
5691
# trailing '-' during substitution so that $LINENO is not a special
5693
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5694
# scripts with optimization help from Paolo Bonzini. Blame Lee
5695
# E. McMahon (1931-1989) for sed's syntax. :-)
5707
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5711
chmod +x "$as_me.lineno" ||
5712
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5713
{ (exit 1); exit 1; }; }
5715
# Don't try to exec as it changes $[0], causing all sort of problems
5716
# (the dirname of $[0] is not the place where we might find the
5717
# original and so on. Autoconf is especially sensitive to this).
5719
# Exit status is that of the last command.
5724
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5730
ECHO_C= ECHO_N= ECHO_T=
5733
case `echo 'x\c'` in
5734
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
5741
if expr a : '\(a\)' >/dev/null 2>&1 &&
5742
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5748
rm -f conf$$ conf$$.exe conf$$.file
5749
if test -d conf$$.dir; then
5750
rm -f conf$$.dir/conf$$.file
5756
if ln -s conf$$.file conf$$ 2>/dev/null; then
5758
# ... but there are two gotchas:
5759
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5760
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5761
# In both cases, we have to default to `cp -p'.
5762
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5764
elif ln conf$$.file conf$$ 2>/dev/null; then
5769
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5770
rmdir conf$$.dir 2>/dev/null
5772
if mkdir -p . 2>/dev/null; then
5775
test -d ./-p && rmdir ./-p
5779
if test -x / >/dev/null 2>&1; then
5782
if ls -dL / >/dev/null 2>&1; then
5789
if test -d "$1"; then
5795
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5796
???[sx]*):;;*)false;;esac;fi
5800
as_executable_p=$as_test_x
5802
# Sed expression to map a string onto a valid CPP name.
5803
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5805
# Sed expression to map a string onto a valid variable name.
5806
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5811
# Save the log message, to keep $[0] and so on meaningful, and to
5812
# report actual input values of CONFIG_FILES etc. instead of their
5813
# values after options handling.
5815
This file was extended by calc $as_me 0.2.2, which was
5816
generated by GNU Autoconf 2.61. Invocation command line was
5818
CONFIG_FILES = $CONFIG_FILES
5819
CONFIG_HEADERS = $CONFIG_HEADERS
5820
CONFIG_LINKS = $CONFIG_LINKS
5821
CONFIG_COMMANDS = $CONFIG_COMMANDS
5824
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5829
cat >>$CONFIG_STATUS <<_ACEOF
5830
# Files that config.status was made for.
5831
config_files="$ac_config_files"
5832
config_headers="$ac_config_headers"
5833
config_commands="$ac_config_commands"
5837
cat >>$CONFIG_STATUS <<\_ACEOF
5839
\`$as_me' instantiates files from templates according to the
5840
current configuration.
5842
Usage: $0 [OPTIONS] [FILE]...
5844
-h, --help print this help, then exit
5845
-V, --version print version number and configuration settings, then exit
5846
-q, --quiet do not print progress messages
5847
-d, --debug don't remove temporary files
5848
--recheck update $as_me by reconfiguring in the same conditions
5849
--file=FILE[:TEMPLATE]
5850
instantiate the configuration file FILE
5851
--header=FILE[:TEMPLATE]
5852
instantiate the configuration header FILE
5854
Configuration files:
5857
Configuration headers:
5860
Configuration commands:
5863
Report bugs to <bug-autoconf@gnu.org>."
5866
cat >>$CONFIG_STATUS <<_ACEOF
5868
calc config.status 0.2.2
5869
configured by $0, generated by GNU Autoconf 2.61,
5870
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5872
Copyright (C) 2006 Free Software Foundation, Inc.
5873
This config.status script is free software; the Free Software Foundation
5874
gives unlimited permission to copy, distribute and modify it."
5881
cat >>$CONFIG_STATUS <<\_ACEOF
5882
# If no file are specified by the user, then we need to provide default
5883
# value. By we need to know if files were specified by the user.
5889
ac_option=`expr "X$1" : 'X\([^=]*\)='`
5890
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5901
# Handling of the options.
5902
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5904
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5905
echo "$ac_cs_version"; exit ;;
5906
--debug | --debu | --deb | --de | --d | -d )
5908
--file | --fil | --fi | --f )
5910
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5911
ac_need_defaults=false;;
5912
--header | --heade | --head | --hea )
5914
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5915
ac_need_defaults=false;;
5917
# Conflict between --help and --header
5918
{ echo "$as_me: error: ambiguous option: $1
5919
Try \`$0 --help' for more information." >&2
5920
{ (exit 1); exit 1; }; };;
5921
--help | --hel | -h )
5922
echo "$ac_cs_usage"; exit ;;
5923
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5924
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5928
-*) { echo "$as_me: error: unrecognized option: $1
5929
Try \`$0 --help' for more information." >&2
5930
{ (exit 1); exit 1; }; } ;;
5932
*) ac_config_targets="$ac_config_targets $1"
5933
ac_need_defaults=false ;;
5939
ac_configure_extra_args=
5941
if $ac_cs_silent; then
5943
ac_configure_extra_args="$ac_configure_extra_args --silent"
5947
cat >>$CONFIG_STATUS <<_ACEOF
5948
if \$ac_cs_recheck; then
5949
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5952
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5956
cat >>$CONFIG_STATUS <<\_ACEOF
5960
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5961
## Running $as_me. ##
5967
cat >>$CONFIG_STATUS <<_ACEOF
5971
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5975
cat >>$CONFIG_STATUS <<\_ACEOF
5977
# Handling of arguments.
5978
for ac_config_target in $ac_config_targets
5980
case $ac_config_target in
5981
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5982
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5983
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5984
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5985
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5987
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5988
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5989
{ (exit 1); exit 1; }; };;
5994
# If the user did not use the arguments to specify the items to instantiate,
5995
# then the envvar interface is used. Set only those that are not.
5996
# We use the long form for the default assignment because of an extremely
5997
# bizarre bug on SunOS 4.1.3.
5998
if $ac_need_defaults; then
5999
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6000
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6001
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6004
# Have a temporary directory for convenience. Make it in the build tree
6005
# simply because there is no reason against having it here, and in addition,
6006
# creating and moving files from /tmp can sometimes cause problems.
6007
# Hook for its removal unless debugging.
6008
# Note that there is a small window in which the directory will not be cleaned:
6009
# after its creation but before its name has been assigned to `$tmp'.
6013
trap 'exit_status=$?
6014
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6016
trap '{ (exit 1); exit 1; }' 1 2 13 15
6018
# Create a (secure) tmp directory for tmp files.
6021
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6022
test -n "$tmp" && test -d "$tmp"
6025
tmp=./conf$$-$RANDOM
6026
(umask 077 && mkdir "$tmp")
6029
echo "$me: cannot create a temporary directory in ." >&2
6030
{ (exit 1); exit 1; }
6034
# Set up the sed scripts for CONFIG_FILES section.
6037
# No need to generate the scripts if there are no CONFIG_FILES.
6038
# This happens for instance when ./config.status config.h
6039
if test -n "$CONFIG_FILES"; then
6046
for ac_last_try in false false false false false :; do
6047
cat >conf$$subs.sed <<_ACEOF
6048
SHELL!$SHELL$ac_delim
6049
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6050
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6051
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6052
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6053
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6054
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6055
exec_prefix!$exec_prefix$ac_delim
6056
prefix!$prefix$ac_delim
6057
program_transform_name!$program_transform_name$ac_delim
6058
bindir!$bindir$ac_delim
6059
sbindir!$sbindir$ac_delim
6060
libexecdir!$libexecdir$ac_delim
6061
datarootdir!$datarootdir$ac_delim
6062
datadir!$datadir$ac_delim
6063
sysconfdir!$sysconfdir$ac_delim
6064
sharedstatedir!$sharedstatedir$ac_delim
6065
localstatedir!$localstatedir$ac_delim
6066
includedir!$includedir$ac_delim
6067
oldincludedir!$oldincludedir$ac_delim
6068
docdir!$docdir$ac_delim
6069
infodir!$infodir$ac_delim
6070
htmldir!$htmldir$ac_delim
6071
dvidir!$dvidir$ac_delim
6072
pdfdir!$pdfdir$ac_delim
6073
psdir!$psdir$ac_delim
6074
libdir!$libdir$ac_delim
6075
localedir!$localedir$ac_delim
6076
mandir!$mandir$ac_delim
6078
ECHO_C!$ECHO_C$ac_delim
6079
ECHO_N!$ECHO_N$ac_delim
6080
ECHO_T!$ECHO_T$ac_delim
6082
build_alias!$build_alias$ac_delim
6083
host_alias!$host_alias$ac_delim
6084
target_alias!$target_alias$ac_delim
6085
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6086
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6087
INSTALL_DATA!$INSTALL_DATA$ac_delim
6088
CYGPATH_W!$CYGPATH_W$ac_delim
6089
PACKAGE!$PACKAGE$ac_delim
6090
VERSION!$VERSION$ac_delim
6091
ACLOCAL!$ACLOCAL$ac_delim
6092
AUTOCONF!$AUTOCONF$ac_delim
6093
AUTOMAKE!$AUTOMAKE$ac_delim
6094
AUTOHEADER!$AUTOHEADER$ac_delim
6095
MAKEINFO!$MAKEINFO$ac_delim
6096
install_sh!$install_sh$ac_delim
6097
STRIP!$STRIP$ac_delim
6098
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6099
mkdir_p!$mkdir_p$ac_delim
6101
SET_MAKE!$SET_MAKE$ac_delim
6102
am__leading_dot!$am__leading_dot$ac_delim
6103
AMTAR!$AMTAR$ac_delim
6104
am__tar!$am__tar$ac_delim
6105
am__untar!$am__untar$ac_delim
6107
CXXFLAGS!$CXXFLAGS$ac_delim
6108
LDFLAGS!$LDFLAGS$ac_delim
6109
CPPFLAGS!$CPPFLAGS$ac_delim
6110
ac_ct_CXX!$ac_ct_CXX$ac_delim
6111
EXEEXT!$EXEEXT$ac_delim
6112
OBJEXT!$OBJEXT$ac_delim
6113
DEPDIR!$DEPDIR$ac_delim
6114
am__include!$am__include$ac_delim
6115
am__quote!$am__quote$ac_delim
6116
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6117
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6118
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6119
CXXDEPMODE!$CXXDEPMODE$ac_delim
6120
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
6121
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
6123
CFLAGS!$CFLAGS$ac_delim
6124
ac_ct_CC!$ac_ct_CC$ac_delim
6125
CCDEPMODE!$CCDEPMODE$ac_delim
6126
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6127
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6130
EGREP!$EGREP$ac_delim
6131
LIBOBJS!$LIBOBJS$ac_delim
6132
LTLIBOBJS!$LTLIBOBJS$ac_delim
6135
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
6137
elif $ac_last_try; then
6138
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6139
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6140
{ (exit 1); exit 1; }; }
6142
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6146
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6147
if test -n "$ac_eof"; then
6148
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6149
ac_eof=`expr $ac_eof + 1`
6152
cat >>$CONFIG_STATUS <<_ACEOF
6153
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6154
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6157
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6158
s/^/s,@/; s/!/@,|#_!!_#|/
6161
s/'"$ac_delim"'$/,g/; t
6163
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6164
' >>$CONFIG_STATUS <conf$$subs.sed
6165
rm -f conf$$subs.sed
6166
cat >>$CONFIG_STATUS <<_ACEOF
6173
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6174
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6175
# trailing colons and then remove the whole line if VPATH becomes empty
6176
# (actually we leave an empty line to preserve line numbers).
6177
if test "x$srcdir" = x.; then
6178
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6182
s/^\([^=]*=[ ]*\):*/\1/
6188
cat >>$CONFIG_STATUS <<\_ACEOF
6189
fi # test -n "$CONFIG_FILES"
6192
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6195
:[FHLC]) ac_mode=$ac_tag; continue;;
6197
case $ac_mode$ac_tag in
6199
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6200
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6201
{ (exit 1); exit 1; }; };;
6202
:[FH]-) ac_tag=-:-;;
6203
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6220
-) ac_f="$tmp/stdin";;
6221
*) # Look for the file first in the build tree, then in the source tree
6222
# (if the path is not absolute). The absolute path cannot be DOS-style,
6223
# because $ac_f cannot contain `:'.
6227
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6229
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6230
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6231
{ (exit 1); exit 1; }; };;
6233
ac_file_inputs="$ac_file_inputs $ac_f"
6236
# Let's still pretend it is `configure' which instantiates (i.e., don't
6237
# use $as_me), people would be surprised to read:
6238
# /* config.h. Generated by config.status. */
6239
configure_input="Generated from "`IFS=:
6240
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6241
if test x"$ac_file" != x-; then
6242
configure_input="$ac_file. $configure_input"
6243
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6244
echo "$as_me: creating $ac_file" >&6;}
6248
*:-:* | *:-) cat >"$tmp/stdin";;
6253
ac_dir=`$as_dirname -- "$ac_file" ||
6254
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6255
X"$ac_file" : 'X\(//\)[^/]' \| \
6256
X"$ac_file" : 'X\(//\)$' \| \
6257
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6259
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6278
-*) as_dir=./$as_dir;;
6280
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6284
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6285
*) as_qdir=$as_dir;;
6287
as_dirs="'$as_qdir' $as_dirs"
6288
as_dir=`$as_dirname -- "$as_dir" ||
6289
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6290
X"$as_dir" : 'X\(//\)[^/]' \| \
6291
X"$as_dir" : 'X\(//\)$' \| \
6292
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6294
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6311
test -d "$as_dir" && break
6313
test -z "$as_dirs" || eval "mkdir $as_dirs"
6314
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6315
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6316
{ (exit 1); exit 1; }; }; }
6320
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6322
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6323
# A ".." for each directory in $ac_dir_suffix.
6324
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6325
case $ac_top_builddir_sub in
6326
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6327
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6330
ac_abs_top_builddir=$ac_pwd
6331
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6332
# for backward compatibility:
6333
ac_top_builddir=$ac_top_build_prefix
6336
.) # We are building in place.
6338
ac_top_srcdir=$ac_top_builddir_sub
6339
ac_abs_top_srcdir=$ac_pwd ;;
6340
[\\/]* | ?:[\\/]* ) # Absolute name.
6341
ac_srcdir=$srcdir$ac_dir_suffix;
6342
ac_top_srcdir=$srcdir
6343
ac_abs_top_srcdir=$srcdir ;;
6345
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6346
ac_top_srcdir=$ac_top_build_prefix$srcdir
6347
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6349
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6359
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6360
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6364
cat >>$CONFIG_STATUS <<\_ACEOF
6365
# If the template does not know about datarootdir, expand it.
6366
# FIXME: This hack should be removed a few years after 2.60.
6367
ac_datarootdir_hack=; ac_datarootdir_seen=
6369
case `sed -n '/datarootdir/ {
6378
' $ac_file_inputs` in
6379
*datarootdir*) ac_datarootdir_seen=yes;;
6380
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6381
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6382
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6384
cat >>$CONFIG_STATUS <<_ACEOF
6385
ac_datarootdir_hack='
6386
s&@datadir@&$datadir&g
6387
s&@docdir@&$docdir&g
6388
s&@infodir@&$infodir&g
6389
s&@localedir@&$localedir&g
6390
s&@mandir@&$mandir&g
6391
s&\\\${datarootdir}&$datarootdir&g' ;;
6395
# Neutralize VPATH when `$srcdir' = `.'.
6396
# Shell code in configure.ac might set extrasub.
6397
# FIXME: do we really want to maintain this feature?
6398
cat >>$CONFIG_STATUS <<_ACEOF
6402
cat >>$CONFIG_STATUS <<\_ACEOF
6404
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6405
s&@configure_input@&$configure_input&;t t
6406
s&@top_builddir@&$ac_top_builddir_sub&;t t
6407
s&@srcdir@&$ac_srcdir&;t t
6408
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6409
s&@top_srcdir@&$ac_top_srcdir&;t t
6410
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6411
s&@builddir@&$ac_builddir&;t t
6412
s&@abs_builddir@&$ac_abs_builddir&;t t
6413
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6414
s&@INSTALL@&$ac_INSTALL&;t t
6415
$ac_datarootdir_hack
6416
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6418
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6419
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6420
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6421
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6422
which seems to be undefined. Please make sure it is defined." >&5
6423
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6424
which seems to be undefined. Please make sure it is defined." >&2;}
6428
-) cat "$tmp/out"; rm -f "$tmp/out";;
6429
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6438
# Transform confdefs.h into a sed script `conftest.defines', that
6439
# substitutes the proper values into config.h.in to produce config.h.
6440
rm -f conftest.defines conftest.tail
6441
# First, append a space to every undef/define line, to ease matching.
6442
echo 's/$/ /' >conftest.defines
6443
# Then, protect against being on the right side of a sed subst, or in
6444
# an unquoted here document, in config.status. If some macros were
6445
# called several times there might be several #defines for the same
6446
# symbol, which is useless. But do not sort them, since the last
6447
# AC_DEFINE must be honored.
6448
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6449
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6450
# NAME is the cpp macro being defined, VALUE is the value it is being given.
6451
# PARAMS is the parameter list in the macro definition--in most cases, it's
6452
# just an empty string.
6453
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6454
ac_dB='\\)[ (].*,\\1define\\2'
6462
s/^[ ]*#[ ]*define[ ][ ]*//
6467
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6468
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6469
' >>conftest.defines
6471
# Remove the space that was appended to ease matching.
6472
# Then replace #undef with comments. This is necessary, for
6473
# example, in the case of _POSIX_SOURCE, which is predefined and required
6474
# on some systems where configure will not decide to define it.
6475
# (The regexp can be short, since the line contains either #define or #undef.)
6477
s,^[ #]*u.*,/* & */,' >>conftest.defines
6479
# Break up conftest.defines:
6482
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6483
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6484
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6486
ac_in='$ac_file_inputs'
6487
ac_out='"$tmp/out1"'
6488
ac_nxt='"$tmp/out2"'
6492
# Write a here document:
6493
cat >>$CONFIG_STATUS <<_ACEOF
6494
# First, check the format of the line:
6495
cat >"\$tmp/defines.sed" <<\\CEOF
6496
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6497
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6501
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6503
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6504
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6505
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6506
grep . conftest.tail >/dev/null || break
6507
rm -f conftest.defines
6508
mv conftest.tail conftest.defines
6510
rm -f conftest.defines conftest.tail
6512
echo "ac_result=$ac_in" >>$CONFIG_STATUS
6513
cat >>$CONFIG_STATUS <<\_ACEOF
6514
if test x"$ac_file" != x-; then
6515
echo "/* $configure_input */" >"$tmp/config.h"
6516
cat "$ac_result" >>"$tmp/config.h"
6517
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6518
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6519
echo "$as_me: $ac_file is unchanged" >&6;}
6522
mv "$tmp/config.h" $ac_file
6525
echo "/* $configure_input */"
6529
# Compute $ac_file's index in $config_headers.
6531
for _am_header in $config_headers :; do
6533
$ac_file | $ac_file:* )
6536
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6539
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6540
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6541
X$ac_file : 'X\(//\)[^/]' \| \
6542
X$ac_file : 'X\(//\)$' \| \
6543
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6545
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6561
s/.*/./; q'`/stamp-h$_am_stamp_count
6564
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6565
echo "$as_me: executing $ac_file commands" >&6;}
6570
case $ac_file$ac_mode in
6571
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6572
# Strip MF so we end up with the name of the file.
6573
mf=`echo "$mf" | sed -e 's/:.*$//'`
6574
# Check whether this is an Automake generated Makefile or not.
6575
# We used to match only the files named `Makefile.in', but
6576
# some people rename them; so instead we look at the file content.
6577
# Grep'ing the first line is not enough: some people post-process
6578
# each Makefile.in and add a new line on top of each file to say so.
6579
# So let's grep whole file.
6580
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6581
dirpart=`$as_dirname -- "$mf" ||
6582
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6583
X"$mf" : 'X\(//\)[^/]' \| \
6584
X"$mf" : 'X\(//\)$' \| \
6585
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6587
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6607
# Extract the definition of DEPDIR, am__include, and am__quote
6608
# from the Makefile without running `make'.
6609
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6610
test -z "$DEPDIR" && continue
6611
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6612
test -z "am__include" && continue
6613
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6614
# When using ansi2knr, U may be empty or an underscore; expand it
6615
U=`sed -n 's/^U = //p' < "$mf"`
6616
# Find all dependency output files, they are included files with
6617
# $(DEPDIR) in their names. We invoke sed twice because it is the
6618
# simplest approach to changing $(DEPDIR) to its actual value in the
6620
for file in `sed -n "
6621
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6622
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6623
# Make sure the directory exists.
6624
test -f "$dirpart/$file" && continue
6625
fdir=`$as_dirname -- "$file" ||
6626
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6627
X"$file" : 'X\(//\)[^/]' \| \
6628
X"$file" : 'X\(//\)$' \| \
6629
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6631
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6648
{ as_dir=$dirpart/$fdir
6650
-*) as_dir=./$as_dir;;
6652
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6656
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6657
*) as_qdir=$as_dir;;
6659
as_dirs="'$as_qdir' $as_dirs"
6660
as_dir=`$as_dirname -- "$as_dir" ||
6661
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6662
X"$as_dir" : 'X\(//\)[^/]' \| \
6663
X"$as_dir" : 'X\(//\)$' \| \
6664
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6666
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6683
test -d "$as_dir" && break
6685
test -z "$as_dirs" || eval "mkdir $as_dirs"
6686
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6687
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6688
{ (exit 1); exit 1; }; }; }
6689
# echo "creating $dirpart/$file"
6690
echo '# dummy' > "$dirpart/$file"
6699
{ (exit 0); exit 0; }
6701
chmod +x $CONFIG_STATUS
6702
ac_clean_files=$ac_clean_files_save
6705
# configure is writing to config.log, and then calls config.status.
6706
# config.status does its own redirection, appending to config.log.
6707
# Unfortunately, on DOS this fails, as config.log is still kept open
6708
# by configure, so config.status won't be able to write to it; its
6709
# output is simply discarded. So we exec the FD to /dev/null,
6710
# effectively closing config.log, so it can be properly (re)opened and
6711
# appended to by config.status. When coming back to configure, we
6712
# need to make the FD available again.
6713
if test "$no_create" != yes; then
6715
ac_config_status_args=
6716
test "$silent" = yes &&
6717
ac_config_status_args="$ac_config_status_args --quiet"
6719
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6721
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6722
# would make configure fail if this is the last instruction.
6723
$ac_cs_success || { (exit 1); exit 1; }