Changeset 0268e62cb80791dd94220cf6deec916656c7cddd
- Timestamp:
- 01/25/08 23:07:37
(5 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1201302457 +0000
- git-parent:
[7e43d37ee8476335cb9af1abff0f709c97488df8]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1201302457 +0000
- Message:
update.. prep for config system and module loading
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7e43d37 |
r0268e62 |
|
| 244 | 244 | CPPFLAGS='-I$(top_srcdir)/src' |
|---|
| 245 | 245 | |
|---|
| | 246 | AC_MSG_CHECKING([Resolving libexec path...]) |
|---|
| | 247 | fullpath=$libexecdir |
|---|
| | 248 | while test "x$temppath" != "x$fullpath" ; do |
|---|
| | 249 | temppath=$fullpath |
|---|
| | 250 | fullpath=`eval echo ${fullpath}` |
|---|
| | 251 | done |
|---|
| | 252 | fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"` |
|---|
| | 253 | AC_MSG_RESULT([$fullpath]) |
|---|
| | 254 | AC_DEFINE_UNQUOTED(MODULES_DIR, "${fullpath}") |
|---|
| | 255 | MODULES_DIR=${fullpath} |
|---|
| | 256 | AC_SUBST(MODULES_DIR) |
|---|
| | 257 | |
|---|
| | 258 | |
|---|
| 246 | 259 | AC_OUTPUT([ |
|---|
| 247 | 260 | Makefile |
|---|
| r7e43d37 |
r0268e62 |
|
| 25 | 25 | SUBS=utils jlog eventer modules |
|---|
| 26 | 26 | |
|---|
| 27 | | OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o |
|---|
| | 27 | OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o \ |
|---|
| | 28 | noit_module.o noit_conf.o |
|---|
| 28 | 29 | |
|---|
| 29 | 30 | all: noitd |
|---|
| r7e43d37 |
r0268e62 |
|
| 38 | 38 | |
|---|
| 39 | 39 | #undef MODULEEXT |
|---|
| | 40 | #undef MODULES_DIR |
|---|
| 40 | 41 | |
|---|
| 41 | 42 | #undef HAVE_FCNTL_H |
|---|
| r392bce2 |
r0268e62 |
|
| 17 | 17 | #include "eventer/eventer.h" |
|---|
| 18 | 18 | |
|---|
| 19 | | noit_hash_table polls = NOIT_HASH_EMPTY; |
|---|
| | 19 | static noit_hash_table polls = NOIT_HASH_EMPTY; |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | void |
|---|
| 22 | 22 | noit_poller_init() { |
|---|
| 23 | | noit_hash_init(&polls); |
|---|
| 24 | 23 | } |
|---|
| 25 | 24 | |
|---|
| rf235ad4 |
r0268e62 |
|
| 18 | 18 | noit_log_stream_add_stream(noit_error, noit_stderr); |
|---|
| 19 | 19 | |
|---|
| | 20 | noit_conf_init(); |
|---|
| | 21 | |
|---|
| 20 | 22 | if(eventer_choose("kqueue") == -1) { |
|---|
| 21 | 23 | fprintf(stderr, "Cannot choose kqueue\n"); |
|---|