]> git.pld-linux.org Git - packages/squid.git/blob - squid-libnsl_fixes.patch
- drop obsolete files
[packages/squid.git] / squid-libnsl_fixes.patch
1 diff -urN squid-3.0.STABLE9.orig/configure.in squid-3.0.STABLE9/configure.in
2 --- squid-3.0.STABLE9.orig/configure.in 2008-09-09 18:06:45.000000000 +0200
3 +++ squid-3.0.STABLE9/configure.in      2008-09-19 07:43:53.042671496 +0200
4 @@ -36,6 +36,7 @@
5  
6  
7  CRYPTLIB=''
8 +NSLLIB=''
9  REGEXLIB=''    # -lregex
10  LIBREGEX=''    # libregex.a
11  
12 @@ -2205,8 +2206,10 @@
13  #include <sys/msg.h>])
14  
15  dnl Check for needed libraries
16 -AC_CHECK_LIB(nsl, main)
17 -AC_CHECK_LIB(socket, main)
18 +AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))
19 +AC_CHECK_LIB(nsl, yp_match, NSLLIB="-lnsl")
20 +AC_SUBST(NSLLIB)
21 +AC_SEARCH_LIBS(socket, socket)
22  dnl Check for Winsock only on MinGW, on Cygwin we must use emulated BSD socket API
23  case "$host_os" in
24    mingw|mingw32)
25 diff -urN squid-3.0.STABLE9.orig/helpers/basic_auth/YP/Makefile.am squid-3.0.STABLE9/helpers/basic_auth/YP/Makefile.am
26 --- squid-3.0.STABLE9.orig/helpers/basic_auth/YP/Makefile.am    2008-09-09 18:06:40.000000000 +0200
27 +++ squid-3.0.STABLE9/helpers/basic_auth/YP/Makefile.am 2008-09-19 07:44:22.396001181 +0200
28 @@ -7,5 +7,5 @@
29  
30  libexec_PROGRAMS = yp_auth
31  yp_auth_SOURCES        = yp_auth.c nis_support.h nis_support.c
32 -LDADD  = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
33 +LDADD  = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(NSLLIB) $(XTRA_LIBS)
34  INCLUDES       = -I$(top_srcdir)/include
This page took 0.024293 seconds and 3 git commands to generate.