>>>>> "lars" == lars brinkhoff <[EMAIL PROTECTED]> writes:

lars> To check for e.g. uint16_t, I could do AC_CHECK_TYPE(uint16_t,
lars> unsigned short) , but this seems sub-optimal considering that
lars> 'unsigned short' isn't necessarily 16 bits wide.

lars> Is there a better macro for this?

Well, you did not check, you REPLACEd uint16_t.  You can actually
AC_CHECK_TYPES((uint16_t)), which will define HAVE_UINT16_T or not,
then you can use AC_CHECK_SIZEOF to look for the replacement you need:

#if! HAVE_UINT16_T
# if  SIZEOF_UNSIGNED == 16
typedef unsigned uint16_t;
# elsi SIZEOF_UNSIGNED_SHORT == 16
typedef unsigned short uint16_t;
# else
etc. etc.

(I'm not sure I answered the right question ;)

Akim

Reply via email to