Blame m4/glibc21.m4

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