put alignment detection in configure.ac
authorBradley Bell <btb@icculus.org>
Tue, 18 Feb 2003 19:55:51 +0000 (19:55 +0000)
committerBradley Bell <btb@icculus.org>
Tue, 18 Feb 2003 19:55:51 +0000 (19:55 +0000)
configure.ac
include/pstypes.h

index a56c2d3..18eaa3f 100644 (file)
@@ -37,6 +37,12 @@ AC_STDC_HEADERS
 AC_PATH_PROGS(NASM, nasm nasmw, no)
 AC_C_BIGENDIAN
 
+case $host_cpu in
+       sparc)
+               AC_DEFINE(WORDS_NEED_ALIGNMENT,,[Define if your processor needs data to be word-aligned])
+       ;;
+esac
+
 case $host_os in
     cygwin)
         AC_MSG_WARN([Cygwin found, setting -mno-cygwin])
index d742998..3afe109 100644 (file)
@@ -83,10 +83,5 @@ typedef ubyte bool;
 # define __pack__
 #endif
 
-#if defined(__sparc__) || defined(sparc)
-// this should be done by the configure script...
-#define WORDS_NEED_ALIGNMENT
-#endif
-
 #endif //_TYPES_H