* m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
from here...
* modules/rawmemchr (configure.ac): ... to here.
+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ rawmemchr: Move AC_LIBOBJ invocations to module description.
+ * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
+ AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
+ from here...
+ * modules/rawmemchr (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
random_r: Move AC_LIBOBJ invocations to module description.
-# rawmemchr.m4 serial 1
+# rawmemchr.m4 serial 2
dnl Copyright (C) 2003, 2007-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_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
- AC_REPLACE_FUNCS([rawmemchr])
+ AC_CHECK_FUNCS([rawmemchr])
if test $ac_cv_func_rawmemchr = no; then
HAVE_RAWMEMCHR=0
- gl_PREREQ_RAWMEMCHR
fi
])
configure.ac:
gl_FUNC_RAWMEMCHR
+if test $HAVE_RAWMEMCHR = 0; then
+ AC_LIBOBJ([rawmemchr])
+ gl_PREREQ_RAWMEMCHR
+fi
gl_STRING_MODULE_INDICATOR([rawmemchr])
Makefile.am: