]> git.pld-linux.org Git - packages/squid.git/commitdiff
- -lbind or -lresolv unnecessary and unwanted
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 23 Oct 2004 14:56:38 +0000 (14:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-nolibs.patch -> 1.1

squid-nolibs.patch [new file with mode: 0644]

diff --git a/squid-nolibs.patch b/squid-nolibs.patch
new file mode 100644 (file)
index 0000000..aae4abb
--- /dev/null
@@ -0,0 +1,22 @@
+--- squid-2.5.STABLE7/configure.in.orig        2004-10-22 21:15:07.080978000 +0200
++++ squid-2.5.STABLE7/configure.in     2004-10-22 22:07:51.424648102 +0200
+@@ -1520,15 +1520,15 @@
+ AC_CHECK_LIB(bsd, main)
+ AC_CHECK_LIB(regex, main, [REGEXLIB="-lregex"])
+-AC_CHECK_LIB(bind, gethostbyname)
+-if test $ac_cv_lib_bind_gethostbyname = "no" ; then
++AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(bind, gethostbyname)])
++if test "$ac_cv_lib_bind_gethostbyname" != "yes" ; then
+     case "$host" in
+       i386-*-freebsd*)
+               echo "skipping libresolv checks for $host"
+               ;;
+       *)
+-              AC_CHECK_LIB(resolv, inet_aton, AC_CHECK_LIB(44bsd, inet_aton))
+-              AC_CHECK_LIB(resolv, main)
++              AC_CHECK_FUNC(inet_aton, [], [AC_CHECK_LIB(resolv, inet_aton, AC_CHECK_LIB(44bsd, inet_aton))])
++              dnl AC_CHECK_LIB(resolv, main)
+               ;;
+     esac
+ fi
This page took 0.096551 seconds and 4 git commands to generate.