Try to get build working on systems with krb runtime but not devel libs.
authorJim McDonough <jmcd@samba.org>
Mon, 3 Feb 2003 18:20:54 +0000 (18:20 +0000)
committerJim McDonough <jmcd@samba.org>
Mon, 3 Feb 2003 18:20:54 +0000 (18:20 +0000)
Let's not assume that because one dir exists the whole shebang is there...
(This used to be commit de8ffcad47a4e495615e0ad211316291075f3f6c)

source3/configure.in

index 394c940dc3713434d4e35c54c909f7aa08dbc74c..3ea21a20232354183dc884d0f751cb4eed2b2e86 100644 (file)
@@ -2018,7 +2018,7 @@ if test x$FOUND_KRB5 = x"no"; then
 #################################################
 # see if this box has the SuSE location for the heimdal kerberos implementation
 AC_MSG_CHECKING(for /usr/include/heimdal)
-if test -d /usr/include/heimdal; then
+if test -d /usr/include/heimdal -a -f /usr/lib/heimdal/lib/libkrb5.a; then
     LIBS="$LIBS -lkrb5"
     CFLAGS="$CFLAGS -I/usr/include/heimdal"
     CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
@@ -2033,7 +2033,7 @@ if test x$FOUND_KRB5 = x"no"; then
 #################################################
 # see if this box has the RedHat location for kerberos
 AC_MSG_CHECKING(for /usr/kerberos)
-if test -d /usr/kerberos; then
+if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a ; then
     LIBS="$LIBS -lkrb5"
     LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
     CFLAGS="$CFLAGS -I/usr/kerberos/include"