$NetBSD: patch-ab,v 1.3 2011/09/09 11:56:19 obache Exp $

--- configure.orig	2011-09-08 18:03:46.000000000 +0000
+++ configure
@@ -7171,13 +7171,13 @@ fi
 
 done
 
-	if test "$ac_cv_header_pcreposix_h" == "yes"; then
+	if test "$ac_cv_header_pcreposix_h" = "yes"; then
 		LIBS="$LIBS -lpcre -lpcreposix";
 
 $as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
 
 	else
-		if test "$ac_cv_header_rxposix_h" == "yes"; then
+		if test "$ac_cv_header_rxposix_h" = "yes"; then
 			LIBS="$LIBS -lrx"
 
 $as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
@@ -10411,7 +10411,7 @@ elif test "${with_perl}" != "no"; then
     PERL_SUBDIRS="imap"
     PERL="${with_perl}"
     case "${target_os}" in
-        linux*|netbsd*|freebsd*)
+        linux*|netbsd*|freebsd*|dragonfly*)
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl cccdlflags needed on \"${target_os}\"" >&5
 $as_echo_n "checking for perl cccdlflags needed on \"${target_os}\"... " >&6; }
             eval `${PERL} -V:cccdlflags`
