X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmemmem.m4;h=e6a3da193c7aa17d3a4bc1b3d7922217cc5b81f4;hb=05552c43d21f272e927663aae4bc810e17d4d785;hp=86072eaac1688b90a1345b162d36fdb423deea04;hpb=44d7c1c1f004fa9bfb8ec3948de2671a7958cf5b;p=gnulib.git diff --git a/m4/memmem.m4 b/m4/memmem.m4 index 86072eaac..e6a3da193 100644 --- a/m4/memmem.m4 +++ b/m4/memmem.m4 @@ -1,5 +1,5 @@ -# memmem.m4 serial 2 -dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +# memmem.m4 serial 5 +dnl Copyright (C) 2002, 2003, 2004, 2007 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. @@ -7,10 +7,14 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MEMMEM], [ dnl Persuade glibc to declare memmem(). - AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_REPLACE_FUNCS(memmem) AC_CHECK_DECLS_ONCE(memmem) + if test $ac_cv_have_decl_memmem = no; then + HAVE_DECL_MEMMEM=0 + fi gl_PREREQ_MEMMEM ])