2183
2186
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2186
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2187
# We used to keeping the `.' as first argument, in order to
2188
# allow $(mkdir_p) to be used without argument. As in
2189
# $(mkdir_p) $(somedir)
2190
# where $(somedir) is conditionally defined. However this is wrong
2192
# 1. if the package is installed by a user who cannot write `.'
2193
# make install will fail,
2194
# 2. the above comment should most certainly read
2195
# $(mkdir_p) $(DESTDIR)$(somedir)
2196
# so it does not work when $(somedir) is undefined and
2197
# $(DESTDIR) is not.
2198
# To support the latter case, we have to write
2199
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2200
# so the `.' trick is pointless.
2201
mkdir_p='mkdir -p --'
2189
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2190
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2191
if test -z "$MKDIR_P"; then
2192
if test "${ac_cv_path_mkdir+set}" = set; then
2193
$as_echo_n "(cached) " >&6
2203
# On NextStep and OpenStep, the `mkdir' command does not
2204
# recognize any option. It will interpret all options as
2205
# directories to create, and then abort because `.' already
2207
for d in ./-p ./--version;
2209
test -d $d && rmdir $d
2211
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2212
if test -f "$ac_aux_dir/mkinstalldirs"; then
2213
mkdir_p='$(mkinstalldirs)'
2195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2199
test -z "$as_dir" && as_dir=.
2200
for ac_prog in mkdir gmkdir; do
2201
for ac_exec_ext in '' $ac_executable_extensions; do
2202
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2203
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2204
'mkdir (GNU coreutils) '* | \
2205
'mkdir (coreutils) '* | \
2206
'mkdir (fileutils) '4.1*)
2207
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2217
if test "${ac_cv_path_mkdir+set}" = set; then
2218
MKDIR_P="$ac_cv_path_mkdir -p"
2215
mkdir_p='$(install_sh) -d'
2220
# As a last resort, use the slow shell script. Don't cache a
2221
# value for MKDIR_P within a source directory, because that will
2222
# break other packages using the cache if that directory is
2223
# removed, or if the value is a relative name.
2224
test -d ./--version && rmdir ./--version
2225
MKDIR_P="$ac_install_sh -d"
2228
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2229
$as_echo "$MKDIR_P" >&6; }
2233
[\\/$]* | ?:[\\/]*) ;;
2234
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2219
2237
for ac_prog in gawk mawk nawk awk
2299
2317
rmdir .tst 2>/dev/null
2301
# test to see if srcdir already configured
2302
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2303
test -f $srcdir/config.status; then
2304
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2319
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2320
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2321
# is not polluted with repeated "-I."
2322
am__isrc=' -I$(srcdir)'
2323
# test to see if srcdir already configured
2324
if test -f $srcdir/config.status; then
2325
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2305
2326
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2306
2327
{ (exit 1); exit 1; }; }
2309
2331
# test whether we have cygpath
4041
if test "x$CC" != xcc; then
4042
{ $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4043
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4045
{ $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4046
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4048
set dummy $CC; ac_cc=`$as_echo "$2" |
4049
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4050
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4051
$as_echo_n "(cached) " >&6
4053
cat >conftest.$ac_ext <<_ACEOF
4056
cat confdefs.h >>conftest.$ac_ext
4057
cat >>conftest.$ac_ext <<_ACEOF
4058
/* end confdefs.h. */
4068
# Make sure it works both with $CC and with simple cc.
4069
# We do the test twice because some compilers refuse to overwrite an
4070
# existing .o file with -o, though they will create one.
4071
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4073
if { (case "(($ac_try" in
4074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075
*) ac_try_echo=$ac_try;;
4077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078
$as_echo "$ac_try_echo") >&5
4079
(eval "$ac_try") 2>&5
4081
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
(exit $ac_status); } &&
4083
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085
*) ac_try_echo=$ac_try;;
4087
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088
$as_echo "$ac_try_echo") >&5
4089
(eval "$ac_try") 2>&5
4091
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092
(exit $ac_status); };
4094
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4095
if test "x$CC" != xcc; then
4096
# Test first that cc exists at all.
4097
if { ac_try='cc -c conftest.$ac_ext >&5'
4098
{ (case "(($ac_try" in
4099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100
*) ac_try_echo=$ac_try;;
4102
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103
$as_echo "$ac_try_echo") >&5
4104
(eval "$ac_try") 2>&5
4106
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107
(exit $ac_status); }; }; then
4108
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4110
if { (case "(($ac_try" in
4111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112
*) ac_try_echo=$ac_try;;
4114
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115
$as_echo "$ac_try_echo") >&5
4116
(eval "$ac_try") 2>&5
4118
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119
(exit $ac_status); } &&
4120
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122
*) ac_try_echo=$ac_try;;
4124
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125
$as_echo "$ac_try_echo") >&5
4126
(eval "$ac_try") 2>&5
4128
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
(exit $ac_status); };
4134
# cc exists but doesn't like -o.
4135
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4140
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4142
rm -f core conftest*
4145
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4146
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4147
$as_echo "yes" >&6; }
4149
{ $as_echo "$as_me:$LINENO: result: no" >&5
4150
$as_echo "no" >&6; }
4152
cat >>confdefs.h <<\_ACEOF
4153
#define NO_MINUS_C_MINUS_O 1
4158
# FIXME: we rely on the cache variable name because
4159
# there is no other way.
4161
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4162
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4163
# Losing compiler, so override with the script.
4164
# FIXME: It is wrong to rewrite CC.
4165
# But if we don't then we get into trouble of one sort or another.
4166
# A longer-term fix would be to have automake use am__CC in this case,
4167
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4168
CC="$am_aux_dir/compile $CC"
4023
4173
# Checks for libraries.
4025
4175
{ $as_echo "$as_me:$LINENO: checking for tputs in -ltermcap" >&5
7471
7628
{ (exit 1); exit 1; }; }
7473
7630
# Compute "$ac_file"'s index in $config_headers.
7474
7632
_am_stamp_count=1
7475
7633
for _am_header in $config_headers :; do
7476
7634
case $_am_header in
7477
"$ac_file" | "$ac_file":* )
7635
$_am_arg | $_am_arg:* )
7480
7638
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7483
echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
7484
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7485
X"$ac_file" : 'X\(//\)[^/]' \| \
7486
X"$ac_file" : 'X\(//\)$' \| \
7487
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7488
$as_echo X"$ac_file" |
7641
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7642
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7643
X"$_am_arg" : 'X\(//\)[^/]' \| \
7644
X"$_am_arg" : 'X\(//\)$' \| \
7645
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7646
$as_echo X"$_am_arg" |
7489
7647
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7520
7678
# some people rename them; so instead we look at the file content.
7521
7679
# Grep'ing the first line is not enough: some people post-process
7522
7680
# each Makefile.in and add a new line on top of each file to say so.
7523
# So let's grep whole file.
7524
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7681
# Grep'ing the whole file is not good either: AIX grep has a line
7682
# limit of 2048, but all sed's we know have understand at least 4000.
7683
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7525
7684
dirpart=`$as_dirname -- "$mf" ||
7526
7685
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7527
7686
X"$mf" : 'X\(//\)[^/]' \| \