Files
mongo-php-driver/scripts/autotools/libmongoc/WeakSymbols.m4
Jeremy Mikola 4d9dd87c2c Remove "build/" from autotools scripts path
GitHub's file finder filters out "build/" directories, among others, which can make it difficult to quickly access these files. Also, the "build/" directory doesn't provide much value here, since it only contains "autotools/".
2018-05-16 11:03:46 -04:00

10 lines
257 B
Plaintext

AC_MSG_CHECKING(if weak symbols are supported)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
__attribute__((weak)) void __dummy(void *x) { }
void f(void *x) { __dummy(x); }
]], [[ ]]
)],
[AC_MSG_RESULT(yes)
AC_SUBST(MONGOC_HAVE_WEAK_SYMBOLS, 1)],
[AC_MSG_RESULT(no)])