summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-07-05 11:02:44 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-05 05:17:35 +0200
commit45dc5852d54bee40281095587653f0b2bd6d7e40 (patch)
treeebb819039adf57284821d9942f3870c4665a5eb4 /config.tests
parent8f94aac68ee7f4d0dadcbde05f5359a3d5a13a51 (diff)
Fixed opengldesktop configure test for mac.
This configure test has never worked for mac. In a non-qpa configuration, this didn't matter, as the configure script would skip this configure test on mac. The configure script could also be modified to skip the configure test in the qpa case, but it seems cleaner to make the test actually work. Change-Id: I0402c490fc4c2401f6363ba2215b261f74ee5d75 Reviewed-on: http://codereview.qt.nokia.com/1127 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/unix/opengldesktop/opengldesktop.cpp6
-rw-r--r--config.tests/unix/opengldesktop/opengldesktop.pro3
2 files changed, 8 insertions, 1 deletions
diff --git a/config.tests/unix/opengldesktop/opengldesktop.cpp b/config.tests/unix/opengldesktop/opengldesktop.cpp
index 54860fe90b..af21cfdfda 100644
--- a/config.tests/unix/opengldesktop/opengldesktop.cpp
+++ b/config.tests/unix/opengldesktop/opengldesktop.cpp
@@ -39,7 +39,11 @@
**
****************************************************************************/
-#include <GL/gl.h>
+#if defined(Q_OS_MAC)
+# include <OpenGL/gl.h>
+#else
+# include <GL/gl.h>
+#endif
int main(int, char **)
{
diff --git a/config.tests/unix/opengldesktop/opengldesktop.pro b/config.tests/unix/opengldesktop/opengldesktop.pro
index ac70ca34ef..fbf36a0c67 100644
--- a/config.tests/unix/opengldesktop/opengldesktop.pro
+++ b/config.tests/unix/opengldesktop/opengldesktop.pro
@@ -7,3 +7,6 @@ for(p, QMAKE_LIBDIR_OPENGL) {
CONFIG -= qt
LIBS += $$QMAKE_LIBS_OPENGL
+
+mac:DEFINES += Q_OS_MAC
+CONFIG -= app_bundle