Skip to content
Snippets Groups Projects
Commit 5170f42a authored by John Ericson's avatar John Ericson Committed by Marge Bot
Browse files

Move libdl check to RTS configure

parent 25fa4b02
No related branches found
No related tags found
No related merge requests found
......@@ -972,11 +972,8 @@ FP_FIND_LIBFFI
AC_SUBST(UseSystemLibFFI)
dnl ** check whether we need -ldl to get dlopen()
AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([dl], [dlopen], HaveLibdl=YES, HaveLibdl=NO)
AC_SUBST([UseLibdl],[$HaveLibdl])
dnl ** check whether we have dlinfo
AC_CHECK_FUNCS([dlinfo])
AC_CHECK_LIB([dl], [dlopen], UseLibdl=YES, UseLibdl=NO)
AC_SUBST([UseLibdl])
dnl ** check for leading underscores in symbol names
FP_LEADING_UNDERSCORE
......
......@@ -33,6 +33,11 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host])
FPTOOLS_SET_PLATFORM_VARS([host], [Host])
FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host])
dnl ** check whether we need -ldl to get dlopen()
AC_CHECK_LIB([dl], [dlopen])
dnl ** check whether we have dlinfo
AC_CHECK_FUNCS([dlinfo])
dnl --------------------------------------------------
dnl * Miscellaneous feature tests
dnl --------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment