--- configure.orig 2012-11-28 17:11:13.000000000 +0400 +++ configure 2013-09-25 23:54:23.465994180 +0400 @@ -6332,8 +6332,8 @@ levent=yes else levent=yes - CPPFLAGS="$CPPFLAGS -I$withval/include" - LDFLAGS="$LDFLAGS -L$withval/lib" + CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/include/event2/compat" + LDFLAGS="$LDFLAGS -L$withval/lib/event2" fi fi