diff options
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
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. |