aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 19:34:33 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 19:34:33 +0000
commit96852f698dd6e241f398175a316dcf5c4d962b05 (patch)
treef61e2a115bc90e1a058873f9e75316fd7d5e9f49 /acinclude.m4
parent3f0b6d8d866fcdf0ce0826e8702942cd3ff7768c (diff)
improve AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but just check for its existence
finish implementation of check for Zaptel HWGAIN support add check for Zaptel ECHOCANCEL_PARAMS support git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95937 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index f1df5e5bb..f09404329 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -100,7 +100,14 @@ AC_DEFUN([AST_C_DEFINE_CHECK],
CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
AC_COMPILE_IFELSE(
- [ AC_LANG_PROGRAM( [#include <$3>], [int foo = $2;]) ],
+ [ AC_LANG_PROGRAM( [#include <$3>],
+ [#if defined($2)
+ int foo = 0;
+ #else
+ int foo = bar;
+ #endif
+ 0
+ ])],
[ AC_MSG_RESULT(yes)
PBX_$1=1
AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 headers.])