From: Bruno Haible Date: Sun, 22 May 2011 11:39:57 +0000 (+0200) Subject: strpbrk: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0acc7f3173aa8783fcaf705df58e13326cf25539;p=pspp strpbrk: Move AC_LIBOBJ invocations to module description. * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from here... * modules/strpbrk (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index d2bf73df09..5ab6346b76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-22 Bruno Haible + + strpbrk: Move AC_LIBOBJ invocations to module description. + * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from + here... + * modules/strpbrk (configure.ac): ... to here. + 2011-05-22 Bruno Haible strnlen: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strpbrk.m4 b/m4/strpbrk.m4 index 2d2f04126d..40537ca887 100644 --- a/m4/strpbrk.m4 +++ b/m4/strpbrk.m4 @@ -1,4 +1,4 @@ -# strpbrk.m4 serial 5 +# strpbrk.m4 serial 6 dnl Copyright (C) 2002-2003, 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, @@ -7,10 +7,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRPBRK], [ AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS([strpbrk]) + AC_CHECK_FUNCS([strpbrk]) if test $ac_cv_func_strpbrk = no; then HAVE_STRPBRK=0 - gl_PREREQ_STRPBRK fi ]) diff --git a/modules/strpbrk b/modules/strpbrk index f0f1a858a9..3433e57cbd 100644 --- a/modules/strpbrk +++ b/modules/strpbrk @@ -16,6 +16,10 @@ string configure.ac: gl_FUNC_STRPBRK +if test $HAVE_STRPBRK = 0; then + AC_LIBOBJ([strpbrk]) + gl_PREREQ_STRPBRK +fi gl_STRING_MODULE_INDICATOR([strpbrk]) Makefile.am: