fix build in case WITH_LDAP is specified

Noted By:	Damir Horvat <damir@x-si.org>, sudv@protek37.kem.ru
This commit is contained in:
Oliver Lehmann 2004-03-16 18:51:29 +00:00
parent b2cc5e0412
commit 7609f3e5a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104194
2 changed files with 18 additions and 10 deletions

View File

@ -192,8 +192,8 @@ EXTRA_DOCS= README INSTALL AUTHORS imap/ChangeLog
post-patch:
@${REINPLACE_CMD} -e 's|^case x$$lockmethod in|${TEST} \&\& &|g' \
${WRKSRC}/liblock/configure
@${REINPLACE_CMD} -e 's|$$VPOPMAILLIBS|& -lcrypt|g' \
${WRKSRC}/authlib/configure
@${REINPLACE_CMD} -e 's|$$VPOPMAILLIBS|& -lcrypt|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/authlib/configure
@${REINPLACE_CMD} -e 's|^@INSTALLAUTHMODULES@$$|& @AUTHMODULES@|' \
${WRKSRC}/authlib/installlist.in
@${REINPLACE_CMD} -e 's|%%INSTALL_MAN%%|${INSTALL_MAN}|' \

View File

@ -1,13 +1,21 @@
--- authlib/configure.orig Mon Apr 8 23:36:04 2002
+++ authlib/configure Mon Apr 8 23:35:24 2002
@@ -554,6 +554,10 @@
> $cache_file
--- authlib/configure.orig Wed Mar 3 05:54:13 2004
+++ authlib/configure Tue Mar 16 19:36:40 2004
@@ -1268,6 +1268,10 @@
{ (exit 1); exit 1; }; }
fi
+CFLAGS="$CFLAGS -I/usr/local/include"
+CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+LDFLAGS="-L/usr/local/lib $LDFLAGS"
+CFLAGS="$CFLAGS -I%%LOCALBASE%%/include"
+CPPFLAGS="$CPPFLAGS -I%%LOCALBASE%%/include"
+LDFLAGS="-L%%LOCALBASE%%/lib $LDFLAGS"
+
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -5088,6 +5092,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <sys/types.h>
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif