Akim Demaille writes:

> Here is my interpretation of your work.

That looks very nice, but there is one problem I see: When
cross-compiling, AC_CHECK_SIZEOF with a non-existant type seemingly runs
forever. Perhaps it should check the existance of the type first.

Also, what I'd find useful is a way to check type alignment requirements,
like this:

AC_DEFUN([AC_CHECK_ALIGNOF],
[AC_VAR_PUSHDEF([ac_Alignof], [ac_cv_alignof_$1])dnl
AC_CACHE_CHECK([alignment of $1], ac_Alignof,
[_AC_COMPUTE_INT([((char*) &c.b) - ((char*) &c.a)], ac_Alignof,
[AC_INCLUDES_DEFAULT([$3])
struct { char a; $1 b; } c;])])
dnl Significant cheating above -- is there a better way?
AC_DEFINE_UNQUOTED(AC_TR_CPP(alignof_$1),
                   AC_VAR_GET(ac_Alignof),
                   [The minimum required alignment of a `]$1['.])
AC_VAR_POPDEF([ac_Alignof])dnl
])

Any interest?


-- 
Peter Eisentraut                  Sernanders väg 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Reply via email to