aboutsummaryrefslogtreecommitdiff
path: root/m4/ac_glibc.m4
blob: aeb9c17b340de9a9f81f1a8fd3b69bafa4382cb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(_ESPIK_DEBUG_, 1, [Define to 1 if your platform is ok for debug])
  fi
  AC_MSG_RESULT($ac_cv___glibc__)
])