mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
CONFIGURE: Move pkg-config detection as early as possible
This commit is contained in:
parent
6bbe67e23d
commit
954aeccfb7
24
configure
vendored
24
configure
vendored
@ -3755,6 +3755,18 @@ case $_backend in
|
||||
esac
|
||||
append_var MODULES "backends/platform/$_backend"
|
||||
|
||||
#
|
||||
# Check for pkg-config
|
||||
#
|
||||
echocheck "pkg-config"
|
||||
_pkg_config=no
|
||||
command -v $_pkgconfig >/dev/null 2>&1 && _pkg_config=yes
|
||||
echo "$_pkg_config"
|
||||
|
||||
if test "$_pkg_config" = yes && test -n "$_host" && test -z "$PKG_CONFIG_LIBDIR"; then
|
||||
echo "WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target"
|
||||
fi
|
||||
|
||||
#
|
||||
# Setup SDL specifics for SDL based backends
|
||||
#
|
||||
@ -4224,18 +4236,6 @@ int main(void) { return 0; }
|
||||
EOF
|
||||
cc_check -lm && append_var LIBS "-lm"
|
||||
|
||||
#
|
||||
# Check for pkg-config
|
||||
#
|
||||
echocheck "pkg-config"
|
||||
_pkg_config=no
|
||||
command -v $_pkgconfig >/dev/null 2>&1 && _pkg_config=yes
|
||||
echo "$_pkg_config"
|
||||
|
||||
if test "$_pkg_config" = yes && test -n "$_host" && test -z "$PKG_CONFIG_LIBDIR"; then
|
||||
echo "WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target"
|
||||
fi
|
||||
|
||||
#
|
||||
# Check for Ogg
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user