strsep: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:44:17 +0000 (13:44 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:52 +0000 (00:06 +0200)
* m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
here...
* modules/strsep (configure.ac): ... to here.

ChangeLog
m4/strsep.m4
modules/strsep

index f51c132..aa32356 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       strsep: Move AC_LIBOBJ invocations to module description.
+       * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
+       here...
+       * modules/strsep (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        strptime: Move AC_LIBOBJ invocations to module description.
        * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
        gl_PREREQ_STRPTIME invocations from here...
index 4ea187c..24e229d 100644 (file)
@@ -1,4 +1,4 @@
-# strsep.m4 serial 9
+# strsep.m4 serial 10
 dnl Copyright (C) 2002-2004, 2007, 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,
@@ -13,10 +13,9 @@ AC_DEFUN([gl_FUNC_STRSEP],
   AC_REQUIRE([AC_C_RESTRICT])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
-  AC_REPLACE_FUNCS([strsep])
+  AC_CHECK_FUNCS([strsep])
   if test $ac_cv_func_strsep = no; then
     HAVE_STRSEP=0
-    gl_PREREQ_STRSEP
   fi
 ])
 
index eaa3032..825cd19 100644 (file)
@@ -12,6 +12,10 @@ strpbrk         [test $HAVE_STRSEP = 0]
 
 configure.ac:
 gl_FUNC_STRSEP
+if test $HAVE_STRSEP = 0; then
+  AC_LIBOBJ([strsep])
+  gl_PREREQ_STRSEP
+fi
 gl_STRING_MODULE_INDICATOR([strsep])
 
 Makefile.am: