mountd: cache.c no longer needs #include xmalloc.h
[nfs-utils.git] / aclocal / nfs-utils.m4
1 dnl *********** GNU libc 2 ***************
2 AC_DEFUN([AC_GNULIBC],[
3   AC_MSG_CHECKING(for GNU libc2)
4   AC_CACHE_VAL(knfsd_cv_glibc2,
5   [AC_TRY_CPP([
6       #include <features.h>
7       #if !defined(__GLIBC__)
8       # error Nope
9       #endif
10       ],
11   knfsd_cv_glibc2=yes, knfsd_cv_glibc2=no)])
12   AC_MSG_RESULT($knfsd_cv_glibc2)
13   if test $knfsd_cv_glibc2 = yes; then
14     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
16   fi
17 ])