Blame m4/glibc21.m4

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