[svn-r13181] Added a configure check to prevent a failure on Cygwin.

It seems that while Cygwin supports the time command, it has trouble with
the syntax
srcdir="../../hdf5/test" time ./testhdf5
and complains.
The solution is to test the above case in configure and not to use the time
command if it fails; Cygwin is fine with
srcdir="../../hdf5/test"  ./testhdf5

Tested on Cygwin and kagiso.  This feature shouldn't be a major compatibility
problem since every platform but Cygwin is already fine with the current
syntax.
This commit is contained in:
James Laird
2007-01-23 12:29:45 -05:00
parent f83826852b
commit 59eccdaf69
43 changed files with 110 additions and 71 deletions

View File

@@ -237,6 +237,7 @@ SIZE_T = @SIZE_T@
STATIC_SHARED = @STATIC_SHARED@
STRIP = @STRIP@
TESTPARALLEL = @TESTPARALLEL@
TIME = @TIME@
TR = @TR@
TRACE_API = @TRACE_API@
USE_FILTER_DEFLATE = @USE_FILTER_DEFLATE@
@@ -300,7 +301,6 @@ target_alias = @target_alias@
# Shell commands used in Makefiles
RM = rm -f
CP = cp
TIME = time
# Some machines need a command to run executables; this is that command
# so that our tests will run.