Blame m4/glibc2.m4

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