From: serassio <> Date: Sat, 22 Sep 2007 23:40:04 +0000 (+0000) Subject: Fix build error on systems where SASL include are available, but without link libraries. X-Git-Tag: SQUID_3_0_RC1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc0816d4f09dfb770222ee9191e4dfa748b9fc99;p=thirdparty%2Fsquid.git Fix build error on systems where SASL include are available, but without link libraries. On Sun Solaris 10 SASL include are available, but link libraries are missing. This add a configure check for both include and lib files. --- diff --git a/helpers/basic_auth/SASL/config.test b/helpers/basic_auth/SASL/config.test index 993ded8c70..7f4b817f33 100755 --- a/helpers/basic_auth/SASL/config.test +++ b/helpers/basic_auth/SASL/config.test @@ -1,5 +1,10 @@ #!/bin/sh if [ -f /usr/include/sasl.h -o -f /usr/include/sasl/sasl.h ]; then - exit 0 + 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 fi exit 1