mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
CONFIGURE: Use pkgconfig to get CFLAGS for Unity if not supplied
This is not necessary if we got --with-libunity-prefix= (line 1447). That's not always the case though.
This commit is contained in:
parent
651b271f61
commit
ba9401864c
4
configure
vendored
4
configure
vendored
@ -3863,6 +3863,10 @@ EOF
|
||||
esac
|
||||
fi
|
||||
if test "$_libunity" = yes ; then
|
||||
if test "$LIBUNITY_CFLAGS" = "" || test "$LIBUNITY_LIBS" = ""; then
|
||||
LIBUNITY_LIBS="$LIBUNITY_LIBS `pkg-config --libs 'unity > 3.8.1' 2>> "$TMPLOG"`"
|
||||
LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS `pkg-config --cflags 'unity > 3.8.1' 2>> "$TMPLOG"`"
|
||||
fi
|
||||
LIBS="$LIBS $LIBUNITY_LIBS"
|
||||
INCLUDES="$INCLUDES $LIBUNITY_CFLAGS"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user