1# strdup.m4 serial 9 2 3dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software 4dnl Foundation, Inc. 5 6dnl This file is free software; the Free Software Foundation 7dnl gives unlimited permission to copy and/or distribute it, 8dnl with or without modifications, as long as this notice is preserved. 9 10AC_DEFUN([gl_FUNC_STRDUP], 11[ 12 AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 13 AC_REPLACE_FUNCS(strdup) 14 AC_CHECK_DECLS_ONCE(strdup) 15 if test $ac_cv_have_decl_strdup = no; then 16 HAVE_DECL_STRDUP=0 17 fi 18 gl_PREREQ_STRDUP 19]) 20 21# Prerequisites of lib/strdup.c. 22AC_DEFUN([gl_PREREQ_STRDUP], [:]) 23