freebsd-ports/mail/cyrus-imapd24/files/extra-patch-configure.in
2010-11-29 19:02:28 +00:00

31 lines
1.2 KiB
Text

Index: configure.in
diff -u configure.in.orig configure.in
--- configure.in.orig 2010-11-30 03:21:50.422738671 +0900
+++ configure.in 2010-11-30 03:24:03.348497671 +0900
@@ -391,7 +391,7 @@
AC_CHECK_LIB(fl,main)
AC_CHECK_HEADER(pcreposix.h)
- if test "$ac_cv_header_pcreposix_h" == "yes"; then
+ if test "$ac_cv_header_pcreposix_h" = "yes"; then
AC_MSG_CHECKING(for utf8 enabled pcre)
AC_CACHE_VAL(cyrus_cv_pcre_utf8, AC_TRY_CPP([#include <pcreposix.h>
#ifndef REG_UTF8
@@ -401,7 +401,7 @@
else
cyrus_cv_pcre_utf8="no"
fi
- if test "$cyrus_cv_pcre_utf8" == "yes"; then
+ if test "$cyrus_cv_pcre_utf8" = "yes"; then
LIBS="$LIBS -lpcre -lpcreposix";
AC_DEFINE(ENABLE_REGEX, [], [Do we have a regex library?])
AC_DEFINE(HAVE_PCREPOSIX_H, [], [Do we have usable pcre library?])
@@ -1157,7 +1157,7 @@
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*|freebsd*)
AC_MSG_CHECKING(for perl cccdlflags needed on "${target_os}")
eval `${PERL} -V:cccdlflags`
PERL_CCCDLFLAGS="$cccdlflags"