use C compiler for tests again, it's useless to use the C++ one for AC_CHECK_FUNCS() test anyhow; do use WX_CHECK_FUNCS() instead of several AC_CHECK_FUNCS() where we need to make sure that the function declaration is available

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-11-09 15:30:37 +00:00
parent 83bef83edd
commit fd5199d66b
3 changed files with 7244 additions and 7524 deletions

View File

@@ -23,6 +23,9 @@ AC_DEFUN([AC_raf_FUNC_WHICH_GETSERVBYNAME_R],
AC_CACHE_CHECK(how many arguments getservbyname_r() takes,
ac_cv_func_which_getservbyname_r,
[
dnl we need to use C++ to detect missing prototypes
AC_LANG_PUSH(C++)
AC_TRY_COMPILE([#include <netdb.h>],
[
char *name;
@@ -60,6 +63,7 @@ AC_CACHE_CHECK(how many arguments getservbyname_r() takes,
)
]
)
AC_LANG_POP()
]
)