Changeset 41 for trunk/spreadlogd.c

Show
Ignore:
Timestamp:
05/05/06 17:50:18 (8 years ago)
Author:
jesus
Message:

autoconf support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/spreadlogd.c

    r40 r41  
    99*/ 
    1010 
    11 #include <stdio.h> 
    12 #include <stdlib.h> 
    13 #include <string.h> 
    14 #include <signal.h> 
    15 #include <unistd.h> 
    16 #include <sys/time.h> 
    17 #include <sys/resource.h> 
    18 #include <sp.h> 
    19 #include <errno.h> 
    20 #include <event.h> 
    21  
    22 #include "config.h" 
     11#include "sld_config.h" 
    2312#include "module.h" 
    2413 
     
    4130char *module_dir = NULL; 
    4231 
    43 static char *default_configfile = "/etc/spreadlogd.conf"; 
     32static char *default_configfile = ETCDIR "/spreadlogd.conf"; 
    4433static int connectandjoin(SpreadConfiguration *sc, void *uv); 
    4534static void handle_message(int fd, short event, void *arg); 
     
    4837void usage(char *progname) { 
    4938  fprintf(stderr, "%s\t\tVERSION: %s\n \ 
    50 \t-c configfile\t\t[default /etc/spreadlogd.conf]\n \ 
     39\t-c configfile\t\t[default " ETCDIR "/spreadlogd.conf]\n \ 
    5140\t-s\t\t\tskip locking (flock) files (NOT RECOMMENDED)\n \ 
    5241\t-v\t\t\tverbose mode\n \