* aclocal.m4: Add support for --with-hesiod (and add it to
authorTom Yu <tlyu@mit.edu>
Thu, 7 Aug 1997 00:26:30 +0000 (00:26 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 7 Aug 1997 00:26:30 +0000 (00:26 +0000)
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

src/ChangeLog
src/aclocal.m4

index 4ea4729ca20545851222b1dc88a2d8f73c0ab89f..87db266ad1a64dac2ae36c0941292d0c00b7b2ee 100644 (file)
@@ -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
index 6fa159777772ccf0cba90fd9db9d3e82e00caee0..942237ef69d61de9748b9f1a73b8ca8b041576d7 100644 (file)
@@ -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)
@@ -935,6 +936,28 @@ else
 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