changeset 21192:b5fbf3b37e5e

.
author Jim Meyering <jim@meyering.net>
date Sun, 27 Sep 1998 16:39:53 +0000
parents f8f5765e26d0
children 3c939a0f1e9b
files m4/glibc.m4
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m4/glibc.m4	Sun Sep 27 16:39:53 1998 +0000
@@ -0,0 +1,23 @@
+#serial 1
+
+dnl From Gordon Matzigkeit.
+dnl Test for the GNU C Library.
+dnl FIXME: this should migrate into libit.
+
+AC_DEFUN(AM_GLIBC,
+[AC_CACHE_CHECK(whether we are using the GNU C Library,
+  ac_cv_gnu_library,
+[AC_EGREP_CPP([Thanks for using GNU],
+[#include <features.h>
+#ifdef __GNU_LIBRARY__
+Thanks for using GNU
+#endif],
+  ac_cv_gnu_library=yes, ac_cv_gnu_library=no)])
+AC_CACHE_CHECK(for version 2 of the GNU C Library,
+  ac_cv_glibc,
+[AC_EGREP_CPP([Thanks for using GNU too],
+[#include <features.h>
+#ifdef __GLIBC__
+Thanks for using GNU too
+#endif],
+  ac_cv_glibc=yes, ac_cv_glibc=no)])])dnl