* m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
here...
* modules/strpbrk (configure.ac): ... to here.
+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ strpbrk: Move AC_LIBOBJ invocations to module description.
+ * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
+ AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
+ here...
+ * modules/strpbrk (configure.ac): ... to here.
+
2011-05-22 Bruno Haible <bruno@clisp.org>
strnlen: Move AC_LIBOBJ invocations to module description.
-# strpbrk.m4 serial 5
+# strpbrk.m4 serial 6
dnl Copyright (C) 2002-2003, 2007, 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_STRPBRK],
[
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
- AC_REPLACE_FUNCS([strpbrk])
+ AC_CHECK_FUNCS([strpbrk])
if test $ac_cv_func_strpbrk = no; then
HAVE_STRPBRK=0
- gl_PREREQ_STRPBRK
fi
])
configure.ac:
gl_FUNC_STRPBRK
+if test $HAVE_STRPBRK = 0; then
+ AC_LIBOBJ([strpbrk])
+ gl_PREREQ_STRPBRK
+fi
gl_STRING_MODULE_INDICATOR([strpbrk])
Makefile.am: