diff options
author | François Revol <revol@free.fr> | 2019-03-10 19:29:00 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2019-03-10 19:31:40 +0100 |
commit | ab94edd1eedee0e12e8ad9df39e706c667299db7 (patch) | |
tree | eddb9b2228d1f9d2aae75cf52156734e6937904d /aclocal.m4 | |
parent | 70138fd197be64530f434ddc153248ca22233f0c (diff) |
aclocal: Check for libnetwork on Haiku
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -956,10 +956,19 @@ AC_DEFUN(AC_LBL_LIBRARY_NET, [ LIBS="-lsocket -lnsl $LIBS" ], [ - # - # We didn't find it. - # - AC_MSG_ERROR([getaddrinfo is required, but wasn't found]) + AC_CHECK_LIB(network, getaddrinfo, + [ + # + # OK, we found it in libnetwork on Haiku. + # + LIBS="-lnetwork $LIBS" + ], + [ + # + # We didn't find it. + # + AC_MSG_ERROR([getaddrinfo is required, but wasn't found]) + ]) ], -lnsl) # |