From 26dab349c2da7df56ae5e165163d0211277c4676 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 29 May 2020 13:20:46 +0200 Subject: [PATCH] wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test. * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test program. * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise. * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise. * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise. * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise. --- ChangeLog | 10 ++++++++++ m4/wmemchr.m4 | 4 ++-- m4/wmemcmp.m4 | 4 ++-- m4/wmemcpy.m4 | 4 ++-- m4/wmemmove.m4 | 4 ++-- m4/wmemset.m4 | 4 ++-- 6 files changed, 20 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c6641c2cd..566dfabbc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2020-05-29 Bruno Haible + + wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test. + * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test + program. + * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise. + * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise. + * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise. + * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise. + 2020-05-29 Bruno Haible Fix compilation error on native Windows (regression from 2020-05-28). diff --git a/m4/wmemchr.m4 b/m4/wmemchr.m4 index b8bbf07c8b..62bd89ca54 100644 --- a/m4/wmemchr.m4 +++ b/m4/wmemchr.m4 @@ -1,4 +1,4 @@ -# wmemchr.m4 serial 3 +# wmemchr.m4 serial 4 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMCHR], dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files dnl provide this function as an inline function definition. AC_CACHE_CHECK([for wmemchr], [gl_cv_func_wmemchr], - [AC_COMPILE_IFELSE( + [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . diff --git a/m4/wmemcmp.m4 b/m4/wmemcmp.m4 index 4584d1f1f7..701e73fe20 100644 --- a/m4/wmemcmp.m4 +++ b/m4/wmemcmp.m4 @@ -1,4 +1,4 @@ -# wmemcmp.m4 serial 3 +# wmemcmp.m4 serial 4 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMCMP], dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files dnl provide this function as an inline function definition. AC_CACHE_CHECK([for wmemcmp], [gl_cv_func_wmemcmp], - [AC_COMPILE_IFELSE( + [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . diff --git a/m4/wmemcpy.m4 b/m4/wmemcpy.m4 index 3309248b5c..c9d749d689 100644 --- a/m4/wmemcpy.m4 +++ b/m4/wmemcpy.m4 @@ -1,4 +1,4 @@ -# wmemcpy.m4 serial 3 +# wmemcpy.m4 serial 4 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMCPY], dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files dnl provide this function as an inline function definition. AC_CACHE_CHECK([for wmemcpy], [gl_cv_func_wmemcpy], - [AC_COMPILE_IFELSE( + [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . diff --git a/m4/wmemmove.m4 b/m4/wmemmove.m4 index 61598e4e77..adbc12d779 100644 --- a/m4/wmemmove.m4 +++ b/m4/wmemmove.m4 @@ -1,4 +1,4 @@ -# wmemmove.m4 serial 3 +# wmemmove.m4 serial 4 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMMOVE], dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files dnl provide this function as an inline function definition. AC_CACHE_CHECK([for wmemmove], [gl_cv_func_wmemmove], - [AC_COMPILE_IFELSE( + [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . diff --git a/m4/wmemset.m4 b/m4/wmemset.m4 index e6aa3fb889..0148ea301a 100644 --- a/m4/wmemset.m4 +++ b/m4/wmemset.m4 @@ -1,4 +1,4 @@ -# wmemset.m4 serial 3 +# wmemset.m4 serial 4 dnl Copyright (C) 2011-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMSET], dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files dnl provide this function as an inline function definition. AC_CACHE_CHECK([for wmemset], [gl_cv_func_wmemset], - [AC_COMPILE_IFELSE( + [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . -- 2.39.5