summaryrefslogtreecommitdiffstats
path: root/patches/source/rpcbind/rpcbind.lwrap.needs.lnsl.diff
blob: 43f2bdf8f0250d343bed8462c6148b54c557231a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ./configure.ac.orig	2015-04-27 09:07:43.000000000 -0500
+++ ./configure.ac	2015-12-14 13:34:54.592931654 -0600
@@ -52,6 +52,11 @@
   fi
 AM_CONDITIONAL(SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
 
+AC_SEARCH_LIBS(yp_get_default_domain, nsl)
+AC_MSG_CHECKING([for hosts_access in -lwrap])
+saved_LIBS="$LIBS"
+LIBS="$saved_LIBS -lwrap"
+
 AS_IF([test x$enable_libwrap = xyes], [
 	AC_CHECK_LIB([wrap], [hosts_access], ,
 		AC_MSG_ERROR([libwrap support requested but unable to find libwrap]))