diff options
author | Thorsten Kukuk <kukuk@suse.de> | 2015-04-29 09:58:06 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-04-29 17:05:43 -0400 |
commit | 1270f66c8bef9f94a06a4842364970a71985ff55 (patch) | |
tree | bedcebdae902af797ca34cdccfdc677b0a60c35b /configure.ac | |
parent | 4ba9ce277dd6c747e17d1e746c0b58b180bc0b11 (diff) | |
download | ti-rpc-1270f66c8bef9f94a06a4842364970a71985ff55.tar.gz |
disable *rpcent functions if they exist in libc
Per default we disable getrpcbyname and getrpcbynumber, if
this functions are available in libc. But with glibc, all
*rpcent* functions are using NSS, inside tirpc only /etc/rpc.
What happens now is that getrpcbyname/getrpcbynumber can return
other results as getrpcent. This should not happen. So check for
all functions if available from libc and don't use them if this
is the case.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fe35afa..2bdecc5 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,7 @@ AC_PREFIX_DEFAULT(/usr) AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h]) AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([nsl], [yp_get_default_domain]) -AC_CHECK_FUNCS([getrpcbyname getrpcbynumber]) +AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile]) AC_OUTPUT(libtirpc.pc) |