little improvement of Cygwin-detection
[fw/sdcc] / sim / ucsim / configure.in
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