Skip to content

Commit

Permalink
build: Disable checks for dlopen/dlfcn
Browse files Browse the repository at this point in the history
While it is (potentially) available with mingw we don't want to use it, so skip any
checks for it.
  • Loading branch information
lazka committed Aug 25, 2023
1 parent bc92836 commit d7f917a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,7 @@ AC_DEFINE(STDC_HEADERS, 1, [Define to 1 if you have the ANSI C header files.])

# checks for header files
AC_CHECK_HEADERS([ \
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h dlfcn.h endian.h errno.h fcntl.h grp.h \
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h endian.h errno.h fcntl.h grp.h \
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/limits.h linux/memfd.h \
linux/random.h linux/soundcard.h \
linux/tipc.h linux/wait.h netdb.h netinet/in.h netpacket/packet.h poll.h process.h pty.h \
Expand All @@ -2848,6 +2848,13 @@ AC_CHECK_HEADERS([ \
sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h sys/xattr.h sysexits.h syslog.h \
termios.h util.h utime.h utmp.h \
])

case $host in
*-*-mingw*) ;;
*) AC_CHECK_HEADERS([dlfcn.h]);;
esac


AC_HEADER_DIRENT
AC_HEADER_MAJOR

Expand Down Expand Up @@ -3586,7 +3593,12 @@ AC_MSG_RESULT($SHLIBS)

# checks for libraries
AC_CHECK_LIB(sendfile, sendfile)
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV

case $host in
*-*-mingw*) ;;
*) AC_CHECK_LIB(dl, dlopen) ;; # Dynamic linking for SunOS/Solaris and SYSV
esac

AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX


Expand Down Expand Up @@ -5851,7 +5863,10 @@ AS_VAR_IF([ac_cv_broken_sem_getvalue], [yes], [
)
])

AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include <dlfcn.h>]])
case $host in
*-*-mingw*) ;;
*) AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include <dlfcn.h>]]);;
esac

# determine what size digit to use for Python's longs
AC_MSG_CHECKING([digit size for Python's longs])
Expand Down

0 comments on commit d7f917a

Please sign in to comment.