Blame m4/glibc21.m4

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