[kaffe] Question configure.in: Check for [u]int{8,16,32,64} and bool.
Gerrit P. Haase
gp@familiehaase.de
Mon Jun 30 16:34:01 2003
Hallo kaffe,
How does this work? The variables used in the configure.in fragment
below are never used elsewhere in configure.in, so why are they
included?
dnl =========================================================================
dnl Check for [u]int{8,16,32,64} and bool.
dnl -------------------------------------------------------------------------
if test x"$ac_cv_typedef_int8" = x"yes"; then
AC_DEFINE(HAVE_INT8, 1, [Do we have int8])
fi
if test x"$ac_cv_typedef_uint8" = x"yes"; then
AC_DEFINE(HAVE_UINT8, 1, [Do we have uint8])
fi
if test x"$ac_cv_typedef_int16" = x"yes"; then
AC_DEFINE(HAVE_INT16, 1, [Do we have int16])
fi
if test x"$ac_cv_typedef_uint16" = x"yes"; then
AC_DEFINE(HAVE_UINT16, 1, [Do we have uint16])
fi
if test x"$ac_cv_typedef_int32" = x"yes"; then
AC_DEFINE(HAVE_INT32, 1, [Do we have int32])
fi
if test x"$ac_cv_typedef_uint32" = x"yes"; then
AC_DEFINE(HAVE_UINT32, 1, [Do we have uint32])
fi
if test x"$ac_cv_typedef_int64" = x"yes"; then
AC_DEFINE(HAVE_INT64, 1, [Do we have int64])
fi
if test x"$ac_cv_typedef_uint64" = x"yes"; then
AC_DEFINE(HAVE_UINT64, 1, [Do we have uint64])
fi
if test x"$ac_cv_typedef_bool" = x"yes"; then
AC_DEFINE(HAVE_BOOL, 1, [Do we have bool])
fi
Wouldn't this work also (at least with a recent version
of autoconf rt.al.)?
dnl =========================================================================
dnl Check for [u]int{8,16,32,64} and bool.
dnl -------------------------------------------------------------------------
AC_CHECK_TYPES([int8,uint8,int16,uint16,int32,uint32,int64,unit64])
AC_HEADER_STDBOOL
Gerrit
--
=^..^=