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