+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
+ * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
+ invocations from here...
+ * modules/strdup (configure.ac): ... to here.
+ * modules/strdup-posix (configure.ac): ... and here.
+
2011-05-22 Bruno Haible <bruno@clisp.org>
strcspn: Move AC_LIBOBJ invocations to module description.
-# strdup.m4 serial 12
+# strdup.m4 serial 13
dnl Copyright (C) 2002-2011 Free Software Foundation, Inc.
[
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
AC_CHECK_FUNCS_ONCE([strdup])
- if test $ac_cv_func_strdup != yes; then
- AC_LIBOBJ([strdup])
- gl_PREREQ_STRDUP
- fi
AC_CHECK_DECLS_ONCE([strdup])
if test $ac_cv_have_decl_strdup = no; then
HAVE_DECL_STRDUP=0
if test $ac_cv_func_strdup = yes; then
if test $gl_cv_func_malloc_posix != yes; then
REPLACE_STRDUP=1
- AC_LIBOBJ([strdup])
- gl_PREREQ_STRDUP
fi
- else
- AC_LIBOBJ([strdup])
- gl_PREREQ_STRDUP
fi
AC_CHECK_DECLS_ONCE([strdup])
if test $ac_cv_have_decl_strdup = no; then
configure.ac:
gl_FUNC_STRDUP
+if test $ac_cv_func_strdup = no; then
+ AC_LIBOBJ([strdup])
+ gl_PREREQ_STRDUP
+fi
gl_STRING_MODULE_INDICATOR([strdup])
Makefile.am:
configure.ac:
gl_FUNC_STRDUP_POSIX
+if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
+ AC_LIBOBJ([strdup])
+ gl_PREREQ_STRDUP
+fi
gl_STRING_MODULE_INDICATOR([strdup])
Makefile.am: