+2024-05-30 Collin Funk <collin.funk1@gmail.com>
+
+ endian: Quote variables that may be undefined (regr. 2024-05-18).
+ * m4/endian_h.m4 (gl_ENDIAN_H): Quote variables that are undefined on
+ some systems or may be defined by the user.
+
2024-05-30 Bruno Haible <bruno@clisp.org>
call_once: Work around Cygwin 3.5.3 bug.
# endian_h.m4
-# serial 2
+# serial 3
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,
AC_CHECK_HEADERS_ONCE([endian.h])
gl_CHECK_NEXT_HEADERS([endian.h])
- if test $ac_cv_header_endian_h = yes; then
+ if test "$ac_cv_header_endian_h" = yes; then
HAVE_ENDIAN_H=1
dnl Check if endian.h defines uint16_t, uint32_t, and uint64_t.
AC_CACHE_CHECK([if endian.h defines stdint types],
fi
dnl Check if endian.h should be generated.
- if test $gl_cv_header_endian_h_stdint_types = yes \
- && test $gl_cv_header_working_endian_h = yes; then
+ if test "$gl_cv_header_endian_h_stdint_types" = yes \
+ && test "$gl_cv_header_working_endian_h" = yes; then
GL_GENERATE_ENDIAN_H=false
else
GL_GENERATE_ENDIAN_H=true
fi
dnl Check if endian.h works but is missing types from stdint.h.
- if test $GL_GENERATE_ENDIAN_H; then
- if test $gl_cv_header_working_endian_h = yes; then
+ if test "$GL_GENERATE_ENDIAN_H"; then
+ if test "$gl_cv_header_working_endian_h" = yes; then
ENDIAN_H_JUST_MISSING_STDINT=1
else
ENDIAN_H_JUST_MISSING_STDINT=0