X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fmbslen.m4;h=3c44fa652665a7b1e0a8a15b10f43d9c20cadb1b;hb=062cad2d07081f9a60adbb90fc1184a435a1a93f;hp=dad8a8cf6edebdf51dd165c0becdcb0f1d1c49e1;hpb=ef66119f6b4d0211693d944c495d1e15c9331667;p=gnulib.git diff --git a/m4/mbslen.m4 b/m4/mbslen.m4 index dad8a8cf6..3c44fa652 100644 --- a/m4/mbslen.m4 +++ b/m4/mbslen.m4 @@ -1,16 +1,16 @@ # mbslen.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_FUNC_MBSLEN], +AC_DEFUN([gl_MBSLEN], [ - gl_PREREQ_MBSLEN -]) - -# Prerequisites of lib/mbslen.c. -AC_DEFUN([gl_PREREQ_MBSLEN], [ - AC_REQUIRE([gl_FUNC_MBRTOWC]) - : + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([mbslen]) + if test $ac_cv_func_mbslen = yes; then + HAVE_MBSLEN=1 + else + HAVE_MBSLEN=0 + fi ])