$NetBSD: patch-aa,v 1.2 2011/04/14 12:29:17 obache Exp $

--- configure.in.orig	2009-12-21 13:09:10.000000000 +0000
+++ configure.in
@@ -391,11 +391,11 @@ if test "$sievedir" != "no"; then
 	AC_CHECK_LIB(fl,main)
 
 	AC_CHECK_HEADERS(pcreposix.h rxposix.h)
-	if test "$ac_cv_header_pcreposix_h" == "yes"; then
+	if test "$ac_cv_header_pcreposix_h" = "yes"; then
 		LIBS="$LIBS -lpcre -lpcreposix";
 		AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
 	else 
-		if test "$ac_cv_header_rxposix_h" == "yes"; then
+		if test "$ac_cv_header_rxposix_h" = "yes"; then
 			LIBS="$LIBS -lrx"
 			AC_DEFINE(ENABLE_REGEX, [],
 				  [Do we have a regex library?])
@@ -1145,7 +1145,7 @@ dnl add perl cccdlflags when building li
 dnl libraries will be compiled as PIC if perl requires PIC objects
 dnl -- this is needed on NetBSD and Linux, but seems to cause problems on atleast Solaris --
     case "${target_os}" in
-        linux*|netbsd*)
+        linux*|netbsd*|dragonfly*)
             AC_MSG_CHECKING(for perl cccdlflags needed on "${target_os}")
             eval `${PERL} -V:cccdlflags`
             PERL_CCCDLFLAGS="$cccdlflags"
