Remove checks for shl_load() from configure/CMake

This function is not used any more since e289eb07e1 (Get rid of
non-POSIX code for loading dynlibs on *nix, 2020-05-13), so don't check
for it and don't defined the corresponding HAVE_SHL_LOAD symbol.
This commit is contained in:
Vadim Zeitlin
2020-05-14 23:56:03 +02:00
parent 2e6fec3601
commit fea8c608b1
7 changed files with 0 additions and 92 deletions

64
configure vendored
View File

@@ -32736,70 +32736,6 @@ if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
HAVE_DL_FUNCS=1
DL_LINK="-ldl $DL_LINK"
else
for ac_func in shl_load
do :
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
if test "x$ac_cv_func_shl_load" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SHL_LOAD 1
_ACEOF
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
HAVE_SHL_FUNCS=1
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld in -lshl_load" >&5
$as_echo_n "checking for dld in -lshl_load... " >&6; }
if ${ac_cv_lib_shl_load_dld+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lshl_load $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char dld ();
int
main ()
{
return dld ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_shl_load_dld=yes
else
ac_cv_lib_shl_load_dld=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shl_load_dld" >&5
$as_echo "$ac_cv_lib_shl_load_dld" >&6; }
if test "x$ac_cv_lib_shl_load_dld" = xyes; then :
HAVE_SHL_FUNCS=1
DL_LINK="-ldld $DL_LINK"
fi
fi
done
fi