+2008-03-22 guidod <guidod@pc3>
+
+ * zzip/fetch.h: honor ZZIP_HAVE_ALIGNED_ACCESS_REQUIRED for the Linux bswap
+ optimization. See also 443880@bugs.debian "SIGBUS on Sparc".
+
2008-03-03 guidod <guidod@pc3>
* TODO: update to recent problems. Need to check my mail stack next time.
AC_INIT(zziplib.spec)
AC_PREREQ(2.49)
AC_COPYRIGHT([Guido Draheim <guido@gmx.de> for ZZipLib.SF.net])
-AC_REVISION($Revision: 1.9 $)
+AC_REVISION($Revision: 1.10 $)
AC_CONFIG_AUX_DIR(uses)
# =======================================================================
AC_CANONICAL_SYSTEM
AX_ENABLE_BUILDDIR_UNAME
AC_SET_DEFAULT_PATHS_SYSTEM
# -----------------------------------------------------------------------
-AC_ARG_ENABLE(thread-safe,AC_HELP_STRING(
- [--disable-thread-safe],[disable thread-safe libtool option])
+AC_ARG_ENABLE([thread-safe],
+AC_HELP_STRING([--disable-thread-safe],[disable thread-safe libtool option])
,,[ enable_thread_safe="yes"])
THREAD_SAFE=""
test "$enable_thread_safe" = "yes" && THREAD_SAFE="-thread-safe"
#ifdef ZZIP_WORDS_BIGENDIAN
# if defined bswap_16 && defined bswap_32 && defined bswap_64 /* i.e. linux */
+# ifndef ZZIP_HAVE_ALIGNED_ACCESS_REQUIRED
+# define _ZZIP_USE_BSWAP
+# endif
+# endif
+# ifdef _ZZIP_USE_BSWAP
# define ZZIP_GET16(__p) bswap_16(*(uint16_t*)(__p))
# define ZZIP_GET32(__p) bswap_32(*(uint32_t*)(__p))
# define ZZIP_GET64(__p) bswap_64(*(uint64_t*)(__p))
/*forward*/
-zzip__new__ static ZZIP_MEM_ENTRY *zzip_mem_entry_new(ZZIP_DISK * disk,
- ZZIP_DISK_ENTRY * entry);
-zzip__new__ static void zzip_mem_entry_free(ZZIP_MEM_ENTRY *
- _zzip_restrict item);
+static zzip__new__ ZZIP_MEM_ENTRY *
+zzip_mem_entry_new(ZZIP_DISK * disk, ZZIP_DISK_ENTRY * entry);
+static void
+zzip_mem_entry_free(ZZIP_MEM_ENTRY * _zzip_restrict item);
zzip__new__ ZZIP_MEM_DISK *
zzip_mem_disk_new(void)