diff options
author | beber <beber> | 2005-12-08 23:14:06 +0000 |
---|---|---|
committer | beber <beber> | 2005-12-08 23:14:06 +0000 |
commit | edb0fd28cd1ced51b45d7fe1ea57408e1be03400 (patch) | |
tree | 4db4c653b2a30400b17963ea42a150788529235c /m4 | |
parent | __GNUC__ not _GNUC_ (diff) | |
download | espik-edb0fd28cd1ced51b45d7fe1ea57408e1be03400.tar.xz |
And now the check for __GNUC__ is Ok
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ac_gnuc.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/ac_gnuc.m4 b/m4/ac_gnuc.m4 index 222d7f3..76e80ae 100644 --- a/m4/ac_gnuc.m4 +++ b/m4/ac_gnuc.m4 @@ -11,7 +11,9 @@ AC_DEFUN([AC___GNUC__], AC_MSG_CHECKING(for __GNUC__) AC_CACHE_VAL(ac_cv___gnuc__, [ AC_TRY_COMPILE([#include <stdlib.h>], - [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], + [#ifndef __GNUC__ + #error __GNUC__ is not defined + #endif], ac_cv___gnuc__=yes, ac_cv___gnuc__=no)]) if test "$ac_cv___gnuc__" = "yes"; then AC_DEFINE(_ESPIK_DEBUG_, 1, [Define to 1 if your platform is ok for debug]) |