pkgsrc/print/hpijs/patches/patch-aa
dmcmahill fdb211b3ec add autoconf tests to find what librarary connect, socket, recv, send,
and gethostbyname are in.   On some systems, you need -lsocket and -lnsl
for these (solaris).  Tested on NetBSD and Solaris-9.
2005-03-26 13:59:33 +00:00

13 lines
460 B
Text

$NetBSD: patch-aa,v 1.4 2005/03/26 13:59:33 dmcmahill Exp $
--- configure.in.orig 2004-10-14 19:23:55.000000000 -0400
+++ configure.in
@@ -151,5 +151,8 @@ dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(strtod strtol)
AC_CHECK_FUNC(pow, , AC_CHECK_LIB(m, pow))
+AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))
+AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
+AC_CHECK_FUNCS(recv send connect)
AC_OUTPUT(Makefile)