1 dnl *********** GNU libc 2 ***************
2 AC_DEFUN([AC_GNULIBC],[
3 AC_MSG_CHECKING(for GNU libc2)
4 AC_CACHE_VAL(knfsd_cv_glibc2,
7 #if !defined(__GLIBC__)
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"