Mike Frysinger <[EMAIL PROTECTED]> wrote: > in coreutils-6.9, the df prog (DF_PROG) is only built when gl_cv_fs_space > evaluates to "yes" ... this variable is set up in m4/fsusage.m4 in > gl_FILE_SYSTEM_USAGE > > unfortunately, pretty much all of the tests are AC_TRY_RUN tests (every single > one that matters for Linux is for sure) ... so when cross-compiling coreutils > for a linux target, the df utility will never be built as all of these tests > will set gl_cv_fs_space to no > > is there any final fall back compile-only test we can come up with here ?
There may be, for very limited cases, but I doubt it's worthwhile: too much risk of false-positive. When cross-compiling, the recommended approach is to prime autoconf's cache, using your knowledge of the target system. E.g., fu_cv_sys_stat_statvfs=yes ./configure That will make the gl_FILE_SYSTEM_USAGE test pass, which causes gl_FSUSAGE to set gl_cv_fs_space=yes, and df will build. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
