Skip to content

Commit cf9c2f6

Browse files
committed
build: Disable checks for dlopen/dlfcn
While it is (potentially) available with mingw we don't want to use it, so skip any checks for it.
1 parent 6512996 commit cf9c2f6

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

configure.ac

+18-3
Original file line numberDiff line numberDiff line change
@@ -2832,7 +2832,7 @@ AC_DEFINE(STDC_HEADERS, 1, [Define to 1 if you have the ANSI C header files.])
28322832

28332833
# checks for header files
28342834
AC_CHECK_HEADERS([ \
2835-
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h dlfcn.h endian.h errno.h fcntl.h grp.h \
2835+
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h endian.h errno.h fcntl.h grp.h \
28362836
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/memfd.h \
28372837
linux/random.h linux/soundcard.h \
28382838
linux/tipc.h linux/wait.h netdb.h netinet/in.h netpacket/packet.h poll.h process.h pty.h \
@@ -2844,6 +2844,13 @@ AC_CHECK_HEADERS([ \
28442844
sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h sys/xattr.h sysexits.h syslog.h \
28452845
termios.h util.h utime.h utmp.h \
28462846
])
2847+
2848+
case $host in
2849+
*-*-mingw*) ;;
2850+
*) AC_CHECK_HEADERS([dlfcn.h]);;
2851+
esac
2852+
2853+
28472854
AC_HEADER_DIRENT
28482855
AC_HEADER_MAJOR
28492856

@@ -3582,7 +3589,12 @@ AC_MSG_RESULT($SHLIBS)
35823589

35833590
# checks for libraries
35843591
AC_CHECK_LIB(sendfile, sendfile)
3585-
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
3592+
3593+
case $host in
3594+
*-*-mingw*) ;;
3595+
*) AC_CHECK_LIB(dl, dlopen) ;; # Dynamic linking for SunOS/Solaris and SYSV
3596+
esac
3597+
35863598
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
35873599

35883600

@@ -5847,7 +5859,10 @@ AS_VAR_IF([ac_cv_broken_sem_getvalue], [yes], [
58475859
)
58485860
])
58495861

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

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

0 commit comments

Comments
 (0)