(svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille)

This commit is contained in:
rubidium
2010-05-10 17:11:24 +00:00
parent fb84d465ed
commit a06b3c0646
3 changed files with 11 additions and 1 deletions

View File

@@ -2318,6 +2318,13 @@ detect_library() {
if [ -z "$res" ]; then
log 2 " trying /opt/local/include/$4$5... no"
fi
if [ -z "$res" ] && [ "$os" = "NETBSD" ]; then
eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
eval "res=\$$2"
if [ -z "$res" ]; then
log 2 " trying /usr/pkg/include/$4$5... no"
fi
fi
eval "res=\$$2"
if [ -n "$res" ] && ( [ -n "$force_static" ] || ( [ "$enable_static" != "0" ] && [ "$os" != "OSX" ] ) ); then