fi
fi
])
-
-dnl DOCS_TARGET_REQUIRE_DIR
-dnl arg1: list of possible paths
-dnl arg2: file in dir know to exist
-dnl arg3: variable to store found path in
-dnl arg4: target that requires it
-
-AC_DEFUN(DOCS_TARGET_REQUIRE_DIR, [
- AC_MSG_CHECKING([for $2])
- AC_SUBST($3)
- for I in $1;
- do
- test -f "$I/$2" && $3="$I"
- done
-
- if test x$$3 = x; then
- if test x"$$4_REQUIRES" = x; then
- $4_REQUIRES="$3"
- else
- $4_REQUIRES="$$4_REQUIRES $3"
- fi
- AC_MSG_RESULT([not found])
- else
- AC_MSG_RESULT([found in $$3])
- fi
-])