aboutsummaryrefslogblamecommitdiff
path: root/m4/ac_glibc.m4
blob: 342401c5cae8e2a6ce0bb97343b061ea551540e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                            
                                                                            


                                 
AC_DEFUN([AC___GLIBC__],
[
  AC_MSG_CHECKING(for __GLIBC__)
  AC_CACHE_VAL(ac_cv___glibc__, [
  AC_TRY_COMPILE([#include <stdlib.h>],
  [#ifndef __GLIBC__
      #error __GLIBC__ is not defined
   #endif],
  ac_cv___glibc__=yes, ac_cv___glibc__=no)])
  if test "$ac_cv___glibc__" = "yes"; then
    AC_DEFINE(___GLIBC__, 1, [Define to 1 if your platform is ok for debug])
  fi
  AC_MSG_RESULT($ac_cv___glibc__)
])