# Use shared libraries
UnSet("CONFIG_SHARED");
-# If your system doesn't contain GNU libc 2.3 or newer, it's recommended to let Sherlock
-# use its own regex library (a copy of the glibc one), because the default regex library
-# is likely to be crappy.
-Set("CONFIG_OWN_REGEX");
-
# If your system can't reset getopt with 'optind = 0', you need to compile our internal copy
# of GNU libc's getopt. This should not be necessary on GNU libc.
UnSet("CONFIG_OWN_GETOPT");
#include <stdio.h>
#include <string.h>
-#if defined(CONFIG_OWN_REGEX) || defined(CONFIG_POSIX_REGEX)
+#ifdef CONFIG_POSIX_REGEX
/* POSIX regular expression library */
-#ifdef CONFIG_OWN_REGEX
-#include "lib/regex/regex-sh.h"
-#else
#include <regex.h>
-#endif
struct regex {
regex_t rx;