From: Bruno Haible Date: Wed, 25 Feb 2004 19:39:07 +0000 (+0000) Subject: Improved strdup, from Simon Josefsson. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911dbd1376c17b82bbe722fcf071841b7a86ce79;p=pspp Improved strdup, from Simon Josefsson. --- 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) ]) -