|
|
| |
dnl Checks for libraries. | dnl Checks for libraries. |
dnl Replace `main' with a function in -ldl: | dnl Replace `main' with a function in -ldl: |
AC_CHECK_LIB(dl, dlsym,,AC_MSG_ERROR("libdl is required")) |
AC_CHECK_FUNC([dlsym], [], [AC_CHECK_LIB(dl, dlsym,,AC_MSG_ERROR("libdl is required"))]) |
| |
dnl If we're using gcc here define _GNU_SOURCE | dnl If we're using gcc here define _GNU_SOURCE |
AC_MSG_CHECKING("for RTLD_NEXT from dlfcn.h") | AC_MSG_CHECKING("for RTLD_NEXT from dlfcn.h") |
|
Lines 312-318
AC_DEFINE_UNQUOTED(CLOSE_SIGNATURE, [${P
|
Link Here
|
|---|
|
dnl Find the correct poll prototype on this machine | dnl Find the correct poll prototype on this machine |
AC_MSG_CHECKING(for correct poll prototype) | AC_MSG_CHECKING(for correct poll prototype) |
PROTO= | PROTO= |
for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' |
for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' 'struct pollfd ufds[[]], nfds_t nfds, int timeout' |
do | do |
if test "${PROTO}" = ""; then | if test "${PROTO}" = ""; then |
AC_TRY_COMPILE([ | AC_TRY_COMPILE([ |