if test $withval = yes; then
if test -d $srcdir/../slang; then
mutt_cv_slang=$srcdir/../slang/src
if test $withval = yes; then
if test -d $srcdir/../slang; then
mutt_cv_slang=$srcdir/../slang/src
dnl ---Check to see if $withval is a source directory
if test -f $withval/src/slang.h; then
mutt_cv_slang=$withval/src
dnl ---Check to see if $withval is a source directory
if test -f $withval/src/slang.h; then
mutt_cv_slang=$withval/src
LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
else
dnl ---Must be installed somewhere
mutt_cv_slang=$withval
if test -d $withval/include/slang; then
LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
else
dnl ---Must be installed somewhere
mutt_cv_slang=$withval
if test -d $withval/include/slang; then