diff options
author | Jim Meyering <jim@meyering.net> | 2000-06-03 08:23:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-06-03 08:23:54 +0000 |
commit | 6f7ac74eb3222cbe4407901a63dc8af025684273 (patch) | |
tree | 358386deee94a77a757767bf2e13808b7bdaba6b /m4 | |
parent | f6639dbe36633f79ea3f487a00b3b4d5a01c7532 (diff) | |
download | coreutils-6f7ac74eb3222cbe4407901a63dc8af025684273.tar.xz |
New file. From Bruno Haible.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/glibc21.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 new file mode 100644 index 000000000..dab37244d --- /dev/null +++ b/m4/glibc21.m4 @@ -0,0 +1,25 @@ +#serial 1 + +# Test for the GNU C Library, version 2.1 or newer. +# From Bruno Haible. + +AC_DEFUN(jm_GLIBC21, + [ + AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, + ac_cv_gnu_library_2_1, + [AC_EGREP_CPP([Lucky GNU user], + [ +#include <features.h> +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif + ], + ac_cv_gnu_library_2_1=yes, + ac_cv_gnu_library_2_1=no) + ] + ) + AC_DEFINE_UNQUOTED(GLIBC21,$ac_cv_gnu_library_2_1) + ] +) |