[cvs] bogofilter/doc/programmer/RISC-OS/src config.h,NONE,1.1 Makefile,1.4,1.5
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-10-30 20:03:41
|
Update of /cvsroot/bogofilter/bogofilter/doc/programmer/RISC-OS/src In directory sc8-pr-cvs1:/tmp/cvs-serv6492/RISC-OS/src Modified Files: Makefile Added Files: config.h Log Message: Update RISC-OS files for 0.15.8. --- NEW FILE: config.h --- /* config.in. Generated from configure.ac by autoheader. */ #define DIRSEP_C '.' #define DIRSEP_S "." #define EXTSEP_C '/' #define EXTSEP_S "/" #define CURDIR_C '@' #define CURDIR_S "@" #define PARDIR_S "^" /* default database file extension */ #define DB_EXT EXTSEP_S "db" /* default database type */ #define DB_TYPE "db" /* Enable Graham calculation method */ #define ENABLE_GRAHAM_METHOD 1 /* Enable memory usage debugging */ /* #define ENABLE_MEMDEBUG 1 */ /* Enable Fisher's method of combining P */ #define ENABLE_ROBINSON_FISHER 1 /* Enable Robinson calculation method */ #define ENABLE_ROBINSON_METHOD 1 /* Enable tdb datastore */ #define ENABLE_TDB_DATASTORE 1 /* Define to 1 if you have the `alarm' function. */ #define HAVE_ALARM 1 /* Define to 1 if you have the `bzero' function. */ #define HAVE_BZERO 1 /* Have suitable db.h header */ /* #undef HAVE_DB_H */ /* Define to 1 if you have the declaration of `db_create', and to 0 if you don't. */ #define HAVE_DECL_DB_CREATE 0 /* Define to 1 if you have the declaration of `optreset', and to 0 if you don't. */ #define HAVE_DECL_OPTRESET 0 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. */ #define HAVE_DIRENT_H 1 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ /* #undef HAVE_DOPRNT */ /* Define to 1 if you have the `fcntl' function. */ #define HAVE_FCNTL 1 /* Define to 1 if you have the <fcntl.h> header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the <float.h> header file. */ #define HAVE_FLOAT_H 1 /* Define to 1 if you have the `flock' function. */ /* #undef HAVE_FLOCK */ /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the `getpagesize' function. */ #define HAVE_GETPAGESIZE 1 /* Define to 1 if the system has the type `int16_t'. */ #define HAVE_INT16_T 1 /* Define to 1 if the system has the type `int32_t'. */ #define HAVE_INT32_T 1 /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the `m' library (-lm). */ /* #undef HAVE_LIBM */ /* Define to 1 if you have the `tdb' library (-ltdb). */ #define HAVE_LIBTDB 1 /* Define to 1 if you have the <limits.h> header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the `lockf' function. */ /* #undef HAVE_LOCKF */ /* Define to 1 if you have the `memcpy' function. */ #define HAVE_MEMCPY 1 /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `memset' function. */ #define HAVE_MEMSET 1 /* Define to 1 if you have the `mkdir' function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have a working `mmap' system call. */ /* #undef HAVE_MMAP */ /* Define to 1 if you have the `munmap' function. */ /* #undef HAVE_MUNMAP */ /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ /* Define to 1 if you have the `pow' function. */ #define HAVE_POW 1 /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 /* Define to 1 if you have the `socket' function. */ #define HAVE_SOCKET 1 /* Define to 1 if you have the `sqrt' function. */ #define HAVE_SQRT 1 /* Define to 1 if stdbool.h conforms to C99. */ #define HAVE_STDBOOL_H 0 /* Define to 1 if you have the <stddef.h> header file. */ #define HAVE_STDDEF_H 1 /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strcasecmp' function. */ #define HAVE_STRCASECMP 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strcspn' function. */ #define HAVE_STRCSPN 1 /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 /* Define to 1 if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strlcat' function. */ #define HAVE_STRLCAT 0 /* Define to 1 if you have the `strlcpy' function. */ #define HAVE_STRLCPY 0 /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if you have the `strspn' function. */ #define HAVE_STRSPN 1 /* Define to 1 if you have the `strstr' function. */ #define HAVE_STRSTR 1 /* Define to 1 if you have the <syslog.h> header file. */ #define HAVE_SYSLOG_H 1 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. */ #define HAVE_SYS_DIR_H 1 /* Define to 1 if you have the <sys/file.h> header file. */ #define HAVE_SYS_FILE_H 1 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. */ /* #undef HAVE_SYS_NDIR_H */ /* Define to 1 if you have the <sys/param.h> header file. */ #define HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the <sys/select.h> header file. */ #define HAVE_SYS_SELECT_H 1 /* Define to 1 if you have the <sys/socket.h> header file. */ #define HAVE_SYS_SOCKET_H 1 /* Define to 1 if you have the <sys/stat.h> header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the <sys/time.h> header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the <sys/types.h> header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if the system has the type `uint'. */ #define HAVE_UINT 1 /* Define to 1 if the system has the type `uint16_t'. */ #define HAVE_UINT16_T 1 /* Define to 1 if the system has the type `uint32_t'. */ #define HAVE_UINT32_T 1 /* Define to 1 if the system has the type `ulong'. */ #define HAVE_ULONG 1 /* Define to 1 if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if the system has the type `u_int16_t'. */ #define HAVE_U_INT16_T 1 /* Define to 1 if the system has the type `u_int32_t'. */ #define HAVE_U_INT32_T 1 /* Define to 1 if the system has the type `u_int8_t'. */ #define HAVE_U_INT8_T 1 /* Define to 1 if you have the <values.h> header file. */ /* #undef HAVE_VALUES_H */ /* Define to 1 if you have the `vprintf' function. */ #define HAVE_VPRINTF 1 /* Define to 1 if you have the `vsnprintf' function. */ #define HAVE_VSNPRINTF 1 /* Define to 1 if the system has the type `_Bool'. */ #if (__CC_NORCROFT == 1) && (__CC_NORCROFT_VERSION >= 544) # define HAVE__BOOL 1 #endif /* Define to 1 if trio is to be included. */ /* #undef NEEDTRIO */ /* Name of package */ #define PACKAGE "bogofilter" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void /* Define to the type of arg 1 for `select'. */ #define SELECT_TYPE_ARG1 int /* Define to the type of args 2, 3 and 4 for `select'. */ #define SELECT_TYPE_ARG234 __fd_set* /* Define to the type of arg 5 for `select'. */ #define SELECT_TYPE_ARG5 struct timeval* /* The size of a `int', as computed by sizeof. */ #define SIZEOF_INT 4 /* The size of a `long', as computed by sizeof. */ #define SIZEOF_LONG 4 /* The size of a `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 /* The size of a `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T 4 /* Use specified header name instead of X-Bogosity */ #define SPAM_HEADER_NAME "X-Bogosity" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ #define TIME_WITH_SYS_TIME 1 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #define YYTEXT_POINTER 1 /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if <sys/types.h> doesn't define. */ /* #undef gid_t */ /* Define to `int' if <sys/types.h> does not define. */ /* #undef pid_t */ /* Define to `unsigned' if <sys/types.h> does not define. */ /* #undef size_t */ /* Define to trio_snprintf if your system lacks snprintf */ /* #undef snprintf */ /* Define to `int' if <sys/types.h> doesn't define. */ /* #undef uid_t */ /* Define to trio_vsnprintf if your system lacks vsnprintf */ /* #undef vsnprintf */ Index: Makefile =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/doc/programmer/RISC-OS/src/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile 29 Sep 2003 11:23:52 -0000 1.4 +++ Makefile 30 Oct 2003 20:03:38 -0000 1.5 @@ -24,7 +24,7 @@ LD = link AR = libfile DEPEND = -depend !Depend -CC_FLAGS = -Wpc -zo -fw -throwback -Otime -I@,^,^.^,$(DBINCLUDE),Unix: -JUnix: -D__riscos__ -DHAVE_CONFIG_H -zpq262144 +CC_FLAGS = -Wdp -throwback -Otime -I@,^,^.^,$(DBINCLUDE),Unix: -JUnix: -D__riscos__ -DHAVE_CONFIG_H UNIXLIB = Unix:o.UnixLib else ifeq (${CC},gcc) @@ -84,11 +84,13 @@ o.textblock \ o.token \ o.transaction \ + o.tunelist \ o.uudecode \ o.version \ o.word \ o.wordhash \ o.wordlists \ + o.wordlists_base \ o.xatof \ o.xatoi \ o.xcalloc \ @@ -101,9 +103,11 @@ o.xstrlcpy BOGOFILTER_OBJS = o.main - + BOGOLEXER_OBJS = o.bogolexer +BOGOTUNE_OBJS = o.bogotune + BOGOUTIL_OBJS = o.bogoutil BOGOWORDFREQ_OBJS = o.bogowordfreq @@ -124,31 +128,34 @@ # Static dependencies: -all: bogofilter bogolexer bogoutil bogowordfreq configtest +all: bogofilter bogolexer bogotune bogoutil bogowordfreq configtest dist: install - -cdir <Bogofilter$Dir>.docs - -copy ^.AUTHORS <Bogofilter$Dir>.docs.* ~CF~V - -copy ^.COPYING <Bogofilter$Dir>.docs.* ~CF~V - -copy ^.NEWS <Bogofilter$Dir>.docs.* ~CF~V - -copy ^.doc.bogofilter-faq/html <Bogofilter$Dir>.docs.* ~CF~V - -copy ^.doc.bogofilter/htmlin <Bogofilter$Dir>.docs.bogofilter/html ~CF~V - -copy ^.doc.bogolexer/htmlin <Bogofilter$Dir>.docs.bogolexer/html ~CF~V - -copy ^.doc.bogoutil/htmlin <Bogofilter$Dir>.docs.bogoutil/html ~CF~V - -settype <Bogofilter$Dir>.docs.AUTHORS Text - -settype <Bogofilter$Dir>.docs.COPYING Text - -settype <Bogofilter$Dir>.docs.NEWS Text - -settype <Bogofilter$Dir>.docs.bogofilter-faq/html HTML - -settype <Bogofilter$Dir>.docs.bogofilter/html HTML - -settype <Bogofilter$Dir>.docs.bogolexer/html HTML - -settype <Bogofilter$Dir>.docs.bogoutil/html HTML + -cdir <Bogofilter$Dir>.doc + -copy ^.AUTHORS <Bogofilter$Dir>.doc.* ~CF~V + -copy ^.COPYING <Bogofilter$Dir>.doc.* ~CF~V + -copy ^.NEWS <Bogofilter$Dir>.doc.* ~CF~V + -copy ^.doc.bogofilter-faq/html <Bogofilter$Dir>.doc.* ~CF~V + -copy ^.doc.bogofilter/htmlin <Bogofilter$Dir>.doc.bogofilter/html ~CF~V + -copy ^.doc.bogolexer/htmlin <Bogofilter$Dir>.doc.bogolexer/html ~CF~V + -copy ^.doc.bogotune/htmlin <Bogofilter$Dir>.doc.bogotune/html ~CF~V + -copy ^.doc.bogoutil/htmlin <Bogofilter$Dir>.doc.bogoutil/html ~CF~V + -settype <Bogofilter$Dir>.doc.AUTHORS Text + -settype <Bogofilter$Dir>.doc.COPYING Text + -settype <Bogofilter$Dir>.doc.NEWS Text + -settype <Bogofilter$Dir>.doc.bogofilter-faq/html HTML + -settype <Bogofilter$Dir>.doc.bogofilter/html HTML + -settype <Bogofilter$Dir>.doc.bogolexer/html HTML + -settype <Bogofilter$Dir>.doc.bogotune/html HTML + -settype <Bogofilter$Dir>.doc.bogoutil/html HTML -install: bogofilter bogolexer bogoutil bogowordfreq configtest - -copy bogofilter <Bogofilter$Dir>.* ~CF~V - -copy bogolexer <Bogofilter$Dir>.* ~CF~V - -copy bogoutil <Bogofilter$Dir>.* ~CF~V - -copy bogowordfreq <Bogofilter$Dir>.* ~CF~V - -copy configtest <Bogofilter$Dir>.* ~CF~V +install: bogofilter bogolexer bogotune bogoutil bogowordfreq configtest + -copy bogofilter <Bogofilter$Dir>.bin.* ~CF~V + -copy bogolexer <Bogofilter$Dir>.bin.* ~CF~V + -copy bogotune <Bogofilter$Dir>.bin.* ~CF~V + -copy bogoutil <Bogofilter$Dir>.bin.* ~CF~V + -copy bogowordfreq <Bogofilter$Dir>.bin.* ~CF~V + -copy configtest <Bogofilter$Dir>.bin.* ~CF~V libbogo: $(COMMON_OBJS) $(AR) $(AR_FLAGS) -c -o $@ $(COMMON_OBJS) @@ -164,6 +171,9 @@ bogolexer: libbogo $(BOGOLEXER_OBJS) $(DBLIB) $(LD) $(LD_FLAGS) -o $@ $(BOGOLEXER_OBJS) libbogo $(DBLIB) $(UNIXLIB) +bogotune: libbogo $(LIBGSL) $(BOGOTUNE_OBJS) $(DBLIB) + $(LD) $(LD_FLAGS) -o $@ $(BOGOTUNE_OBJS) libbogo $(LIBGSL) $(DBLIB) $(UNIXLIB) + bogoutil: libbogo $(BOGOUTIL_OBJS) $(DBLIB) $(LD) $(LD_FLAGS) -o $@ $(BOGOUTIL_OBJS) libbogo $(DBLIB) $(UNIXLIB) @@ -176,6 +186,7 @@ clean: -ifthere bogofilter then wipe bogofilter ~CF~V -ifthere bogolexer then wipe bogolexer ~CF~V + -ifthere bogotune then wipe bogotune ~CF~V -ifthere bogoutil then wipe bogoutil ~CF~V -ifthere bogowordfreq then wipe bogowordfreq ~CF~V -ifthere configtest then wipe configtest ~CF~V |