summaryrefslogtreecommitdiff
path: root/www/apache6
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-12-22 13:04:39 +0000
committergrant <grant@pkgsrc.org>2002-12-22 13:04:39 +0000
commit276042c696ab9165c56af0042681807371e751a5 (patch)
tree8a38fc6c0e4db4d3128a1ed89474a88113f873cb /www/apache6
parent3b91c7b547bd7b7980046cd0eae7e2066598635d (diff)
downloadpkgsrc-276042c696ab9165c56af0042681807371e751a5.tar.gz
Revert to previous behavior and use db1 functions in libc if they are
present, rather than installing databases/db (affects NetBSD, Linux, Darwin and possibly others). As suggested by Kimmo Suominen.
Diffstat (limited to 'www/apache6')
-rw-r--r--www/apache6/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile
index 926b081f2c8..c613e5dc7b4 100644
--- a/www/apache6/Makefile
+++ b/www/apache6/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.65 2002/12/19 14:20:09 grant Exp $
+# $NetBSD: Makefile,v 1.66 2002/12/22 13:04:40 grant Exp $
#
# This package does not compile in mod_ssl support hooks, as it conflicts
# with IPv6-enable patch.
@@ -112,14 +112,20 @@ LINK_LIBGCC_LDFLAGS= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
MAKE_ENV+= LINK_LIBGCC_LDFLAGS="${LINK_LIBGCC_LDFLAGS}"
.endif
+# Use operating system's db1 functions (where available)
.include "../../databases/db/buildlink2.mk"
BUILDLINK_DEPENDS.db= db>=2.7.7
+
+.if defined(BUILDLINK_PREFIX.db_DEFAULT)
CONFIGURE_ENV+= INCLUDES="-I${BUILDLINK_PREFIX.db}/include/db2"
-CONFIGURE_ENV+= LIBS="-ldb2"
-.if ${OPSYS} == "SunOS"
-LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib
+# on Solaris, we also need libdbm
+. if ${OPSYS} == "SunOS"
CONFIGURE_ENV+= LIBS="-ldbm -ldb2"
+LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib
+. else
+CONFIGURE_ENV+= LIBS="-ldb2"
+. endif
.endif
BUILD_DEFS+= APACHE_CUSTOM_CFLAGS