summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m4
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m4')
-rw-r--r--meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m4 b/meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m4
new file mode 100644
index 0000000000..5b88ef231c
--- /dev/null
+++ b/meta/recipes-core/console-tools/console-tools-0.3.2/config/glibc21.m4
@@ -0,0 +1,26 @@
1#serial 2
2
3# Test for the GNU C Library, version 2.1 or newer.
4# From Bruno Haible.
5
6AC_DEFUN([jm_GLIBC21],
7 [
8 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
9 ac_cv_gnu_library_2_1,
10 [AC_EGREP_CPP([Lucky GNU user],
11 [
12#include <features.h>
13#ifdef __GNU_LIBRARY__
14 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15 Lucky GNU user
16 #endif
17#endif
18 ],
19 ac_cv_gnu_library_2_1=yes,
20 ac_cv_gnu_library_2_1=no)
21 ]
22 )
23 AC_SUBST(GLIBC21)
24 GLIBC21="$ac_cv_gnu_library_2_1"
25 ]
26)