From 60c66889b9d70a1d4b482f4ffe0f521ad96179ee Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 30 Jul 2010 21:28:10 +0200 Subject: [PATCH] strndup: Update regarding AIX. --- ChangeLog | 7 +++++++ m4/strndup.m4 | 14 +++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d74b0fd6c..9a11b2795 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-07-30 Bruno Haible + strndup: Update regarding AIX. + * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on + AIX 7. + Reported by Rainer Tammer. + +2010-07-30 Bruno Haible + stat: Update regarding AIX. * doc/posix-functions/stat.texi: Mention bug on AIX 7.1. * m4/stat.m4 (gl_FUNC_STAT): Update comment. diff --git a/m4/strndup.m4 b/m4/strndup.m4 index 810313cd1..b3567d898 100644 --- a/m4/strndup.m4 +++ b/m4/strndup.m4 @@ -1,4 +1,4 @@ -# strndup.m4 serial 17 +# strndup.m4 serial 18 dnl Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -33,10 +33,14 @@ AC_DEFUN([gl_FUNC_STRNDUP], return s[13] != '\0';]])], [gl_cv_func_strndup_works=yes], [gl_cv_func_strndup_works=no], - [case $host_os in - aix*) gl_cv_func_strndup_works="guessing no";; - *) gl_cv_func_strndup_works="guessing yes";; - esac])]) + [ +changequote(,)dnl + case $host_os in + aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; + *) gl_cv_func_strndup_works="guessing yes";; + esac +changequote([,])dnl + ])]) case $gl_cv_func_strndup_works in *no) REPLACE_STRNDUP=1 -- 2.11.0