diff options
author | Pixel <Pixel> | 2001-11-09 09:20:30 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-09 09:20:30 +0000 |
commit | 69d9cab0c415837552a84f17366356e9571fdbda (patch) | |
tree | c5eb17ab314d5f241954109e35dcb4ebeb1d19e6 /m4/glibc21.m4 | |
parent | b8564d828368c6446c3c23709efe65baf4a53fe0 (diff) |
Autogen...
Diffstat (limited to 'm4/glibc21.m4')
-rw-r--r-- | m4/glibc21.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 new file mode 100644 index 0000000..5b88ef2 --- /dev/null +++ b/m4/glibc21.m4 @@ -0,0 +1,26 @@ +#serial 2 + +# 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_SUBST(GLIBC21) + GLIBC21="$ac_cv_gnu_library_2_1" + ] +) |