f2fs-tools: Fix cross-build problem caused by AC_CHECK_FILE abuse
authorHelmut Grohne <helmut@subdivi.de>
Tue, 28 Aug 2018 00:29:41 +0000 (20:29 -0400)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:59:01 +0000 (23:59 -0700)
commite034e7627a10219a3e2d935581547bddcb29d23a
tree28d3445a5a70041a60c24040fb5d802a3112ef59
parent767ac306c80848d2b4a2adab076f3e9746d91bd2
f2fs-tools: Fix cross-build problem caused by AC_CHECK_FILE abuse

f2fs-tools fails to cross build from source, because its upstream
build system wrongly uses AC_CHECK_FILE. The purpose of the macro is
checking for files on the host system. However here it is used to
check whether a .git directory exists, which is a property of the
build place. A simple "test -d" should be used here. After doing so,
f2fs-tools cross builds successfully.

Addresses-Debian-Bug: #896909

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
configure.ac