sim: support dlopen in -lc

Stop assuming that dlopen is only available via -ldl.  Newer versions
of glibc have merged it into -lc which broke this configure test.
This commit is contained in:
Mike Frysinger
2023-12-06 20:28:40 -07:00
parent d7befe04fa
commit 708aee5ec6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12915,7 +12915,7 @@ if test "$ac_res" != no; then :
fi
if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
+1 -1
View File
@@ -151,7 +151,7 @@ AC_SEARCH_LIBS([fabs], [m])
AC_SEARCH_LIBS([log2], [m])
AC_SEARCH_LIBS([dlopen], [dl])
if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
PKG_CHECK_MODULES(SDL, sdl2, [dnl
SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
], [