mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
CONFIGURE: Allow detection of static FreeType2 builds.
This is actually a bit abusive of the --static option. However, it works and prevents a lot of hassle to setup building when FreeType2 was built with --disable-shared.
This commit is contained in:
parent
8c906fbb3e
commit
04760d3e2f
10
configure
vendored
10
configure
vendored
@ -4043,7 +4043,15 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
EOF
|
||||
|
||||
cc_check $FREETYPE2_CFLAGS $FREETYPE2_LIBS && _freetype2=yes
|
||||
cc_check_no_clean $FREETYPE2_CFLAGS $FREETYPE2_LIBS && _freetype2=yes
|
||||
# Modern freetype-config scripts accept --static to get all
|
||||
# required flags for static linking. We abuse this to detect
|
||||
# FreeType2 builds which are static themselves.
|
||||
if test "_freetype2" != "yes"; then
|
||||
FREETYPE2_LIBS=`$_freetypeconfig --prefix="$_freetypepath" --static --libs 2>/dev/null`
|
||||
cc_check_no_clean $FREETYPE2_CFLAGS $FREETYPE2_LIBS && _freetype2=yes
|
||||
fi
|
||||
cc_check_clean
|
||||
fi
|
||||
|
||||
if test "$_freetype2" = "yes"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user