dnl 3: extra sizes to test
dnl ("adapted" from openldap)
dnl
-AC_DEFUN(GRAS_DO_CHECK_SIZEOF,
+AC_DEFUN([GRAS_DO_CHECK_SIZEOF],
[changequote(<<, >>)dnl
dnl The cache variable name (and of the result).
define(<<GRAS_CHECK_SIZEOF_RES>>, translit(ac_cv_sizeof_$1, [ *()], [_pLR]))dnl
dnl 3: extra sizes to test
dnl ("adapted" from openldap)
dnl
-AC_DEFUN(GRAS_CHECK_SIZEOF,
+AC_DEFUN([GRAS_CHECK_SIZEOF],
[AC_MSG_CHECKING(size of $1)
GRAS_DO_CHECK_SIZEOF($1,$2)
if test x$GRAS_CHECK_SIZEOF_RES = x ; then
dnl GRAS_SIGNED_SIZEOF: Get the size of the datatype, and make sure that
dnl signed, unsigned and unspecified have the same size
dnl
-AC_DEFUN(GRAS_SIGNED_SIZEOF,
+AC_DEFUN([GRAS_SIGNED_SIZEOF],
[AC_MSG_CHECKING(size of $1)
GRAS_DO_CHECK_SIZEOF($1,$2)
unspecif=$GRAS_CHECK_SIZEOF_RES
dnl CHECK_IEEE_FP: determines if floating points are IEEE754 compliant
dnl (inspired from NWS code)
dnl
-AC_DEFUN(CHECK_IEEE_FP,
+AC_DEFUN([CHECK_IEEE_FP],
[AC_MSG_CHECKING(if floating point datatypes are IEEE 754 compliant)
AC_TRY_COMPILE([#include "confdefs.h"
union {
dnl *************************8
dnl
-AC_DEFUN(GRAS_ARCH,
+AC_DEFUN([GRAS_ARCH],
[
# Check for the architecture
AC_C_BIGENDIAN(endian=1,endian=0,AC_MSG_ERROR([GRAS works only for little or big endian systems (yet)]))
AC_DEFINE_UNQUOTED(GRAS_BIGENDIAN,$endian,[define if big endian])
-
-GRAS_SIGNED_SIZEOF(char)
-GRAS_SIGNED_SIZEOF(short int)
-GRAS_SIGNED_SIZEOF(int)
-GRAS_SIGNED_SIZEOF(long int)
-GRAS_SIGNED_SIZEOF(long long int)
+
+dnl FIXME: Use SIGNED instead of CHECK to make sure signed and unsigned type
+dnl have same size
+GRAS_CHECK_SIZEOF(char)
+GRAS_CHECK_SIZEOF(short int)
+GRAS_CHECK_SIZEOF(int)
+GRAS_CHECK_SIZEOF(long int)
+GRAS_CHECK_SIZEOF(long long int)
GRAS_CHECK_SIZEOF(void *)
trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
case $trace in
l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
+ B:1.2.4.4.8:4.4:4.8) gras_arch=1; gras_arch_name=powerpc;;
+ B:1.2.4.8.8:8.8:4.8) gras_arch=2; gras_arch_name=sparc;;
esac
if test x$gras_arch = xunknown ; then
AC_MSG_RESULT([damnit ($trace)])