#!/bin/sh ### ### find LDAP libraries ### a quick hack, muquit, Jul-22-1999 ## exits with 1 if the lib is found , 0 otherwise # first check /usr/local/include dir=/usr/local/include lookfor=$1 if test -f $dir/$lookfor ; then echo "-I$dir" exit 1 fi # then check /usr/include dir=/usr/include if test -f $dir/$lookfor ; then echo "-I$dir" exit 1 fi # lastly check /usr/local/open-ldap/include dir=/usr/local/open-ldap/include if test -f $dir/$lookfor ; then echo "-I$dir" exit 1 fi exit 0