bf54fbed126ec3d459af40ea370ffadacd31c76dJakub HrozekAC_SUBST(RESOLV_CFLAGS)
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub HrozekAC_SUBST(RESOLV_LIBS)
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub Hrozek# Some unit tests require libresolv to fake DNS packets
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub HrozekSSS_AC_EXPAND_LIB_DIR()
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub HrozekAC_CHECK_LIB([resolv],
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub Hrozek [ns_name_compress],
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub Hrozek [RESOLV_LIBS="-L$sss_extra_libdir -lresolv"],
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub Hrozek [AC_MSG_WARN([No libresolv detected, some tests will not run])],
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub Hrozek [-L$sss_extra_libdir])
bf54fbed126ec3d459af40ea370ffadacd31c76dJakub HrozekAM_CONDITIONAL([HAVE_LIBRESOLV], [test x"$RESOLV_LIBS" != "x"])