strstr*: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:55:15 +0000 (13:55 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:53 +0000 (00:06 +0200)
* m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
invocations from here...
* modules/strstr-simple (configure.ac): ... to here.
* modules/strstr (configure.ac): ... and here.

ChangeLog
m4/strstr.m4
modules/strstr
modules/strstr-simple

index b2b677a66c1719100c5ebf40c3ec0d87e5f7375a..1081c94a5f41e489efa7e8f14686f653b7f33ae2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strstr*: Move AC_LIBOBJ invocations to module description.
+       * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
+       invocations from here...
+       * modules/strstr-simple (configure.ac): ... to here.
+       * modules/strstr (configure.ac): ... and here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strsignal: Move AC_LIBOBJ invocations to module description.
index a42a1db984ba73db3e2b2e6e9aa78c923e0af305..010bd7ffe5c370891fd6d6fd1a8b31d9c6985ac2 100644 (file)
@@ -1,4 +1,4 @@
-# strstr.m4 serial 13
+# strstr.m4 serial 14
 dnl Copyright (C) 2008-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,
@@ -11,7 +11,6 @@ AC_DEFUN([gl_FUNC_STRSTR_SIMPLE],
   AC_REQUIRE([gl_FUNC_MEMCHR])
   if test "$gl_cv_func_memchr_works" != yes; then
     REPLACE_STRSTR=1
-    AC_LIBOBJ([strstr])
   else
     dnl Detect http://sourceware.org/bugzilla/show_bug.cgi?id=12092.
     AC_CACHE_CHECK([whether strstr works],
@@ -53,7 +52,6 @@ AC_DEFUN([gl_FUNC_STRSTR_SIMPLE],
       ])
     if test "$gl_cv_func_strstr_works_always" != yes; then
       REPLACE_STRSTR=1
-      AC_LIBOBJ([strstr])
     fi
   fi
 ]) # gl_FUNC_STRSTR_SIMPLE
@@ -121,7 +119,4 @@ static void quit (int sig) { exit (sig + 128); }
       REPLACE_STRSTR=1
     fi
   fi
-  if test $REPLACE_STRSTR = 1; then
-    AC_LIBOBJ([strstr])
-  fi
 ]) # gl_FUNC_STRSTR
index dc33bd2952206aee1ba9420a690cece40f6a336a..49367614dfe6f2b63a27253d711b3b005fd78bbf 100644 (file)
@@ -8,6 +8,9 @@ strstr-simple
 
 configure.ac:
 gl_FUNC_STRSTR
+if test $REPLACE_STRSTR = 1; then
+  AC_LIBOBJ([strstr])
+fi
 
 Makefile.am:
 
index 5f66b279c2893b9966a90e17183d8f0ce8e13583..c61afc45adff69a15b4e6916bfb2c26b2e2e52c6 100644 (file)
@@ -14,6 +14,9 @@ memcmp          [test $REPLACE_STRSTR = 1]
 
 configure.ac:
 gl_FUNC_STRSTR_SIMPLE
+if test $REPLACE_STRSTR = 1; then
+  AC_LIBOBJ([strstr])
+fi
 gl_STRING_MODULE_INDICATOR([strstr])
 
 Makefile.am: