Index: trunk/src/make-tests.sh
===================================================================
--- trunk/src/make-tests.sh	(revision 201)
+++ trunk/src/make-tests.sh	(revision 203)
@@ -20,4 +20,5 @@
 #include <stdio.h>
 #include "CuTest.h"
+#include "config.h"
 
 '
Index: trunk/src/samhain.c
===================================================================
--- trunk/src/samhain.c	(revision 201)
+++ trunk/src/samhain.c	(revision 203)
@@ -824,5 +824,5 @@
   ino = (long) buf.st_ino;
     
-  if (NULL == (dp = opendir("/proc")))
+  if (NULL == (dp = opendir(_("/proc"))))
     {
       return NULL;
Index: trunk/src/sh_gpg.c
===================================================================
--- trunk/src/sh_gpg.c	(revision 201)
+++ trunk/src/sh_gpg.c	(revision 203)
@@ -257,5 +257,5 @@
   char   cc3[32];
   char   cc4[SH_PATHBUF+32];
-  char   cc5[32] = "--no-tty";
+  char   cc5[32];
 #endif
 
@@ -283,5 +283,6 @@
   /* sl_strlcpy (cc4,   sh.effective.home, SH_PATHBUF+32); */
   sl_strlcpy (cc4,   homedir,           SH_PATHBUF+32);
-  sl_strlcat (cc4,   _("/.gnupg"),      SH_PATHBUF+32); 
+  sl_strlcat (cc4,   _("/.gnupg"),      SH_PATHBUF+32);
+  sl_strlcpy (cc5,   _("--no-tty"),     32);
 
   /* fprintf(stderr, "YULE: homedir=%s\n", homedir); */
@@ -416,5 +417,5 @@
       envp[0] = malloc (len); /* free() ok   */
       if (envp[0] != NULL)
-	sl_snprintf (envp[0], len, "HOME=%s", sh.effective.home); 
+	sl_snprintf (envp[0], len, _("HOME=%s"), sh.effective.home); 
       envp[1] = NULL;
     }
Index: trunk/src/sh_log_check.c
===================================================================
--- trunk/src/sh_log_check.c	(revision 201)
+++ trunk/src/sh_log_check.c	(revision 203)
@@ -14,5 +14,9 @@
 
 /* Debian/Ubuntu: libpcre3-dev */
+#ifdef HAVE_PCRE_PCRE_H
+#include <pcre/pcre.h>
+#else
 #include <pcre.h>
+#endif
 
 #include "samhain.h"
Index: trunk/src/sh_log_evalrule.c
===================================================================
--- trunk/src/sh_log_evalrule.c	(revision 201)
+++ trunk/src/sh_log_evalrule.c	(revision 203)
@@ -15,5 +15,13 @@
 
 /* Debian/Ubuntu: libpcre3-dev */
+#ifdef HAVE_PCRE_PCRE_H
+#include <pcre/pcre.h>
+#else
 #include <pcre.h>
+#endif
+
+#ifndef PCRE_NO_AUTO_CAPTURE
+#define PCRE_NO_AUTO_CAPTURE 0
+#endif
 
 #include "samhain.h"
Index: trunk/src/sh_log_parse_apache.c
===================================================================
--- trunk/src/sh_log_parse_apache.c	(revision 201)
+++ trunk/src/sh_log_parse_apache.c	(revision 203)
@@ -29,5 +29,9 @@
 
 /* Debian/Ubuntu: libpcre3-dev */
+#ifdef HAVE_PCRE_PCRE_H
+#include <pcre/pcre.h>
+#else
 #include <pcre.h>
+#endif
 
 #include "samhain.h"
Index: trunk/src/sh_log_parse_pacct.c
===================================================================
--- trunk/src/sh_log_parse_pacct.c	(revision 201)
+++ trunk/src/sh_log_parse_pacct.c	(revision 203)
@@ -227,5 +227,5 @@
 sh_string * sh_read_pacct (sh_string * record, struct sh_logfile * logfile)
 {
-#if defined(__linux__)
+#if defined(__linux__) && defined(HAVE_ACCT_V3)
 #  define STRUCT_ACCT struct acct_v3
 #else
Index: trunk/src/sh_processcheck.c
===================================================================
--- trunk/src/sh_processcheck.c	(revision 201)
+++ trunk/src/sh_processcheck.c	(revision 203)
@@ -196,5 +196,5 @@
   char *      tmp;
 
-  sl_snprintf (path, sizeof(path), "/proc/%ld/exe", (unsigned long) pid);
+  sl_snprintf (path, sizeof(path), _("/proc/%ld/exe"), (unsigned long) pid);
 
   if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode))
@@ -203,5 +203,5 @@
     }
 
-  sl_snprintf (path, sizeof(path), "/proc/%ld/file", (unsigned long) pid);
+  sl_snprintf (path, sizeof(path), _("/proc/%ld/file"), (unsigned long) pid);
 
   if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode))
@@ -210,5 +210,5 @@
     }
 
-  sl_snprintf (path, sizeof(path), "/proc/%ld/path/a.out", (unsigned long) pid);
+  sl_snprintf (path, sizeof(path), _("/proc/%ld/path/a.out"), (unsigned long) pid);
 
   if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode))
Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 201)
+++ trunk/src/sh_unix.c	(revision 203)
@@ -2083,5 +2083,5 @@
       int r;
 
-      while((r = waitpid(pid, &status, WCONTINUED|WUNTRACED)) != pid && r != -1) ;
+      while((r = waitpid(pid, &status, WUNTRACED)) != pid && r != -1) ;
 
 #if !defined(USE_UNO)
Index: trunk/src/sh_userfiles.c
===================================================================
--- trunk/src/sh_userfiles.c	(revision 201)
+++ trunk/src/sh_userfiles.c	(revision 203)
@@ -215,16 +215,16 @@
      * So, compare longest strings first */
     if( s == NULL ) /* The default */          new->level = default_level;
-    else if ( strstr(s, "attributes")!= NULL ) new->level = SH_LEVEL_ATTRIBUTES;
-    else if ( strstr(s, "allignore") != NULL ) new->level = SH_LEVEL_ALLIGNORE;
-    else if ( strstr(s, "noignore")  != NULL ) new->level = SH_LEVEL_NOIGNORE;
-    else if ( strstr(s, "logfiles")  != NULL ) new->level = SH_LEVEL_LOGFILES;
-    else if ( strstr(s, "readonly")  != NULL ) new->level = SH_LEVEL_READONLY;
-    else if ( strstr(s, "loggrow")   != NULL ) new->level = SH_LEVEL_LOGGROW;
-    else if ( strstr(s, "user0")     != NULL ) new->level = SH_LEVEL_USER0;
-    else if ( strstr(s, "user1")     != NULL ) new->level = SH_LEVEL_USER1;
-    else if ( strstr(s, "user2")     != NULL ) new->level = SH_LEVEL_USER2;
-    else if ( strstr(s, "user3")     != NULL ) new->level = SH_LEVEL_USER3;
-    else if ( strstr(s, "user4")     != NULL ) new->level = SH_LEVEL_USER4;
-    else if ( strstr(s, "prelink")   != NULL ) new->level = SH_LEVEL_PRELINK;
+    else if ( strstr(s, _("attributes"))!= NULL ) new->level = SH_LEVEL_ATTRIBUTES;
+    else if ( strstr(s, _("allignore")) != NULL ) new->level = SH_LEVEL_ALLIGNORE;
+    else if ( strstr(s, _("noignore"))  != NULL ) new->level = SH_LEVEL_NOIGNORE;
+    else if ( strstr(s, _("logfiles"))  != NULL ) new->level = SH_LEVEL_LOGFILES;
+    else if ( strstr(s, _("readonly"))  != NULL ) new->level = SH_LEVEL_READONLY;
+    else if ( strstr(s, _("loggrow"))   != NULL ) new->level = SH_LEVEL_LOGGROW;
+    else if ( strstr(s, _("user0"))     != NULL ) new->level = SH_LEVEL_USER0;
+    else if ( strstr(s, _("user1"))     != NULL ) new->level = SH_LEVEL_USER1;
+    else if ( strstr(s, _("user2"))     != NULL ) new->level = SH_LEVEL_USER2;
+    else if ( strstr(s, _("user3"))     != NULL ) new->level = SH_LEVEL_USER3;
+    else if ( strstr(s, _("user4"))     != NULL ) new->level = SH_LEVEL_USER4;
+    else if ( strstr(s, _("prelink"))   != NULL ) new->level = SH_LEVEL_PRELINK;
     else            /* The default */          new->level = default_level;
 
Index: trunk/src/slib.c
===================================================================
--- trunk/src/slib.c	(revision 201)
+++ trunk/src/slib.c	(revision 203)
@@ -1094,5 +1094,5 @@
 {
 #ifndef HAVE_STRSTR
-  insigned int    i;
+  unsigned int    i;
   size_t          needle_len;
   size_t          haystack_len;
