mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
18 lines
443 B
Plaintext
18 lines
443 B
Plaintext
|
AC_DEFUN([AC_CHECK_RPC],
|
||
|
[
|
||
|
AC_CHECK_FUNCS(pmap_set, , [
|
||
|
AC_CHECK_LIB(rpc, pmap_set, [
|
||
|
LIBS="-lrpc $LIBS"
|
||
|
AC_DEFINE(HAVE_PMAP_SET)
|
||
|
])])
|
||
|
AC_CHECK_FUNCS(pmap_getport pmap_getmaps rresvport)
|
||
|
dnl add for source routing support setsockopt
|
||
|
AC_CHECK_HEADERS(rpc/pmap_clnt.h, , , [
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/socket.h>
|
||
|
#include <netinet/in.h>
|
||
|
#include <rpc/rpc.h>
|
||
|
#include <rpc/pmap_prot.h>
|
||
|
])
|
||
|
])
|