mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-04 23:37:59 +02:00
* builds/unix/configure.raw: Improve check for dlopen.
Look for `dlopen` first in 'libc', then in 'libdl'.
This commit is contained in:
parent
43ec023e1a
commit
3eb5188e8e
1 changed files with 10 additions and 2 deletions
|
|
@ -469,11 +469,19 @@ have_harfbuzz_dynamic=no
|
|||
if test x"$have_harfbuzz" = xno; then
|
||||
if test x"$with_harfbuzz" = xdynamic -o x"$with_harfbuzz" = xauto; then
|
||||
# Check for libdl
|
||||
AC_CHECK_LIB([dl], [dlopen], [have_harfbuzz_dynamic=yes])
|
||||
AC_CHECK_LIB([c],
|
||||
[dlopen],
|
||||
[have_harfbuzz_dynamic=yes],
|
||||
AC_CHECK_LIB([dl],
|
||||
[dlopen],
|
||||
[have_harfbuzz_dynamic=yes
|
||||
need_libdl=yes]))
|
||||
if test x"$have_harfbuzz_dynamic" = xyes; then
|
||||
have_harfbuzz="yes (dynamic)"
|
||||
HARFBUZZ_CFLAGS=
|
||||
HARFBUZZ_LIBS="-ldl"
|
||||
if test x"$need_libdl" = xyes; then
|
||||
HARFBUZZ_LIBS="-ldl"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue