fixed glibc 2.1 detection test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-06-07 00:34:01 +00:00
parent b8510c2f40
commit efdc61a680
2 changed files with 5 additions and 2 deletions

2
configure vendored
View File

@ -9589,7 +9589,7 @@ else
#include <features.h>
int main() {
#if !__GLIBC_PREREQ(2, 1)
#if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
#error not glibc2.1
#endif

View File

@ -1363,11 +1363,14 @@ dnl flush the cache because checking for libraries below might abort
AC_CACHE_SAVE
dnl check for glibc version
dnl
dnl VZ: I have no idea why had this check been there originally, but now
dnl it is only used to get the recursive mutexes under Linux
if test "$USE_LINUX" = 1; then
AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[
AC_TRY_COMPILE([#include <features.h>],
[
#if !__GLIBC_PREREQ(2, 1)
#if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
#error not glibc2.1
#endif
],