mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Patch #25823 to control library dependency by Bernard Caffarelli
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28067 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c14d95bfe0
commit
1666cb0a26
3 changed files with 7318 additions and 7422 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-12 Bernard Cafferelli <voyageursp@gmail.com>
|
||||
|
||||
* configure.ac: Add --disable-zeroconf option to control whether
|
||||
NSNetServices (and a dependency on libdns_sd) is enabled.
|
||||
|
||||
2009-03-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepBase/GSIArray.h:
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -1664,12 +1664,18 @@ AC_SUBST(HAVE_GNUTLS)
|
|||
# Check for NSNetServices
|
||||
#--------------------------------------------------------------------
|
||||
HAVE_MDNS=0
|
||||
AC_CHECK_HEADERS(dns_sd.h, have_mdns=yes, have_mdns=no)
|
||||
if test "$have_mdns" = "yes"; then
|
||||
AC_CHECK_LIB(dns_sd, DNSServiceBrowse, have_mdns=yes, have_mdns=no)
|
||||
AC_ARG_ENABLE(zeroconf,
|
||||
[ --disable-zeroconf Disable NSNetServices support],,
|
||||
enable_zeroconf=yes)
|
||||
|
||||
if test $enable_zeroconf = yes; then
|
||||
AC_CHECK_HEADERS(dns_sd.h, have_mdns=yes, have_mdns=no)
|
||||
if test "$have_mdns" = "yes"; then
|
||||
LIBS="-ldns_sd $LIBS"
|
||||
HAVE_MDNS=1
|
||||
AC_CHECK_LIB(dns_sd, DNSServiceBrowse, have_mdns=yes, have_mdns=no)
|
||||
if test "$have_mdns" = "yes"; then
|
||||
LIBS="-ldns_sd $LIBS"
|
||||
HAVE_MDNS=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(HAVE_MDNS)
|
||||
|
|
Loading…
Reference in a new issue