Blame m4/glibc21.m4

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