# HG changeset patch # User Bruno Haible # Date 1306065315 -7200 # Node ID d1397c651af7654e634368cd96e2326e70bac1cd # Parent 1dc188c0c5c5995b3cc962d0901c0017b98d4306 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible + + 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 strsignal: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strstr.m4 b/m4/strstr.m4 --- a/m4/strstr.m4 +++ b/m4/strstr.m4 @@ -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_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 @@ ]) 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 @@ REPLACE_STRSTR=1 fi fi - if test $REPLACE_STRSTR = 1; then - AC_LIBOBJ([strstr]) - fi ]) # gl_FUNC_STRSTR diff --git a/modules/strstr b/modules/strstr --- a/modules/strstr +++ b/modules/strstr @@ -8,6 +8,9 @@ configure.ac: gl_FUNC_STRSTR +if test $REPLACE_STRSTR = 1; then + AC_LIBOBJ([strstr]) +fi Makefile.am: diff --git a/modules/strstr-simple b/modules/strstr-simple --- a/modules/strstr-simple +++ b/modules/strstr-simple @@ -14,6 +14,9 @@ configure.ac: gl_FUNC_STRSTR_SIMPLE +if test $REPLACE_STRSTR = 1; then + AC_LIBOBJ([strstr]) +fi gl_STRING_MODULE_INDICATOR([strstr]) Makefile.am: