openbsd-ports/www/php3/patches/patch-configure
brad bfe1386a12 - add pkgspec for c-client
- link with libcom_err_pic vs. libcom_err
2001-11-18 19:57:25 +00:00

70 lines
1.6 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2001/11/18 19:57:25 brad Exp $
--- configure.orig Fri Oct 20 19:05:17 2000
+++ configure Mon Oct 15 01:11:36 2001
@@ -5157,8 +5157,8 @@
fi
if test "$withval" != "no" && test "$withval" != "yes"; then
IMAP_DIR=$withval
- if test -f $IMAP_DIR/include/imap/mail.h; then
- IMAP_INC_DIR=$IMAP_DIR/include/imap
+ if test -f $IMAP_DIR/include/c-client/mail.h; then
+ IMAP_INC_DIR=$IMAP_DIR/include/c-client
else
IMAP_INC_DIR=$withval/include
fi
@@ -5329,6 +5329,54 @@
fi
+
+
+ unique=`echo $ac_n "gssapi$ac_c" | tr -c -d a-zA-Z0-9`
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
+ eval "LIBRARY$unique=set"
+
+ EXTRA_LIBS="$EXTRA_LIBS -lgssapi"
+
+ fi
+
+
+
+
+ unique=`echo $ac_n "asn1$ac_c" | tr -c -d a-zA-Z0-9`
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
+ eval "LIBRARY$unique=set"
+
+ EXTRA_LIBS="$EXTRA_LIBS -lasn1"
+
+ fi
+
+
+
+
+ unique=`echo $ac_n "krb5$ac_c" | tr -c -d a-zA-Z0-9`
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
+ eval "LIBRARY$unique=set"
+
+ EXTRA_LIBS="$EXTRA_LIBS -lkrb5"
+
+ fi
+
+
+
+
+ unique=`echo $ac_n "com_err$ac_c" | tr -c -d a-zA-Z0-9`
+ cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+ if test -n "$unique" && test "`eval $cmd`" = "" ; then
+ eval "LIBRARY$unique=set"
+
+ EXTRA_LIBS="$EXTRA_LIBS -lcom_err_pic"
+
+ fi
+
+
cat >> confdefs.h <<\EOF
#define HAVE_IMAP 1
EOF