little improvement of Cygwin-detection
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 30 Aug 2001 10:26:10 +0000 (10:26 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 30 Aug 2001 10:26:10 +0000 (10:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1187 4a8a32a2-be11-0410-ad9d-d568d2c75423

sim/ucsim/configure
sim/ucsim/configure.in

index 68da2387f5ba284e3ce4e2e7eddfd8a8d4a7c201..8c931d20cfd6f2ad393fc19c6a094c256d917b46 100755 (executable)
@@ -3706,7 +3706,7 @@ fi
 # If this is Cygwin neither use Position Independant Code
 # nor build .so
 # Quick + dirty by Bernhard
-if gcc -v 2>&1 | grep -i cygwin > /dev/null; then
+if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
     PICOPT=""
     SHAREDLIB="no"
 fi
index 90a20382e339fee030c2ea0fb91e0d22bc4cdd81..3e3977117727958cce18d04894570ebeb6477efc 100644 (file)
@@ -287,7 +287,7 @@ fi
 # If this is Cygwin neither use Position Independant Code
 # nor build .so
 # Quick + dirty by Bernhard
-if gcc -v 2>&1 | grep -i cygwin > /dev/null; then
+if $CXX -v 2>&1 | grep -i cygwin 1>&5 2>&5; then
     PICOPT=""
     SHAREDLIB="no"
 fi