]> Savannah Git Hosting - gnulib.git/commitdiff
endian: Fix link error on CentOS 5.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Dec 2024 17:39:24 +0000 (18:39 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 31 Dec 2024 09:41:43 +0000 (10:41 +0100)
* m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not
AC_COMPILE_IFELSE.

ChangeLog
m4/endian_h.m4

index af2a4bf6d38c1e77c98c3d06ed292d0266a6114a..50b46a32d07ff18e5e21f043522d141c7ed17cf3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-28  Bruno Haible  <bruno@clisp.org>
+
+       endian: Fix link error on CentOS 5.
+       * m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not
+       AC_COMPILE_IFELSE.
+
 2024-12-28  Bruno Haible  <bruno@clisp.org>
 
        assert-h, verify: Make static_assert work in C++ mode on FreeBSD 11.
index 834fb0803164f99e87f8e3b2ee21ea7b0809f64b..a340b2f25410e1e5046f691765126cd0e3dde0a4 100644 (file)
@@ -1,5 +1,5 @@
 # endian_h.m4
-# serial 5
+# serial 6
 dnl Copyright 2024 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,7 +33,7 @@ AC_DEFUN_ONCE([gl_ENDIAN_H],
     AC_CACHE_CHECK([if endian.h defines functions and macros],
       [gl_cv_header_working_endian_h],
       [gl_cv_header_working_endian_h=no
-       AC_COMPILE_IFELSE(
+       AC_LINK_IFELSE(
          [AC_LANG_PROGRAM(
 [[
 #include <endian.h>
@@ -102,7 +102,7 @@ return !(value16_1 + value32_1 + value64_1
     AC_CACHE_CHECK([if sys/endian.h defines functions and macros],
       [gl_cv_header_working_sys_endian_h],
       [gl_cv_header_working_sys_endian_h=no
-       AC_COMPILE_IFELSE(
+       AC_LINK_IFELSE(
          [AC_LANG_PROGRAM(
 [[
 #include <sys/endian.h>