Re: AC_TYPE_UINT8_T and co

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick Welche <prlw1@xxxxxxxxxxxxxx> writes:

>  -- Macro: AC_TYPE_UINT8_T
>      If `stdint.h' or `inttypes.h' defines the type `uint8_t', define
>      `HAVE_UINT8_T'.  Otherwise, define `uint8_t' to an unsigned
>      integer type that is exactly 8 bits wide, if such a type exists.
>
> but for some reason HAVE_UINT8_T is not defined! (Today's CVS)

The simplest fix is to change the documentation to match the current
behavior, so I installed the following.  If there's a good reason to
change the behavior instead, please let us know.  Traditions seem to
vary in this area in Autoconf.  Among Autoconf-using programs, I
suspect gnulib's stdint module makes this macro obsolescent anyway, so
I'd rather not futz with it if I can avoid it.

2007-05-28  Paul Eggert  <eggert@xxxxxxxxxxx>

	* doc/autoconf.texi (Particular Types): AC_TYPE_INT8_T does not
	define HAVE_INT8_T, and likewise for similar macros.
	Problem reported by Patrick Welche in
	<http://lists.gnu.org/archive/html/autoconf/2007-05/msg00062.html>.

--- doc/autoconf.texi	21 May 2007 22:42:12 -0000	1.1157
+++ doc/autoconf.texi	29 May 2007 05:36:24 -0000
@@ -5907,8 +5907,8 @@ is the base type of the array argument t
 @acindex{TYPE_INT8_T}
 @cvindex HAVE_INT8_T
 @cvindex int8_t
-If @file{stdint.h} or @file{inttypes.h} defines the type @code{int8_t},
-define @code{HAVE_INT8_T}.  Otherwise, define @code{int8_t} to a signed
+If @file{stdint.h} or @file{inttypes.h} does not define the type
+@code{int8_t}, define @code{int8_t} to a signed
 integer type that is exactly 8 bits wide and that uses two's complement
 representation, if such a type exists.
 @end defmac
@@ -6056,8 +6056,8 @@ headers do not define them.
 @acindex{TYPE_UINT8_T}
 @cvindex HAVE_UINT8_T
 @cvindex uint8_t
-If @file{stdint.h} or @file{inttypes.h} defines the type @code{uint8_t},
-define @code{HAVE_UINT8_T}.  Otherwise, define @code{uint8_t} to an
+If @file{stdint.h} or @file{inttypes.h} does not define the type
+@code{uint8_t}, define @code{uint8_t} to an
 unsigned integer type that is exactly 8 bits wide, if such a type
 exists.
 @end defmac


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux