* m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
* modules/strtoul (configure.ac): ... to here.
+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ strtoul: Move AC_LIBOBJ invocations to module description.
+ * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
+ AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
+ * modules/strtoul (configure.ac): ... to here.
+
2011-05-22 Bruno Haible <bruno@clisp.org>
strtol: Move AC_LIBOBJ invocations to module description.
-# strtoul.m4 serial 4
+# strtoul.m4 serial 5
dnl Copyright (C) 2002, 2006, 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_STRTOUL],
[
- AC_REPLACE_FUNCS([strtoul])
+ AC_CHECK_FUNCS([strtoul])
])
configure.ac:
gl_FUNC_STRTOUL
+if test $ac_cv_func_strtoul = no; then
+ AC_LIBOBJ([strtoul])
+fi
Makefile.am: