Mercurial > hg > mlmmj
changeset 269:facf047c93c5
Add checks for regexec and regcomp to configure
author | mmj |
---|---|
date | Thu, 24 Jun 2004 23:04:04 +1000 |
parents | 1dbadf407849 |
children | 1678d56de03f |
files | config.h.in configure.ac src/do_all_the_voodo_here.c |
diffstat | 3 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/config.h.in Thu Jun 24 21:56:06 2004 +1000 +++ b/config.h.in Thu Jun 24 23:04:04 2004 +1000 @@ -34,6 +34,12 @@ /* Define to 1 if you have the <netinet/in.h> header file. */ #undef HAVE_NETINET_IN_H +/* Define to 1 if you have the `regcomp' function. */ +#undef HAVE_REGCOMP + +/* Define to 1 if you have the `regexec' function. */ +#undef HAVE_REGEXEC + /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF
--- a/configure.ac Thu Jun 24 21:56:06 2004 +1000 +++ b/configure.ac Thu Jun 24 23:04:04 2004 +1000 @@ -26,7 +26,7 @@ # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl]) -AC_CHECK_FUNCS([nanosleep time strftime syslog]) +AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([src/Makefile])
--- a/src/do_all_the_voodo_here.c Thu Jun 24 21:56:06 2004 +1000 +++ b/src/do_all_the_voodo_here.c Thu Jun 24 23:04:04 2004 +1000 @@ -115,6 +115,7 @@ if(prefix) { if(strncmp(hdrline, "Subject: ", 9) == 0) { unqp = cleanquotedp(hdrline + 9); + log_error(LOG_ARGS, "unqp = [%s]", unqp); if(strstr(hdrline + 9, prefix) == NULL && strstr(unqp, prefix) == NULL) { subject = concatstr(4,