blob: 4786bbbe474dd49abaaf6129f8b5094b46b05318 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# if { echo '#if __GNUC__'
# echo ' yes '
# echo '#endif'; } | ${CC} -E - | grep yes > /dev/null } ; then
# gnuc_compiler=yes
# else
# gnuc_compiler=no
# fi
AC_DEFUN([AC___GNUC__],
[
AC_MSG_CHECKING(for __GNUC__)
AC_CACHE_VAL(ac_cv___gnuc__, [
AC_TRY_COMPILE([#include <stdlib.h>],
[#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(___GNUC__, 1, [Define to 1 if your platform is ok for debug])
fi
AC_MSG_RESULT($ac_cv___gnuc__)
])
|