aboutsummaryrefslogtreecommitdiff
path: root/m4/glibc21.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/glibc21.m4')
-rw-r--r--m4/glibc21.m436
1 files changed, 19 insertions, 17 deletions
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4
index 9c9f3db3..ab58b712 100644
--- a/m4/glibc21.m4
+++ b/m4/glibc21.m4
@@ -1,32 +1,34 @@
1# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) 1# glibc21.m4 serial 5
2dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 2dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2014 Free Software Foundation,
3dnl This file is free software, distributed under the terms of the GNU 3dnl Inc.
4dnl General Public License. As a special exception to the GNU General 4dnl This file is free software; the Free Software Foundation
5dnl Public License, this file may be distributed as part of a program 5dnl gives unlimited permission to copy and/or distribute it,
6dnl that contains a configuration script generated by Autoconf, under 6dnl with or without modifications, as long as this notice is preserved.
7dnl the same distribution terms as the rest of that program.
8 7
9# Test for the GNU C Library, version 2.1 or newer. 8# Test for the GNU C Library, version 2.1 or newer, or uClibc.
10# From Bruno Haible. 9# From Bruno Haible.
11 10
12AC_DEFUN([jm_GLIBC21], 11AC_DEFUN([gl_GLIBC21],
13 [ 12 [
14 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, 13 AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc],
15 ac_cv_gnu_library_2_1, 14 [ac_cv_gnu_library_2_1],
16 [AC_EGREP_CPP([Lucky GNU user], 15 [AC_EGREP_CPP([Lucky],
17 [ 16 [
18#include <features.h> 17#include <features.h>
19#ifdef __GNU_LIBRARY__ 18#ifdef __GNU_LIBRARY__
20 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 19 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
21 Lucky GNU user 20 Lucky GNU user
22 #endif 21 #endif
23#endif 22#endif
24 ], 23#ifdef __UCLIBC__
25 ac_cv_gnu_library_2_1=yes, 24 Lucky user
26 ac_cv_gnu_library_2_1=no) 25#endif
26 ],
27 [ac_cv_gnu_library_2_1=yes],
28 [ac_cv_gnu_library_2_1=no])
27 ] 29 ]
28 ) 30 )
29 AC_SUBST(GLIBC21) 31 AC_SUBST([GLIBC21])
30 GLIBC21="$ac_cv_gnu_library_2_1" 32 GLIBC21="$ac_cv_gnu_library_2_1"
31 ] 33 ]
32) 34)