autoconf
[Top][All Lists]
Advanced

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

AC_TYPE_UINT8_T and co


From: Patrick Welche
Subject: AC_TYPE_UINT8_T and co
Date: Mon, 28 May 2007 17:45:46 +0100
User-agent: Mutt/1.5.14 (2007-03-22)

 -- 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)

% cat configure.ac
AC_INIT([autotype],[1.0])
AC_CONFIG_HEADERS([config.h])
AC_TYPE_UINT8_T
AC_OUTPUT
% autoreconf
% ./configure
...
checking for uint8_t... yes
...
config.status: creating config.h
% grep UINT config.h
/* #undef _UINT8_T */

The attached patch fixes this..
(Also removes what appear to be spurious #(  )


Also, AC_TYPE_SIZE_T does not claim to define HAVE_SIZE_T, (as it
uses _AC_CHECK_TYPE_OLD) - would defining HAVE_SIZE_T be considered
an improvement?


Cheers,

Patrick

Attachment: autotype.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]