changeset 15156:051c5c1aba59

wcspbrk: Move AC_LIBOBJ invocations to module description. * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from here... * modules/wcspbrk (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 18:31:48 +0200
parents 0bd070120f1c
children 6105cf25da6c
files ChangeLog m4/wcspbrk.m4 modules/wcspbrk
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wcspbrk: Move AC_LIBOBJ invocations to module description.
+	* m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
+	here...
+	* modules/wcspbrk (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcsnrtombs: Move AC_LIBOBJ invocations to module description.
--- a/m4/wcspbrk.m4
+++ b/m4/wcspbrk.m4
@@ -1,4 +1,4 @@
-# wcspbrk.m4 serial 1
+# wcspbrk.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@
   AC_CHECK_FUNCS_ONCE([wcspbrk])
   if test $ac_cv_func_wcspbrk = no; then
     HAVE_WCSPBRK=0
-    AC_LIBOBJ([wcspbrk])
   fi
 ])
--- a/modules/wcspbrk
+++ b/modules/wcspbrk
@@ -18,6 +18,9 @@
 
 configure.ac:
 gl_FUNC_WCSPBRK
+if test $HAVE_WCSPBRK = 0; then
+  AC_LIBOBJ([wcspbrk])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcspbrk])
 
 Makefile.am: