aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLittleboy2011-04-29 11:33:18 -0400
committerJulien2011-06-16 14:23:24 -0400
commit0ae3e4f2897a79b5e9c7df3a5209f101d421426e (patch)
tree5994be0b6e5a416f5e487ed4d94286268d911703 /configure
parentf843b3f280a1641d11601c9ee248d35944b14b42 (diff)
downloadscummvm-rg350-0ae3e4f2897a79b5e9c7df3a5209f101d421426e.tar.gz
scummvm-rg350-0ae3e4f2897a79b5e9c7df3a5209f101d421426e.tar.bz2
scummvm-rg350-0ae3e4f2897a79b5e9c7df3a5209f101d421426e.zip
CONFIGURE: Update libunity detection by adding a call to one of unity functions in the cc_check test
Some older compilers might not error out on missing headers and will compile (with warnings) unless a symbol is missing
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index d772303739..0f014d9973 100755
--- a/configure
+++ b/configure
@@ -2946,7 +2946,10 @@ if test "$_unity" = auto ; then
_unity=no
cat > $TMPC << EOF
#include <unity.h>
-int main(void) { return 0; }
+int main(void) {
+ unity_launcher_entry_get_for_desktop_id("scummvm.desktop");
+ return 0;
+}
EOF
cc_check $UNITY_CFLAGS $UNITY_LIBS -lunity && _unity=yes
fi