From: Jim Meyering Date: Wed, 12 Jan 2000 08:06:27 +0000 (+0000) Subject: (jm_PREREQ_CANON_HOST): Move code from su/configure.in. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8377120da9446e78c83a39d5eac029d410e8b943;p=pspp (jm_PREREQ_CANON_HOST): Move code from su/configure.in. --- diff --git a/m4/prereq.m4 b/m4/prereq.m4 index d6372a57b6..664d5ef20a 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -13,12 +13,17 @@ AC_DEFUN(jm_PREREQ, AC_DEFUN(jm_PREREQ_CANON_HOST, [ + dnl Add any libraries as early as possible. + dnl In particular, inet_ntoa needs -lnsl at least on Solaris5.5.1, + dnl so we have to add -lnsl to LIBS before checking for that function. + AC_SEARCH_LIBS(gethostbyname, [inet nsl]) + + dnl These come from -lnsl on Solaris5.5.1. + AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa) + AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa) AC_CHECK_HEADERS(unistd.h string.h netdb.h sys/socket.h \ netinet/in.h arpa/inet.h) - - AC_HEADER_STDC - AC_FUNC_ALLOCA ]) AC_DEFUN(jm_PREREQ_QUOTEARG,