summaryrefslogtreecommitdiff
path: root/www/mod_php4
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2001-08-08 21:20:16 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2001-08-08 21:20:16 +0000
commitf863fba57225c98def74a9d0232ff2f002fd5c42 (patch)
tree983d8392000c5a27c1189d26915aa4d2da4ea575 /www/mod_php4
parentMove freetype support into GD support and switch to freetype2. GD (diff)
Add support for OpenLDAP2.
Note that OpenLDAP1 and OpenLDAP are mutually exclusive, because the corresponding ports install some common files. PR: ports/29118 Submitted by: Chris Knight <chris@aims.com.au>
Notes
Notes: svn path=/head/; revision=45985
Diffstat (limited to 'www/mod_php4')
-rw-r--r--www/mod_php4/scripts/configure.php25
1 files changed, 23 insertions, 2 deletions
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index 40c068fceac4..caaf690fc41a 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/scripts/configure.php
@@ -25,7 +25,8 @@ SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \
SybaseCT "Sybase/MS-SQL database support (CT-lib)" OFF \
Interbase "Interbase 6 database support (Firebird)" OFF \
dBase "dBase database support" OFF \
-OpenLDAP "OpenLDAP support" OFF \
+OpenLDAP1 "OpenLDAP 1.x support" OFF \
+OpenLDAP2 "OpenLDAP 2.x support" OFF \
OpenSSL "OpenSSL support" OFF \
SNMP "SNMP support" OFF \
XML "XML support" OFF \
@@ -153,13 +154,33 @@ while [ "$1" ]; do
\"dBase\")
echo "CONFIGURE_ARGS+=--with-dbase"
;;
- \"OpenLDAP\")
+ \"OpenLDAP1\")
echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap"
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
+ if [ "$OPENLDAP2" ]; then
+ echo "OpenLDAP1 and OpenLDAP2 are mutually exclusive." > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
+ exit 1
+ fi
+ if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
+ LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
+ fi
+ OPENLDAP1=1
+ ;;
+ \"OpenLDAP2\")
+ echo "LIB_DEPENDS+= ldap.2:\${PORTSDIR}/net/openldap2"
+ echo "LIB_DEPENDS+= lber.2:\${PORTSDIR}/net/openldap2"
+ echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
+ if [ "$OPENLDAP1" ]; then
+ echo "OpenLDAP1 and OpenLDAP2 are mutually exclusive." > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
+ exit 1
+ fi
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
fi
+ OPENLDAP2=1
;;
\"OpenSSL\")
echo "USE_OPENSSL=yes"