Skip to content

Commit 72abc87

Browse files
fbrossongstrauss
authored andcommitted
[autobuild] move inet_pton detection later
HAVE_INET_PTON was probably not being defined on Solaris. While at it, also add detection for accept() in libnetwork for Haiku. github: closes #68
1 parent 9c49dc9 commit 72abc87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ dnl AC_FUNC_REALLOC
136136
AC_TYPE_SIGNAL
137137
AC_FUNC_STAT
138138
AC_FUNC_STRFTIME
139-
AC_CHECK_FUNCS([issetugid inet_pton])
140139

141140
if test -z "$PKG_CONFIG"; then
142141
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
@@ -284,6 +283,9 @@ AC_SEARCH_LIBS(socket,socket)
284283
AC_SEARCH_LIBS(gethostbyname,nsl socket)
285284
AC_SEARCH_LIBS(hstrerror,resolv)
286285

286+
dnl On Haiku accept() and friends are in libnetwork
287+
AC_SEARCH_LIBS(accept,network)
288+
287289
save_LIBS=$LIBS
288290
AC_SEARCH_LIBS(dlopen,dl,[
289291
AC_CHECK_HEADERS([dlfcn.h],[
@@ -692,7 +694,7 @@ case $host_os in
692694
* ) ;;
693695
esac
694696

695-
AC_CHECK_FUNCS([dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
697+
AC_CHECK_FUNCS([dup2 getcwd inet_ntoa inet_ntop inet_pton issetugid memset mmap munmap strchr \
696698
strdup strerror strstr strtol sendfile getopt socket lstat \
697699
gethostbyname poll epoll_ctl getrlimit chroot \
698700
getuid select signal pathconf madvise posix_fadvise posix_madvise \

0 commit comments

Comments
 (0)