Russ Allbery wrote:
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket], [socket], ,
    [AC_CHECK_LIB([nsl], [socket], LIBS="$LIBS -lsocket -lnsl", , -lsocket)])

A macro based on this code is now in the Autoconf Macro Archive:

        http://autoconf-archive.cryp.to/lib_socket_nsl.html

Thanks to Russ for providing the core code!




_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to