Thanks.
Instead of saying that "hstrerror not in -lc means we do have -lresolv and
the function will be found there" blindly, we may want to have a nested
check.
AC_CHECK_LIB([c], [hstrerror], [NEEDS_RESOLV=],
AC_CHECK_LIB([resolv], [hstrerror], [NEEDS_RESOLV=YesPlease]))
But we do not have any provision for the case where -lc does not have it
and -lresolv does not have it either (or -lresolv does not exist) anyway,
so we might as well go with your patch.
I take it that swapping [if-found][if-not-found] parameters is what the
autoconf documentation warns against? That is, both -lc and -lresolv may
have it but -lresolv one may be a specialized one you would not normally
want.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html