blob: e2cf6234ca27767fbbd5bdb24b2f183b3285bd8c [file] [log] [blame]
diff -Nru vmailmgr-0.97.orig/authenticate/checkvpw.cc vmailmgr-0.97/authenticate/checkvpw.cc
--- vmailmgr-0.97.orig/authenticate/checkvpw.cc 2002-11-20 16:54:49.000000000 +0100
+++ vmailmgr-0.97/authenticate/checkvpw.cc 2009-06-20 12:56:27.000000000 +0200
@@ -105,6 +105,7 @@
return new auth_data(name, pass, stamp);
}
+#ifndef HAVE_STRCASESTR
char* strcasestr(const char* haystack, const char* needle)
{
for(size_t hlength = strlen(haystack), nlength = strlen(needle);
@@ -113,6 +114,7 @@
return (char*)haystack;
return 0;
}
+#endif /* HAVE_STRCASESTR */
unsigned find_maildir(int argc, const char* args[])
{
diff -Nru vmailmgr-0.97.orig/config.h.in vmailmgr-0.97/config.h.in
--- vmailmgr-0.97.orig/config.h.in 2009-06-20 12:58:25.000000000 +0200
+++ vmailmgr-0.97/config.h.in 2009-06-20 12:55:32.000000000 +0200
@@ -16,6 +16,9 @@
#undef VPWTABLE_CDB
#undef VPWTABLE_GDBM
+/* Define to 1 if you have the `strcasestr' function. */
+#undef HAVE_STRCASESTR
+
/* Define to 1 if you have the `crypt' function. */
#undef HAVE_CRYPT
diff -Nru vmailmgr-0.97.orig/configure.in vmailmgr-0.97/configure.in
--- vmailmgr-0.97.orig/configure.in 2009-06-20 12:58:17.000000000 +0200
+++ vmailmgr-0.97/configure.in 2009-06-20 12:55:09.000000000 +0200
@@ -112,6 +112,7 @@
dnl Checks for library functions.
AC_CHECK_FUNCS(gethostname gettimeofday mkdir putenv rmdir socket)
AC_CHECK_FUNCS(srandom random crypt)
+AC_CHECK_FUNCS(strcasestr)
cgidir='/var/www/localhost/cgi-bin'
AC_SUBST(cgidir)