diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a40b390..be2b460 100644 --- a/configure.ac +++ b/configure.ac @@ -388,6 +388,22 @@ if test $ac_cv_libevent_dir != "(system)"; then fi fi +AC_RUN_IFELSE( + [AC_LANG_PROGRAM([ +#include <event.h> + ], [dnl +const char *ver = event_get_version(); +return (ver != NULL && *ver != '1') ? 0 : 1; + ]) + ],[ + AC_DEFINE(HAVE_LIBEVENT_NEW, 1, [linked to libevent]) + ], + [ + AC_MSG_ERROR([libevent2 is required]) + ], + [] +[]) + trylibssldir="" AC_ARG_WITH(libssl, [ --with-libssl=PATH Specify path to libssl installation ], |