diff --git a/Makefile.am b/Makefile.am index 95c53dd128..eb43ba4029 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,6 +124,10 @@ CORE_CFLAGS += -I$(switch_srcdir)/libs/libedit/src -DSWITCH_HAVE_LIBEDIT CORE_LIBS += libs/libedit/src/.libs/libedit.a endif +if ENABLE_TIMERFD_WRAPPER +CORE_CFLAGS += -DTIMERFD_WRAP +endif + ## ## libfreeswitch ## diff --git a/configure.in b/configure.in index c396ffa3d6..49969268d0 100644 --- a/configure.in +++ b/configure.in @@ -390,6 +390,11 @@ if test "$ac_cv_found_odbc" = "yes" ; then enable_core_odbc_support="yes" fi +AC_ARG_ENABLE(enable-timerfd-wrapper, + [AS_HELP_STRING([--enable-timerfd-wrapper], [timerfd is in the kernel but not in your libc])],,[enable_timer_fd_wrapper="yes"]) +AM_CONDITIONAL([ENABLE_TIMERFD_WRAPPER],[test "x$enable_timer_fd_wrapper" != "xno"]) + + AC_CHECK_LIB(z, inflateReset, have_libz=yes, have_libz=no) if test "x$have_libz" = "xyes" ; then APR_ADDTO(SWITCH_AM_LDFLAGS, -lz)