summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-09-20 09:34:35 +0000
committerAndrew Tridgell <tridge@samba.org>2002-09-20 09:34:35 +0000
commit56b194e83538bcb6006a5ab1e00cdb493dd9ad7f (patch)
tree948536b1086d102618d1e1e387797e0d6d3dbad1
parent1bd2c6e1441ea8e54284c72dc07de741f88dbe90 (diff)
downloadsamba-56b194e83538bcb6006a5ab1e00cdb493dd9ad7f.tar.gz
samba-56b194e83538bcb6006a5ab1e00cdb493dd9ad7f.tar.xz
samba-56b194e83538bcb6006a5ab1e00cdb493dd9ad7f.zip
allow --with-krb5 to override the location of the kerberos libs on
redhat
-rw-r--r--source/configure.in30
1 files changed, 18 insertions, 12 deletions
diff --git a/source/configure.in b/source/configure.in
index d53886bc65d..7ae8ac90d38 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -1959,19 +1959,8 @@ AC_MSG_RESULT($with_ads_support)
if test x"$with_ads_support" = x"yes"; then
#################################################
- # see if this box has the RedHat location for kerberos
- AC_MSG_CHECKING(for /usr/kerberos)
- if test -d /usr/kerberos; then
- LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
- CFLAGS="$CFLAGS -I/usr/kerberos/include"
- CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
-
- #################################################
# check for location of Kerberos 5 install
+FOUND_KRB5=0
AC_MSG_CHECKING(for kerberos 5 install path)
AC_ARG_WITH(krb5,
[ --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)],
@@ -1985,11 +1974,28 @@ if test x"$with_ads_support" = x"yes"; then
CFLAGS="$CFLAGS -I$withval/include"
CPPFLAGS="$CPPFLAGS -I$withval/include"
LDFLAGS="$LDFLAGS -L$withval/lib"
+ FOUND_KRB5=1
;;
esac ],
AC_MSG_RESULT(no)
)
+
+if [ $FOUND_KRB5 = 0 ]; then
+#################################################
+# see if this box has the RedHat location for kerberos
+AC_MSG_CHECKING(for /usr/kerberos)
+if test -d /usr/kerberos; then
+ LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
+ CFLAGS="$CFLAGS -I/usr/kerberos/include"
+ CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi
+fi
+
+
# now check for krb5.h. Some systems have the libraries without the headers!
# note that this check is done here to allow for different kerberos
# include paths