diff options
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | m4/ac_glibc.m4 | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 46a0372..44086ca 100644 --- a/configure.in +++ b/configure.in @@ -18,6 +18,7 @@ AC_C_CONST dnl espik specific check (include in m4) AC_C___ATTRIBUTE__ AC___GNUC__ +AC___GLIBC__ AC_ARG_WITH(ecore-config, [ --with-ecore-config=ECORE_CONFIG use ecore-config specified ], diff --git a/m4/ac_glibc.m4 b/m4/ac_glibc.m4 new file mode 100644 index 0000000..aeb9c17 --- /dev/null +++ b/m4/ac_glibc.m4 @@ -0,0 +1,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__) +]) |