Mercurial > hg > octave-nkf > gnulib-hg
changeset 2555:7c8ce8117a09
New file. From Bruno Haible.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 03 Jun 2000 08:23:54 +0000 |
parents | 3ace7a449eb5 |
children | 1bc92458a48e |
files | m4/glibc21.m4 |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /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) + ] +)