>grand.central.org GCO Public CellServDB 25 Oct 2007
[arla.git] / cf / check-glibc.m4
blob79487c51250f03a9b188301425465f8a93f28bbf
1 dnl
2 dnl $Id$
3 dnl
4 dnl
5 dnl test for GNU libc
6 dnl
8 AC_DEFUN([AC_CHECK_GLIBC],[
9 AC_CACHE_CHECK([for glibc],ac_cv_libc_glibc,[
10 AC_EGREP_CPP(yes,
11 [#include <features.h>
12 #ifdef __GLIBC__
13 yes
14 #endif
16 eval "ac_cv_libc_glibc=yes",
17 eval "ac_cv_libc_glibc=no")])
18 if test "$ac_cv_libc_glibc" = "yes";then
19         AC_DEFINE(HAVE_GLIBC, 1,
20         [define if you have a glibc-based system])