+2005-07-21 [darko] 1.9.12cvs89
+
+ * configure.ac
+ link against libresolv if necessary (patch by Paul)
+ * src/msgcache.c
+ use glib's portable macros to determine endianness
+
2005-07-21 [paul] 1.9.12cvs88
* src/crash.c
( cvs diff -u -r 1.395.2.96 -r 1.395.2.97 src/summaryview.c; ) > 1.9.12cvs86.patchset
( cvs diff -u -r 1.213.2.41 -r 1.213.2.42 src/folder.c; cvs diff -u -r 1.96.2.64 -r 1.96.2.65 src/textview.c; cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/plugins/clamav/clamav_plugin.c; cvs diff -u -r 1.18.2.7 -r 1.18.2.8 src/plugins/spamassassin/spamassassin.c; ) > 1.9.12cvs87.patchset
( cvs diff -u -r 1.23.2.10 -r 1.23.2.11 src/crash.c; cvs diff -u -r 1.4.2.13 -r 1.4.2.14 src/gtk/about.c; ) > 1.9.12cvs88.patchset
+( cvs diff -u -r 1.1.2.24 -r 1.1.2.25 commitHelper; cvs diff -u -r 1.654.2.723 -r 1.654.2.724 configure.ac; cvs diff -u -r 1.16.2.22 -r 1.16.2.23 src/msgcache.c; ) > 1.9.12cvs89.patchset
if [ "$name" == "dinh" ]; then
name="hoa";
fi;
-if [ "$name" == "f" ]; then
+if [ "$name" == "f" -o "$name" == "darkok" ]; then
name="darko";
fi;
MICRO_VERSION=12
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=88
+EXTRA_VERSION=89
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
fi
AC_SUBST(PTHREAD_LIBS)
+t_oldLibs="$LIBS"
+LIBS="$LIBS"
+ac_cv_var__res_options=no
+AC_TRY_LINK([#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/nameser.h>
+ #include <resolv.h>],
+ [_res.options = RES_INIT;],
+ ac_cv_var__res_options=yes);
+if test "$ac_cv_var__res_options" != "yes"; then
+ LIBRESOLV="-lresolv"
+fi
+LIBS="$t_oldLibs"
+
+if test "x$LIBRESOLV" = "x"; then
+ AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
+ LIBS="$t_oldLibs"
+fi
+AC_SUBST(LIBRESOLV)
+
+LIBS="$LIBS $LIBRESOLV"
+
dnl for LDAP support in addressbook
dnl no check for libraries; dynamically loaded
AC_ARG_ENABLE(ldap,
#include <time.h>
-#include <endian.h>
-
#include "msgcache.h"
#include "utils.h"
#include "procmsg.h"
#include "codeconv.h"
-#ifdef __BIG_ENDIAN__
+#if G_BYTE_ORDER == G_BIG_ENDIAN
#define bswap_32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))