1 --- libgcrypt-1.1.8/configure.ac~ Wed Jul 10 00:09:12 2002
2 +++ libgcrypt-1.1.8/configure.ac Wed Jul 10 00:09:12 2002
5 dnl Solaris needs -lsocket and -lnsl. Unisys system includes
6 dnl gethostbyname in libsocket but needs libnsl for socket.
7 -AC_CHECK_LIB(nsl, gethostbyname)
8 -AC_CHECK_LIB(socket, socket, ac_need_libsocket=1, ac_try_nsl=1)
9 -if test x$ac_need_libsocket = x1; then
10 - LIBS="$LIBS -lsocket"
12 -if test x$ac_try_nsl = x1; then
13 - AC_CHECK_LIB(nsl, gethostbyname, ac_need_libnsl=1)
14 - if test x$ac_need_libnsl = x1
20 +AC_CHECK_FUNC(socket, [], AC_CHECK_LIB(socket, socket))
21 +AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))
23 dnl Checks for header files.