]> granicus.if.org Git - php/commitdiff
Fix typo in config.m4
authorPeter Kokot <petk@php.net>
Sun, 29 Jul 2018 04:10:16 +0000 (06:10 +0200)
committerPeter Kokot <petk@php.net>
Sun, 29 Jul 2018 04:10:16 +0000 (06:10 +0200)
The AC_CHECK_FUNCS has the following synopsis:
AC_CHECK_FUNCS(function..., [action-if-found], [action-if-not-found]).

Fourth argument doesn't exist.

ext/standard/config.m4

index 7818266f24743883ffc08ecdc5be4039005ddabf..160a022e683d24df60d67a12c7cdb7ac66ab492d 100644 (file)
@@ -377,12 +377,7 @@ dnl
 dnl Check for i18n capabilities
 dnl
 AC_CHECK_HEADERS([wchar.h])
-AC_CHECK_FUNCS([mblen])
-AC_CHECK_FUNCS([mbrlen mbsinit],,,[
-#ifdef HAVE_WCHAR_H
-# include <wchar.h>
-#endif
-])
+AC_CHECK_FUNCS([mblen mbrlen mbsinit])
 AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t],[
 AC_TRY_COMPILE([
 #ifdef HAVE_WCHAR_H