 diff -ur lighttpd-1.4.28.orig/configure.ac lighttpd-1.4.28/configure.ac
 --- lighttpd-1.4.28.orig/configure.ac	2010-08-13 20:10:15.000000000 +0900
-+++ lighttpd-1.4.28/configure.ac	2011-06-20 08:48:53.000000000 +0900
-@@ -81,7 +81,7 @@
++++ lighttpd-1.4.28/configure.ac	2011-06-22 22:24:46.000000000 +0900
+@@ -68,6 +68,11 @@
+ AC_TYPE_PID_T
+ AC_TYPE_SIZE_T
+ 
++AC_C_BIGENDIAN
++if test "x$ac_cv_c_bigendian" = "xyes"; then
++   CFLAGS="$CFLAGS -DWORDS_BIGENDIAN"
++fi
++
+ AC_CHECK_MEMBER(struct tm.tm_gmtoff,[AC_DEFINE([HAVE_STRUCT_TM_GMTOFF],[1],[gmtoff in struct tm])],,[#include <time.h>])
+ AC_CHECK_TYPES(struct sockaddr_storage,,,[#include <sys/socket.h>])
+ AC_CHECK_TYPES(socklen_t,,,[#include <sys/types.h>
+@@ -81,7 +86,7 @@
  AC_TYPE_SIGNAL
  AC_FUNC_STAT
  AC_FUNC_STRFTIME

 
 if test -z "$PKG_CONFIG"; then
   AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
@@ -215,6 +215,73 @@
  AC_SUBST(ATTR_LIB)
 fi
 

 dnl openssl on solaris needs -lsocket -lnsl
 AC_SEARCH_LIBS(socket,socket)
 AC_SEARCH_LIBS(gethostbyname,nsl socket)
@@ -625,6 +697,17 @@
 do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
 do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
 
