[svn-r23151] HDFFV-498: Eliminate a.exe file on cygwin configurations

This commit is contained in:
Allen Byrne 2013-01-11 14:11:33 -05:00
parent fd07eb96af
commit 9ac4f9ad6b
2 changed files with 6 additions and 20 deletions

13
configure vendored
View File

@ -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

View File

@ -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