summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1997-08-07 00:26:30 +0000
committerTom Yu <tlyu@mit.edu>1997-08-07 00:26:30 +0000
commit35c9a72267447138b3caa9dfce8c7c0d26d9b47b (patch)
tree20e19cc7cc9ad7ce2f24a3eb31f3364995a13fd9
parentc0154bf3c50350b2edb972669506536ecdcbc688 (diff)
downloadkrb5-35c9a72267447138b3caa9dfce8c7c0d26d9b47b.tar.gz
krb5-35c9a72267447138b3caa9dfce8c7c0d26d9b47b.tar.xz
krb5-35c9a72267447138b3caa9dfce8c7c0d26d9b47b.zip
* aclocal.m4: Add support for --with-hesiod (and add it to
CONFIG_RULES, as it's needed almost everywhere kadm5 gets linked). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10162 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/ChangeLog6
-rw-r--r--src/aclocal.m423
2 files changed, 29 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4ea4729ca2..87db266ad1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+Wed Aug 6 20:25:49 1997 Tom Yu <tlyu@mit.edu>
+
+ * aclocal.m4: Add support for --with-hesiod (and add it to
+ CONFIG_RULES, as it's needed almost everywhere kadm5 gets
+ linked).
+
Wed Jun 11 16:46:47 1997 Theodore Y. Ts'o <tytso@mit.edu>
* Makefile.in (MACFILES): Added the mac/gss files to the Macintosh
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 6fa1597777..942237ef69 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -67,6 +67,7 @@ WITH_CPPOPTS dnl
WITH_KRB4 dnl
AC_CONST dnl
WITH_NETLIB dnl
+WITH_HESIOD dnl
KRB_INCLUDE dnl
AC_ARG_PROGRAM dnl
AC_SUBST(subdirs)
@@ -936,6 +937,28 @@ fi
])dnl
dnl
+dnl WITH_HESIOD
+dnl
+AC_DEFUN(WITH_HESIOD,
+[AC_ARG_WITH(hesiod, [ --with-hesiod=path compile with hesiod support],
+ hesiod=$with_hesiod, with_hesiod=no)
+if test "$hesiod" != "no"; then
+ HESIOD_DEFS=-DHESIOD
+ AC_CHECK_LIB(resolv, res_send, res_lib=-lresolv)
+ if test "$hesiod" != "yes"; then
+ HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
+ else
+ HESIOD_LIBS="-lhesiod $res_lib"
+ fi
+else
+ HESIOD_DEFS=
+ HESIOD_LIBS=
+fi
+AC_SUBST(HESIOD_DEFS)
+AC_SUBST(HESIOD_LIBS)])
+
+
+dnl
dnl KRB5_BUILD_LIBRARY
dnl
dnl Pull in the necessary stuff to create the libraries.