mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r23151] HDFFV-498: Eliminate a.exe file on cygwin configurations
This commit is contained in:
parent
fd07eb96af
commit
9ac4f9ad6b
13
configure
vendored
13
configure
vendored
@ -27160,19 +27160,12 @@ if ${hdf5_cv_lone_colon+:} false; then :
|
||||
else
|
||||
|
||||
echo "int main(int argc, char * argv) {return 0;}" > conftest.c
|
||||
$CC $CFLAGS conftest.c > /dev/null 2> /dev/null
|
||||
case "`uname`" in
|
||||
CYGWIN*)
|
||||
echo "./a.exe :" > conftest.sh
|
||||
;;
|
||||
*)
|
||||
echo "./a.out :" > conftest.sh
|
||||
;;
|
||||
esac
|
||||
$CC $CFLAGS conftest.c -o a.out> /dev/null 2> /dev/null
|
||||
echo "./a.out :" > conftest.sh
|
||||
chmod 700 conftest.sh
|
||||
|
||||
./conftest.sh 2> conftest.out
|
||||
rm -f a.out a.exe
|
||||
rm -f a.out
|
||||
TEST_OUTPUT=`cat conftest.out`
|
||||
|
||||
if test "X$TEST_OUTPUT" = "X"; then
|
||||
|
13
configure.ac
13
configure.ac
@ -2238,19 +2238,12 @@ AC_CACHE_CHECK([if lone colon can be used as an argument],
|
||||
[hdf5_cv_lone_colon],
|
||||
[
|
||||
echo "int main(int argc, char * argv[]) {return 0;}" > conftest.c
|
||||
$CC $CFLAGS conftest.c > /dev/null 2> /dev/null
|
||||
case "`uname`" in
|
||||
CYGWIN*)
|
||||
echo "./a.exe :" > conftest.sh
|
||||
;;
|
||||
*)
|
||||
echo "./a.out :" > conftest.sh
|
||||
;;
|
||||
esac
|
||||
$CC $CFLAGS conftest.c -o a.out> /dev/null 2> /dev/null
|
||||
echo "./a.out :" > conftest.sh
|
||||
chmod 700 conftest.sh
|
||||
|
||||
./conftest.sh 2> conftest.out
|
||||
rm -f a.out a.exe
|
||||
rm -f a.out
|
||||
TEST_OUTPUT=`cat conftest.out`
|
||||
|
||||
if test "X$TEST_OUTPUT" = "X"; then
|
||||
|
Loading…
Reference in New Issue
Block a user