Blame m4/glibc21.m4

Packit 709fb3
# glibc21.m4 serial 5
Packit 709fb3
dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2017 Free Software Foundation,
Packit 709fb3
dnl Inc.
Packit 709fb3
dnl This file is free software; the Free Software Foundation
Packit 709fb3
dnl gives unlimited permission to copy and/or distribute it,
Packit 709fb3
dnl with or without modifications, as long as this notice is preserved.
Packit 709fb3
Packit 709fb3
# Test for the GNU C Library, version 2.1 or newer, or uClibc.
Packit 709fb3
# From Bruno Haible.
Packit 709fb3
Packit 709fb3
AC_DEFUN([gl_GLIBC21],
Packit 709fb3
  [
Packit 709fb3
    AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc],
Packit 709fb3
      [ac_cv_gnu_library_2_1],
Packit 709fb3
      [AC_EGREP_CPP([Lucky],
Packit 709fb3
        [
Packit 709fb3
#include <features.h>
Packit 709fb3
#ifdef __GNU_LIBRARY__
Packit 709fb3
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
Packit 709fb3
  Lucky GNU user
Packit 709fb3
 #endif
Packit 709fb3
#endif
Packit 709fb3
#ifdef __UCLIBC__
Packit 709fb3
 Lucky user
Packit 709fb3
#endif
Packit 709fb3
        ],
Packit 709fb3
        [ac_cv_gnu_library_2_1=yes],
Packit 709fb3
        [ac_cv_gnu_library_2_1=no])
Packit 709fb3
      ]
Packit 709fb3
    )
Packit 709fb3
    AC_SUBST([GLIBC21])
Packit 709fb3
    GLIBC21="$ac_cv_gnu_library_2_1"
Packit 709fb3
  ]
Packit 709fb3
)