CONFIGURE: Fix libmikmod detection under macOS homebrew

This commit is contained in:
Eugene Sandulenko 2023-03-25 00:11:10 +01:00
parent 68bae81aff
commit 3a4b032bfc
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

16
configure vendored
View File

@ -5731,20 +5731,17 @@ define_in_config_if_yes "$_libcurl" "USE_LIBCURL"
#
# Check for libmikmod to be present
#
echocheck "libmikmod"
if test "$_libmikmod" != "no"; then
# Look for the mikmod-config script
find_libmikmodconfig
echocheck "libmikmod"
if test -z "$_libmikmodconfig"; then
_libmikmod=no
else
if test -n "$_staticlibpath"; then
LIBMIKMOD_LIBS=`$_libmikmodconfig --static-libs`
else
LIBMIKMOD_LIBS=`$_libmikmodconfig --libs`
fi
LIBMIKMOD_LIBS=`$_libmikmodconfig --libs`
LIBMIKMOD_CFLAGS=`$_libmikmodconfig --cflags`
if test "$_libmikmod" = "auto"; then
@ -5758,19 +5755,20 @@ if test "$_libmikmod" != "no"; then
return 0;
}
EOF
cc_check $LIBMIKMOD_CFLAGS $LIBMIKMOD_LIBS && _libmikmod=yes
cc_check $LIBMIKMOD_CFLAGS $LIBMIKMOD_LIBS && _libmikmod=yes
fi
if test "$_libmikmod" = "yes"; then
append_var LIBS "$LIBMIKMOD_LIBS"
append_var INCLUDES "$LIBMIKMOD_CFLAGS"
fi
echo "$_libmikmod"
fi
fi
echo "$_libmikmod"
define_in_config_if_yes "$_libmikmod" "USE_MIKMOD"
#