753 |
])# AC_FUNC_MALLOC |
])# AC_FUNC_MALLOC |
754 |
|
|
755 |
|
|
756 |
|
# AC_FUNC_MBRTOWC |
757 |
|
# --------------- |
758 |
|
AC_DEFUN([AC_FUNC_MBRTOWC], |
759 |
|
[ |
760 |
|
AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared], |
761 |
|
ac_cv_func_mbrtowc, |
762 |
|
[AC_LINK_IFELSE( |
763 |
|
[AC_LANG_PROGRAM( |
764 |
|
[[@%:@include <wchar.h>]], |
765 |
|
[[mbstate_t state; return ! (sizeof state && mbrtowc);]])], |
766 |
|
ac_cv_func_mbrtowc=yes, |
767 |
|
ac_cv_func_mbrtowc=no)]) |
768 |
|
if test $ac_cv_func_mbrtowc = yes; then |
769 |
|
AC_DEFINE([HAVE_MBRTOWC], 1, |
770 |
|
[Define to 1 if mbrtowc and mbstate_t are properly declared.]) |
771 |
|
fi |
772 |
|
]) |
773 |
|
|
774 |
|
|
775 |
# AC_FUNC_MEMCMP |
# AC_FUNC_MEMCMP |
776 |
# -------------- |
# -------------- |
777 |
AC_DEFUN([AC_FUNC_MEMCMP], |
AC_DEFUN([AC_FUNC_MEMCMP], |