[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3626) res_query and Mac OS X

Thanks for the contribution.  I've committed what I think
might be a more robust detection of res_query to HEAD.
Please test.  -- Kurt

At 06:39 AM 4/2/2005, snu@opendarwin.org wrote:
>Full_Name: Finlay Dobbie
>Version: 2.2.24
>OS: Mac OS X v10.3
>URL: ftp://ftp.openldap.org/incoming/finlay-configure.in.patch
>Submission from: (NULL) (
>At the indicated URL is a patch which resolves the issue referred to in the FAQ
>at <http://www.openldap.org/faq/data/cache/1191.html>.
>Mac OS X v10.3 (Darwin 8) and later ship with both the BIND 8 and BIND 9 APIs.
>The BIND 8 API is in libSystem, and thus is picked up by autoconf's check for
>res_query. However, resolv.h defaults to the BIND 9 API, which is provided by
>libresolv. The workaround is either to #define BIND_8_COMPAT or add -lresolv to
>The attached patch uses AC_TRY_LINK to attempt to link a small program which
>attempts to call res_query, and if it fails, tries again with -lresolv.