mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
libev or libevent in About dialog.
This commit is contained in:
parent
21d36fcbd1
commit
d5261654f4
11
configure.in
11
configure.in
@ -516,7 +516,7 @@ if test "$enable_gssapi" = "yes"; then
|
|||||||
GSSAPI_LIBS=`krb5-config --libs gssapi`
|
GSSAPI_LIBS=`krb5-config --libs gssapi`
|
||||||
CFLAGS="$GSSAPI_CFLAGS $CFLAGS"
|
CFLAGS="$GSSAPI_CFLAGS $CFLAGS"
|
||||||
LIBS="$GSSAPI_LIBS $LIBS"
|
LIBS="$GSSAPI_LIBS $LIBS"
|
||||||
EL_CONFIG(CONFIG_GSSAPI, [GssApi])
|
EL_CONFIG(CONFIG_GSSAPI, [GssApi])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
@ -1217,6 +1217,7 @@ fi
|
|||||||
# ========
|
# ========
|
||||||
# libevent
|
# libevent
|
||||||
# ========
|
# ========
|
||||||
|
CONFIG_LIBEV=no
|
||||||
AC_ARG_WITH(libev, [ --with-libev compile with libev (libevent compatibility mode)],
|
AC_ARG_WITH(libev, [ --with-libev compile with libev (libevent compatibility mode)],
|
||||||
[if test "$withval" = yes; then enable_libev=yes; else enable_libev=no; fi])
|
[if test "$withval" = yes; then enable_libev=yes; else enable_libev=no; fi])
|
||||||
cf_have_libev=no
|
cf_have_libev=no
|
||||||
@ -1226,13 +1227,16 @@ if test "$enable_libev" = yes; then
|
|||||||
AC_CHECK_LIB(ev, event_loop)
|
AC_CHECK_LIB(ev, event_loop)
|
||||||
if test "$ac_cv_lib_ev_event_loop" = yes; then
|
if test "$ac_cv_lib_ev_event_loop" = yes; then
|
||||||
cf_have_libev=yes
|
cf_have_libev=yes
|
||||||
|
EL_CONFIG(CONFIG_LIBEV, [libev])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(CONFIG_LIBEV)
|
||||||
|
|
||||||
AC_ARG_WITH(libevent, [ --with-libevent compile with libevent. Note that --with-libev has precedence],
|
AC_ARG_WITH(libevent, [ --with-libevent compile with libevent. Note that --with-libev has precedence],
|
||||||
[if test "$withval" = yes; then enable_libevent=yes; else enable_libevent=no; fi])
|
[if test "$withval" = yes; then enable_libevent=yes; else enable_libevent=no; fi])
|
||||||
|
|
||||||
|
CONFIG_LIBEVENT=no
|
||||||
cf_have_libevent=no
|
cf_have_libevent=no
|
||||||
if test "$enable_libevent" = yes -a "$cf_have_libev" = no; then
|
if test "$enable_libevent" = yes -a "$cf_have_libev" = no; then
|
||||||
AC_CHECK_HEADERS(event.h ev-event.h)
|
AC_CHECK_HEADERS(event.h ev-event.h)
|
||||||
@ -1240,16 +1244,19 @@ if test "$enable_libevent" = yes -a "$cf_have_libev" = no; then
|
|||||||
AC_CHECK_LIB(event, event_loop)
|
AC_CHECK_LIB(event, event_loop)
|
||||||
if test "$ac_cv_lib_event_event_loop" = yes; then
|
if test "$ac_cv_lib_event_event_loop" = yes; then
|
||||||
cf_have_libevent=yes
|
cf_have_libevent=yes
|
||||||
|
EL_CONFIG(CONFIG_LIBEVENT, [libevent])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(CONFIG_LIBEVENT)
|
||||||
|
|
||||||
if test "$cf_have_libev" = yes -o "$cf_have_libevent" = yes; then
|
if test "$cf_have_libev" = yes -o "$cf_have_libevent" = yes; then
|
||||||
AC_HAVE_FUNCS(event_base_set event_get_version event_get_method event_base_free event_base_new event_reinit event_base_get_method event_config_set_flag event_get_struct_event_size)
|
AC_HAVE_FUNCS(event_base_set event_get_version event_get_method event_base_free event_base_new event_reinit event_base_get_method event_config_set_flag event_get_struct_event_size)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EL_LOG_CONFIG([CONFIG_LIBEV], [[libev]], [[$cf_have_libev]])
|
EL_LOG_CONFIG([CONFIG_LIBEV], [[libev]], [[$cf_have_libev]])
|
||||||
EL_LOG_CONFIG([CONFIG_LIBEVENT], [[libevent]], [[$cf_have_libevent]])
|
EL_LOG_CONFIG([CONFIG_LIBEVENT], [[libevent]], [[$cf_have_libevent]])
|
||||||
|
|
||||||
|
|
||||||
# Final SSL setup
|
# Final SSL setup
|
||||||
|
|
||||||
EL_CONFIG_DEPENDS(CONFIG_SSL, [CONFIG_OPENSSL CONFIG_GNUTLS CONFIG_NSS_COMPAT_OSSL], [SSL])
|
EL_CONFIG_DEPENDS(CONFIG_SSL, [CONFIG_OPENSSL CONFIG_GNUTLS CONFIG_NSS_COMPAT_OSSL], [SSL])
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
#include "util/string.h"
|
#include "util/string.h"
|
||||||
#include "vernum.h"
|
#include "vernum.h"
|
||||||
|
|
||||||
|
#if defined(CONFIG_LIBEV) || defined(CONFIG_LIBEVENT)
|
||||||
|
extern int event_enabled;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_module_to_string(struct string *string, struct module *module,
|
add_module_to_string(struct string *string, struct module *module,
|
||||||
@ -148,6 +151,12 @@ get_dyn_full_version(struct terminal *term, int more)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_COMBINE
|
#ifdef CONFIG_COMBINE
|
||||||
comma, _("Combining characters", term),
|
comma, _("Combining characters", term),
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_LIBEV
|
||||||
|
comma, (event_enabled ? _("libev", term) : _("libev (disabled)", term)),
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_LIBEVENT
|
||||||
|
comma, (event_enabled ? _("libevent", term) : _("libevent (disabled)", term)),
|
||||||
#endif
|
#endif
|
||||||
comma,
|
comma,
|
||||||
(unsigned char *) NULL
|
(unsigned char *) NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user