[pubcookie-dev] Pubcookie 3.3.1 on Solaris 8: keyclient build
failed: herror() is in libresolv
Paul Fardy
paul.fardy at utoronto.ca
Wed Jul 19 08:59:20 PDT 2006
Apologies about the timing. Submitted for your consideration:
--- configure.ac.orig 2006-07-19 11:49:49.000000000 -0400
+++ configure.ac 2006-07-19 11:49:54.000000000 -0400
@@ -349,6 +349,7 @@
# Checks for libraries.
AC_CHECK_LIB(socket,socket)
+AC_CHECK_LIB(resolv,herror)
AC_CHECK_LIB(nsl,gethostent)
AC_CHECK_LIB(dl,dlopen)
Curiously, the autoconf manual's comments on AC_CHECK_LIB seem rather
close to the mark:
> AC_CHECK_LIB requires some care in usage, and should be avoided in
> some common cases. Many standard functions like gethostbyname
> appear the standard C library on some hosts, and in special
> libraries like nsl on other hosts. On some hosts the special
> libraries contain variant implementations that you may not want to
> use. These days it is normally better to use AC_SEARCH_LIBS
> ([gethostbyname], [nsl]) instead of AC_CHECK_LIB([nsl],
> [gethostbyname]).
Paul
More information about the pubcookie-dev
mailing list