From: Henrik Nordstrom Date: Mon, 25 Jul 2011 13:12:53 +0000 (+0200) Subject: Simplify SASL config.test. If headers are there then X-Git-Tag: take08~55^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1b0ba8a0a8ef9b1cb1cd22aabb7a0fa8681c0db;p=thirdparty%2Fsquid.git Simplify SASL config.test. If headers are there then it's reasonable to expect libs as well being present. Note: not all archs places libs in /lib /usr/lib and full searching is overkill. --- diff --git a/helpers/basic_auth/SASL/config.test b/helpers/basic_auth/SASL/config.test index 7f4b817f33..8054c9555a 100755 --- a/helpers/basic_auth/SASL/config.test +++ b/helpers/basic_auth/SASL/config.test @@ -1,10 +1,8 @@ #!/bin/sh -if [ -f /usr/include/sasl.h -o -f /usr/include/sasl/sasl.h ]; then - if [ -f /usr/lib/libsasl.a -o -f /usr/lib/libsasl2.a ]; then - exit 0 - fi - if [ -f /usr/lib/libsasl.la -o -f /usr/lib/libsasl2.la ]; then - exit 0 - fi +if [ -f /usr/include/sasl.h ]; then + exit 0 +fi +if [ -f /usr/include/sasl/sasl.h ]; then + exit 0 fi exit 1