fi
test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
-AC_CHECK_LIB(resolv, res_query, RESOLV="$RESOLV -lresolv")
+AC_CHECK_LIB(resolv, res_query,
+ RESOLV="$RESOLV -lresolv",
+ [
+ AC_MSG_ERROR(libresolv was not found. Citadel requires the resolver library.)
+ ]
+)
if test "x$with_ncurses" != "xno"; then
AC_SEARCH_LIBS(tgetent, [ncurses curses termcap])
u_char bytes[1024];
HEADER header;
} answer;
-#else
- char buf[SIZ];
- FILE *fp;
#endif
int ret;
/*
* No smart-host? Look up the best MX for a site.
- */
-
-#ifndef HAVE_RESOLV_H
-
- /*
- * On systems with b0rken or non-standard resolver libraries, learn
- * the MX records by calling "nslookup" from the command line.
- *
- * Someday.
- *
- */
-
- return(0);
-
-#else /* HAVE_RESOLV_H */
-
- /*
- * Make a call to the standard resolver library.
+ * Make a call to the resolver library.
*/
ret = res_query(
}
}
}
-#endif /* HAVE_RESOLV_H */
/* Sort the MX records by preference */
if (num_mxrecs > 1) {