mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
ensure that dependencies on AST_C_DEFINE_CHECK symbols work properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -92,7 +92,7 @@ AC_DEFUN([AST_CHECK_MANDATORY],
|
||||
# AST_C_DEFINE_CHECK([package], [macro name], [header file], [version])
|
||||
AC_DEFUN([AST_C_DEFINE_CHECK],
|
||||
[
|
||||
if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then
|
||||
if test "x${PBX_$1}" != "x1"; then
|
||||
AC_MSG_CHECKING([for $2 in $3])
|
||||
saved_cppflags="${CPPFLAGS}"
|
||||
if test "x${$1_DIR}" != "x"; then
|
||||
@@ -118,6 +118,7 @@ AC_DEFUN([AST_C_DEFINE_CHECK],
|
||||
)
|
||||
CPPFLAGS="${saved_cppflags}"
|
||||
fi
|
||||
AC_SUBST(PBX_$1)
|
||||
])
|
||||
|
||||
|
||||
|
@@ -1178,6 +1178,9 @@
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# undef _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# undef _TANDEM_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#undef __PROTOTYPES
|
||||
|
Reference in New Issue
Block a user