diff options
author | Littleboy | 2011-06-22 19:06:30 -0400 |
---|---|---|
committer | Littleboy | 2011-06-22 19:31:36 -0400 |
commit | 27934d061ecef6456460265171ebccfc065d26e0 (patch) | |
tree | a99d11646ebae6a30e4770ac11b794e5c70b545d /configure | |
parent | 85bb5ef45e6b62b52317df2d83a7ad8663dbdfc0 (diff) | |
download | scummvm-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-x | configure | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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" |