diff modules/strdup @ 15104:037e4c930d72

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.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 13:16:19 +0200
parents b25692ed074a
children 1def4f23c989
line wrap: on
line diff
--- a/modules/strdup
+++ b/modules/strdup
@@ -16,6 +16,10 @@
 
 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: