diff --git a/configure.in b/configure.in
index c87bf5bac293230276ad801656996a35491b4634..392853a370df17e3a8e3887a0395e0e00f78a91e 100644
--- a/configure.in
+++ b/configure.in
@@ -436,7 +436,7 @@ else
     PLATFORM=Cygwin
     EXE=.exe
   else
-    if test -x "/Applications/Mail.app"; then
+    if test $(uname -s) = "Darwin"; then
       AC_MSG_RESULT(MacOS)
       PLATFORM=MacOS
     else