aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLittleboy2011-06-22 19:06:30 -0400
committerLittleboy2011-06-22 19:31:36 -0400
commit27934d061ecef6456460265171ebccfc065d26e0 (patch)
treea99d11646ebae6a30e4770ac11b794e5c70b545d /configure
parent85bb5ef45e6b62b52317df2d83a7ad8663dbdfc0 (diff)
downloadscummvm-rg350-27934d061ecef6456460265171ebccfc065d26e0.tar.gz
scummvm-rg350-27934d061ecef6456460265171ebccfc065d26e0.tar.bz2
scummvm-rg350-27934d061ecef6456460265171ebccfc065d26e0.zip
CONFIGURE: Fix Unity checks
- Redirect pkgconfig errors to log file - Remove duplicated -lunity option - Fix output of selected taskbar integration when libunity is selected
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 04ca85ffb6..8c89afae4c 100755
--- a/configure
+++ b/configure
@@ -2995,8 +2995,8 @@ if test "$_libunity" = auto ; then
;;
*)
# Unity has a lots of dependencies, update the libs and cflags var with them
- LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity = 3.8.4)"
- LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity = 3.8.4)"
+ LIBUNITY_LIBS="$LIBUNITY_LIBS $(pkg-config --libs unity = 3.8.4 2>> "$TMPLOG")"
+ LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS $(pkg-config --cflags unity = 3.8.4 2>> "$TMPLOG")"
_libunity=no
cat > $TMPC << EOF
#include <unity.h>
@@ -3005,12 +3005,12 @@ int main(void) {
return 0;
}
EOF
- cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS -lunity && _libunity=yes
+ cc_check $LIBUNITY_CFLAGS $LIBUNITY_LIBS && _libunity=yes
;;
esac
fi
if test "$_libunity" = yes ; then
- LIBS="$LIBS $LIBUNITY_LIBS -lunity"
+ LIBS="$LIBS $LIBUNITY_LIBS"
INCLUDES="$INCLUDES $LIBUNITY_CFLAGS"
fi
define_in_config_h_if_yes "$_libunity" 'USE_TASKBAR_UNITY'
@@ -3204,7 +3204,7 @@ if test "$_taskbar" = yes; then
echo "win32"
;;
*)
- if test "$_unity" = yes; then
+ if test "$_libunity" = yes; then
echo "unity"
else
echo "$_taskbar"