]>
Commit | Line | Data |
---|---|---|
bc4f22f9 | 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 | |
3 | @@ -320,19 +320,8 @@ | |
4 | ||
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" | |
11 | -fi | |
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 | |
15 | - then | |
16 | - LIBS="$LIBS -lnsl" | |
17 | - fi | |
18 | -fi | |
19 | - | |
20 | +AC_CHECK_FUNC(socket, [], AC_CHECK_LIB(socket, socket)) | |
21 | +AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname)) | |
22 | ||
23 | dnl Checks for header files. | |
24 | AC_HEADER_STDC |