1 dnl Check for a yp_all() function that does not leak a file descriptor
2 dnl to the ypserv process.
3 AC_DEFUN([AMU_FUNC_BAD_YP_ALL],
5 AC_CACHE_CHECK(for a file-descriptor leakage clean yp_all,
6 ac_cv_func_yp_all_clean,
9 ac_cv_func_yp_all_clean=yes
10 # select the correct type
11 case "${host_os_name}" in
13 ac_cv_func_yp_all_clean=no ;;
15 # RedHat 5.1 systems with glibc glibc-2.0.7-19 or below
16 # leak a UDP socket from yp_all()
17 case "`cat /etc/redhat-release /dev/null 2>/dev/null`" in
19 ac_cv_func_yp_all_clean=no ;;
23 if test $ac_cv_func_yp_all_clean = no
25 AC_DEFINE(HAVE_BAD_YP_ALL)