~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/plug.in

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[plugin]
2
 
title=Pool of Threads Scheduler
3
 
description=Pool of Threads Scheduler
4
 
sources=pool_of_threads.cc session_scheduler.cc
5
 
headers=pool_of_threads.h session_scheduler.h
6
 
load_by_default=yes
7
 
cxxflags=${PROTOSKIP_WARNINGS}
8
 
ldflags=${LTLIBEVENT}
9
 
build_conditional="x$ac_cv_libevent" = "xyes"
10
 
#uncomment when pool_of_threads shutdown is fixed
11
 
testsuite=disable
 
1
DRIZZLE_PLUGIN(pool_of_threads,  [Pool of Threads Scheduler])
 
2
DRIZZLE_PLUGIN_STATIC(pool_of_threads,   [libpool_of_threads.la])
 
3
DRIZZLE_PLUGIN_MANDATORY(pool_of_threads)  dnl Default
 
4
DRIZZLE_PLUGIN_ACTIONS(pool_of_threads, [
 
5
#--------------------------------------------------------------------
 
6
# Check for libevent
 
7
#--------------------------------------------------------------------
 
8
 
 
9
  AC_LIB_HAVE_LINKFLAGS(event,,
 
10
  [
 
11
  #include <sys/types.h>
 
12
  #include <sys/time.h>
 
13
  #include <stdlib.h>
 
14
  #include <event.h>
 
15
  ],[
 
16
    struct bufferevent bev;
 
17
    bufferevent_settimeout(&bev, 1, 1);
 
18
    event_init();
 
19
    event_loop(EVLOOP_ONCE);
 
20
  ]) 
 
21
  AS_IF([test x$ac_cv_libevent = xno],
 
22
      AC_MSG_ERROR([A recent libevent is required for Drizzle. Check http://www.monkey.org/~provos/libevent ]))
 
23
  DRIZZLED_PLUGIN_DEP_LIBS="${DRIZZLED_PLUGIN_DEP_LIBS} ${LTLIBEVENT}"
 
24
])