avoid valgrind false positive by zeroing epoll_event
Fix missing AC_PROG_SED on older Autoconfs

For pre-2.59b Autoconfs, AC_PROG_SED is not available [1]; on such
systems, avoid calling AC_PROG_SED, while providing a sensible SED.

This aids backporting to Autoconf 2.59.

[1] http://lists.gnu.org/archive/html/autotools-announce/2004-08/msg00002.html
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)

This is a backport of ad03952.
fix some hinky indentation in evhttp_make_request
Fix ipv6 support for http. When URL contain domain, not IP address.

Before this patch socket created before domain was resolved, and it
always create with AF_INET (ipv4), but we must create socket only after
domain was resolved to understad which protocol family have domain
address.

Thank to Patrick Pelletier, who found this bug.
Implement EVUTIL_ERR_IS_EAGAIN on windows.
Add regress test ipv6_for_domain.

Written for commit 71e709c7829275a594f767b27468b1b52e8b5bb9.
Fix ipv6 support for http. When URL contain domain, not IP address.
Preliminary changes for Minix3.
Merge pull request #37 from ppelleti/fix-indentation

fix some hinky indentation in evhttp_make_request
Merge pull request #39 from azat/fix-http-for-ipv6

Fix ipv6 support for http. When URL contain domain, not IP address.
Merge pull request #30 from ppelleti/valgrind-epoll

avoid valgrind false positive by zeroing epoll_event
Fix a locking error in bufferevent_socket_get_dns_error.

Patch from Ka-Hing Cheung.
Merge remote-tracking branch 'origin/patches-2.0'
remove all exes on "make clean", not just regress.exe
"buffer" spelling
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat

Patch from cazfi.
Rename configure.in to configure.ac to appease newer autoconfs
Avoid using top_srcdir in TESTS-new automakes do not like this
Merge remote-tracking branch 'origin/patches-2.0'

This is an "ours" commit: I'm not taking the recent autotools changes
from patches-2.0, since they'd conflict with master.
Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat

Patch from cazfi.