Kristian Nielsen <knielsen@knielsen-hq.org> writes:
I guess the solution is to check for system libevent version also, and if too old treat it the same way as not present. Seems we can check for the presense of the evutil_socketpair() function, which was added in libevent 1.4.
Looks like something like this works: === modified file 'config/ac-macros/libevent.m4' --- config/ac-macros/libevent.m4 2010-01-29 20:35:56 +0000 +++ config/ac-macros/libevent.m4 2010-01-30 11:53:39 +0000 @@ -54,7 +54,7 @@ AC_DEFUN([MYSQL_CHECK_LIBEVENT], [ "" | "yes") libevent_includes="" libevent_libs="-levent" - AC_CHECK_LIB(event, event_get_version,[with_libevent=system], + AC_CHECK_LIB(event, evutil_socketpair,[with_libevent=system], [with_libevent=bundled]) AC_CHECK_HEADER(event.h,,[with_libevent=bundled]) if test "$with_libevent" = "bundled"; then Any objections? - Kristian.