r19494: When building with a static Heimdal, make sure not to link against
authorGünther Deschner <gd@samba.org>
Wed, 25 Oct 2006 12:50:10 +0000 (12:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:39 +0000 (12:15 -0500)
-lgssapi_krb5. With that change I could sucessfully verify that Heimdal
support is still working nicely after the changes from jpeach.

Guenther
(This used to be commit 53d09487a003c00b7bb6c1a4824bda799b928bfc)

source3/configure.in

index 91d304f0f291ec1f0462d4e01e6749e78267fbc4..059643f38e55472b13755c6f050109700ae79f7a 100644 (file)
@@ -3429,7 +3429,9 @@ if test x"$with_ads_support" != x"no"; then
 
   ########################################################
   # now see if we can find the gssapi libs in standard paths
-  AC_CHECK_LIB_EXT(gssapi_krb5, KRB5_LIBS,gss_display_status,[],[],have_gssapi=yes)
+  if test x"$have_gssapi" != x"yes"; then
+     AC_CHECK_LIB_EXT(gssapi_krb5, KRB5_LIBS,gss_display_status,[],[],have_gssapi=yes)
+  fi
 
   AC_CHECK_FUNC_EXT(krb5_set_real_time, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(krb5_set_default_in_tkt_etypes, $KRB5_LIBS)