Improved strdup, from Simon Josefsson.
authorBruno Haible <bruno@clisp.org>
Wed, 25 Feb 2004 19:39:07 +0000 (19:39 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Feb 2004 19:39:07 +0000 (19:39 +0000)
m4/ChangeLog
m4/strdup.m4

index 86a62e57613c5962096a71b52277fc5c1885d3a0..2013cf549855d71bb8d71c979b81f918f2c277f0 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-18  Simon Josefsson  <jas@extundo.com>
+
+       * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
+
 2004-02-18  Bruno Haible  <bruno@clisp.org>
 
        * xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
index effeb60eacb254c76f0f8a6ce87b55750ff32d22..6e64bc80fc3d1d6c7045b44c3f0ee2a454408e13 100644 (file)
@@ -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)
 ])
-