SET(ETC_PREFIX /usr/local/etc)
SET(PREFIX /usr/local)
ENDIF(NOT ETC_PREFIX)
+ FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl PATHS /lib
+ /opt/lib
+ /usr/lib
+ /usr/local/lib
+ DOC "Path where the libintl library can be found")
+ LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARY})
+
+ ENDIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+
LIST(APPEND CMAKE_REQUIRED_LIBRARIES intl)
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
SET(ETC_PREFIX /usr/local/etc)
SET(PREFIX /usr/local)
ENDIF(NOT ETC_PREFIX)
- LIST(APPEND CMAKE_REQUIRED_LIBRARIES intl)
+ FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl PATHS /lib
+ /opt/lib
+ /usr/lib
+ /usr/local/lib
+ DOC "Path where the libintl library can be found")
+ LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${LIBINTL_LIBRARY})
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
struct mime_text_part *part;
GList *cur, *headerlist;
GRegex *regexp;
- struct url_regexp_param callback_param;
+ struct url_regexp_param callback_param = {
+ .task = task,
+ .regexp = re->regexp,
+ .re = re,
+ .found = FALSE
+ };
int r;
#define MIN_CACHE 17
-static uint64_t total_frequency;
-static uint32_t nsymbols;
+static uint64_t total_frequency = 0;
+static uint32_t nsymbols = 0;
int
cache_cmp (const void *p1, const void *p2)