Correct check for socklen_t, stolen from XEmacs.
This commit is contained in:
parent
921ecb9320
commit
7906942942
16
configure.in
16
configure.in
|
@ -189,6 +189,20 @@ AC_DEFUN(SCSH_CONST_SYS_ERRLIST,[
|
|||
fi
|
||||
])
|
||||
|
||||
dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||
AC_DEFUN(SCSH_SOCKLEN_T,[
|
||||
AC_MSG_CHECKING(for socklen_t)
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>
|
||||
socklen_t x;
|
||||
],[],[AC_MSG_RESULT(yes)],[
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>
|
||||
int accept (int, struct sockaddr *, size_t *);
|
||||
],[],[
|
||||
AC_MSG_RESULT(size_t)
|
||||
AC_DEFINE(socklen_t,size_t)], [
|
||||
AC_MSG_RESULT(int)
|
||||
AC_DEFINE(socklen_t,int)])])
|
||||
])
|
||||
dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||
AC_INIT(c/scheme48vm.c)
|
||||
AC_CONFIG_HEADER(c/sysdep.h)
|
||||
|
@ -331,7 +345,7 @@ esac
|
|||
AC_CHECK_HEADERS(sys/un.h)
|
||||
AC_CHECK_HEADERS(crypt.h)
|
||||
AC_CHECK_FUNCS(gettimeofday ftime nlist select setitimer sigaction)
|
||||
AC_CHECK_TYPE(socklen_t, unsigned int)
|
||||
SCSH_SOCKLEN_T
|
||||
AC_CHECK_FUNC(dlopen, AC_DEFINE(HAVE_DLOPEN),
|
||||
AC_CHECK_FUNC(nlist, [LIBOBJS="$LIBOBJS c/fake/libdl1.o"],
|
||||
[LIBOBJS="$LIBOBJS c/fake/libdl2.o"]))
|
||||
|
|
Loading…
Reference in New Issue