summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-06-17 21:54:01 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-06-17 21:54:01 +0000
commitffa13a3a6b201f4398c74c4aa1bc7f8d3c7e2eb5 (patch)
tree913d70755e1b59b830f05bb558e29ecdecb1696f
parentI'm taking over this port for Blaz since he can't dedicate time to it (diff)
Add better way to detect if sasl is compiled with mysql
compile with mysql if sasl isn't installed as its sasl's default Submitted by: Stefan Esser <se@freebsd.org>
Notes
Notes: svn path=/head/; revision=44139
-rw-r--r--mail/postfix-current/scripts/configure.postfix7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/postfix-current/scripts/configure.postfix b/mail/postfix-current/scripts/configure.postfix
index 91d132027325..7f31ece6d5f6 100644
--- a/mail/postfix-current/scripts/configure.postfix
+++ b/mail/postfix-current/scripts/configure.postfix
@@ -68,7 +68,12 @@ while [ "$1" ]; do
echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libsasl.a:\${PORTSDIR}/security/cyrus-sasl"
echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/libsasl.a -lpam -lcrypt"
- if [ `strings ${PREFIX}/lib/libsasl.a | grep mysql_verify_password` = "mysql_verify_password" ]; then
+ if [ -f ${PREFIX}/lib/libsasl.a ]; then
+ if nm ${PREFIX}/lib/libsasl.a | grep -wq "mysql_verify_password"; then
+ echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
+ echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
+ fi
+ else
echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
fi