From 911dbd1376c17b82bbe722fcf071841b7a86ce79 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 25 Feb 2004 19:39:07 +0000 Subject: [PATCH] Improved strdup, from Simon Josefsson. --- m4/ChangeLog | 4 ++++ m4/strdup.m4 | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 86a62e5761..2013cf5498 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2004-01-18 Simon Josefsson + + * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared. + 2004-02-18 Bruno Haible * xsize.m4 (gl_XSIZE): Require AC_C_INLINE. diff --git a/m4/strdup.m4 b/m4/strdup.m4 index effeb60eac..6e64bc80fc 100644 --- a/m4/strdup.m4 +++ b/m4/strdup.m4 @@ -1,5 +1,5 @@ -# strdup.m4 serial 2 -dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. +# strdup.m4 serial 3 +dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -14,8 +14,7 @@ AC_DEFUN([gl_FUNC_STRDUP], fi ]) -# Prerequisites of lib/strdup.c. +# Prerequisites of lib/strdup.h and lib/strdup.c. AC_DEFUN([gl_PREREQ_STRDUP], [ - : + AC_CHECK_DECLS(strdup) ]) - -- 2.30.2