GNUstep also installs Foundation/Foundation.h
https://bugzilla.gnome.org/show_bug.cgi?id=674172
Signed-off-by: William Hua <william@attente.ca>
AC_MSG_CHECKING([for Mac OS X Cocoa support])
AC_TRY_CPP([
#include <Cocoa/Cocoa.h>
AC_MSG_CHECKING([for Mac OS X Cocoa support])
AC_TRY_CPP([
#include <Cocoa/Cocoa.h>
+#ifdef GNUSTEP_BASE_VERSION
+#error "Detected GNUstep, not Cocoa"
+#endif
], glib_have_cocoa=yes)
AC_MSG_RESULT([$glib_have_cocoa])
], glib_have_cocoa=yes)
AC_MSG_RESULT([$glib_have_cocoa])