diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-09-08 18:37:13 +0800 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-09-08 18:37:13 +0800 |
commit | eb5c68b0c07b9d3352ba3dd7b5ef20d79b1171ce (patch) | |
tree | 9aefa3fb666bd92c7a8b5db3a2c8c9798bffdb8e /net | |
parent | 82697c754375c80d2b377314663cf3a666d4391e (diff) | |
download | freebsd-ports-gnome-eb5c68b0c07b9d3352ba3dd7b5ef20d79b1171ce.tar.gz freebsd-ports-gnome-eb5c68b0c07b9d3352ba3dd7b5ef20d79b1171ce.tar.zst freebsd-ports-gnome-eb5c68b0c07b9d3352ba3dd7b5ef20d79b1171ce.zip |
Fix autodetection of some ldap functions.
PR: ports/85700
Submitted by: Brian A. Seklecki <lavalamp@spiritual-machines.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/php5-ldap/files/patch-config.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/php5-ldap/files/patch-config.m4 b/net/php5-ldap/files/patch-config.m4 new file mode 100644 index 000000000000..a30ff8d70ddb --- /dev/null +++ b/net/php5-ldap/files/patch-config.m4 @@ -0,0 +1,22 @@ +--- config.m4.orig Sun May 8 17:59:18 2005 ++++ config.m4 Thu Sep 8 12:29:22 2005 +@@ -161,17 +161,18 @@ + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LDFLAGS=$LDFLAGS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" ++ LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD" + AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc, + [AC_TRY_COMPILE([#include <ldap.h>], [ldap_set_rebind_proc(0,0,0)], + ac_cv_3arg_setrebindproc=yes, ac_cv_3arg_setrebindproc=no)]) + if test "$ac_cv_3arg_setrebindproc" = yes; then + AC_DEFINE(HAVE_3ARG_SETREBINDPROC,1,[Whether 3 arg set_rebind_proc()]) + fi +- CPPFLAGS=$_SAVE_CPPFLAGS + + dnl Solaris 2.8 claims to be 2004 API, but doesn't have + dnl ldap_parse_reference() nor ldap_start_tls_s() + AC_CHECK_FUNCS([ldap_parse_result ldap_parse_reference ldap_start_tls_s]) ++ CPPFLAGS=$_SAVE_CPPFLAGS + LDFLAGS=$_SAVE_LDFLAGS + + dnl |