file search now only looks inside the specified directory

This commit is contained in:
darkeye 2001-09-02 14:07:50 +00:00
parent 8f7a0bb621
commit a251f4ad26
1 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@ dnl * looks for "lib-filename" and "header-filename" in the area of "prefix".
dnl * if found, "lib-variable" and "include-variable" are set to the dnl * if found, "lib-variable" and "include-variable" are set to the
dnl * respective paths. dnl * respective paths.
dnl * prefix is a single path dnl * prefix is a single path
dnl * libs are searched in prefix, prefix/lib, prefix/.., prefix/../lib dnl * libs are searched in prefix, prefix/lib
dnl * headers are searched in prefix, prefix/include, prefix/.., prefix/../include dnl * headers are searched in prefix, prefix/include,
dnl * dnl *
dnl * If one of them is not found, both "lib-variable", "include-variable" are dnl * If one of them is not found, both "lib-variable", "include-variable" are
dnl * set to the empty string. dnl * set to the empty string.
@ -41,9 +41,9 @@ dnl * by Florian Bomers
AC_DEFUN(LA_SEARCH_LIB,[ AC_DEFUN(LA_SEARCH_LIB,[
dnl look for lib dnl look for lib
LA_SEARCH_FILE($1, $3, $5 $5/lib $5/.. $5/../lib) LA_SEARCH_FILE($1, $3, $5 $5/lib )
dnl look for header. dnl look for header.
LA_SEARCH_FILE($2, $4, $5 $5/include $5/.. $5/../include) LA_SEARCH_FILE($2, $4, $5 $5/include )
if test ".$1" = "." || test ".$2" = "."; then if test ".$1" = "." || test ".$2" = "."; then
$1= $1=
$2= $2=