Detect Heimdal Kerberos on OpenBSD 4.2.
authorJames Peach <jpeach@samba.org>
Sun, 18 Nov 2007 21:56:19 +0000 (13:56 -0800)
committerJames Peach <jpeach@samba.org>
Sun, 18 Nov 2007 21:56:19 +0000 (13:56 -0800)
Patch from Sean McCreary <samba-technical@mcwest.org>.
(This used to be commit 8b0bee7c7688a966777f502c97922d7ad40d841c)

source3/configure.in

index d37e3925aa9286b320e25603f00f9025a04aba02..69a8e3f023d778efc08b4441a67e424b6ed91ff8 100644 (file)
@@ -3671,10 +3671,12 @@ if test x"$with_ads_support" != x"no"; then
           KRB5_CFLAGS="-I/usr/include/heimdal"
           KRB5_CPPFLAGS="-I/usr/include/heimdal"
           KRB5_LDFLAGS="-L/usr/lib/heimdal/lib"
+         FOUND_KRB5=yes
           AC_MSG_RESULT(yes)
       else
           KRB5_CFLAGS="-I/usr/include/heimdal"
           KRB5_CPPFLAGS="-I/usr/include/heimdal"
+         FOUND_KRB5=yes
           AC_MSG_RESULT(yes)
       fi
     else
@@ -3690,6 +3692,21 @@ if test x"$with_ads_support" != x"no"; then
       KRB5_LDFLAGS="-L/usr/kerberos/lib"
       KRB5_CFLAGS="-I/usr/kerberos/include"
       KRB5_CPPFLAGS="-I/usr/kerberos/include"
+      FOUND_KRB5=yes
+      AC_MSG_RESULT(yes)
+    else
+      AC_MSG_RESULT(no)
+    fi
+  fi
+
+  if test x$FOUND_KRB5 = x"no"; then
+    #################################################
+    # see if this box has the OpenBSD location for heimdal krb5
+    AC_MSG_CHECKING(for /usr/include/kerberosV)
+    if test -d /usr/include/kerberosV; then
+      KRB5_CPPFLAGS="-I/usr/include/kerberosV"
+      KRB5_LIBS="-lcrypto"
+      FOUND_KRB5=yes
       AC_MSG_RESULT(yes)
     else
       AC_MSG_RESULT(no)