]> Savannah Git Hosting - gnulib.git/commitdiff
limits-h, stdint: Don't assume extensions, fix typo
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2016 17:47:57 +0000 (10:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2016 17:52:49 +0000 (10:52 -0700)
* m4/limits-h.m4 (gl_LIMITS_H):
* m4/stdint.m4 (gl_STDINT_H):
Don't assume AC_USE_SYSTEM_EXTENSIONS.
* m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
reported by Jim Meyering in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html

ChangeLog
m4/limits-h.m4
m4/stdint.m4

index 417de6ab77d226d522400816bbc306a61d3f012c..61ac98179d55d5de8c5d347c06310dcc6f5ead13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       limits-h, stdint: Don't assume extensions, fix typo
+       * m4/limits-h.m4 (gl_LIMITS_H):
+       * m4/stdint.m4 (gl_STDINT_H):
+       Don't assume AC_USE_SYSTEM_EXTENSIONS.
+       * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
+       reported by Jim Meyering in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
+
 2016-09-21  Jim Meyering  <meyering@fb.com>
 
        getprogname: port to AIX
index 913078689ba18b23bd4f180c42b129af65f8ebd8..31fdf0a779e3f559977a6e8146379186f438875d 100644 (file)
@@ -14,7 +14,9 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
   AC_CACHE_CHECK([whether limits.h has ULLONG_WIDTH etc.],
     [gl_cv_header_limits_width],
     [AC_COMPILE_IFELSE(
-       [AC_LANG_PROGRAM([[#define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+       [AC_LANG_PROGRAM([[#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
+                           #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+                          #endif
                           #include <limits.h>
                           int ullw = ULLONG_WIDTH;]])],
        [gl_cv_header_limits_width=yes],
index 52f7814ef84f996df1dfb72e64591f3c4d8820f7..7328096a45d71f21607262c282139848c6825562 100644 (file)
@@ -1,4 +1,4 @@
-# stdint.m4 serial 45
+# stdint.m4 serial 46
 dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -321,6 +321,9 @@ int32_t i32 = INT32_C (0x7fffffff);
          [AC_LANG_PROGRAM([[
             /* Work if build is not clean.  */
             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
+            #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
+             #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
+            #endif
             #include <stdint.h>
             ]gl_STDINT_INCLUDES[
             int iw = UINTMAX_WIDTH;
@@ -343,7 +346,7 @@ int32_t i32 = INT32_C (0x7fffffff);
   fi
 
   # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
-  test -z "$STDINT_H" || LIMITS_H=limits.h
+  LIMITS_H=limits.h
 
   AC_SUBST([HAVE_C99_STDINT_H])
   AC_SUBST([HAVE_SYS_BITYPES_H])