diff options
author | beber <beber> | 2005-12-08 23:20:44 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-08 23:20:44 +0000 |
commit | fe4c028af9a7d54cdf4aeb1790c45e20b7dd79f4 (patch) | |
tree | c9e9fba14885bab955bec472bacf0118e7f8bc4d | |
parent | And now the check for __GNUC__ is Ok (diff) | |
download | espik-fe4c028af9a7d54cdf4aeb1790c45e20b7dd79f4.tar.xz |
add a m4 macro for glibc
I don't know if it's realy important
-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__) +]) |