build: don't try to generate docs when cross-compiling

When cross-compiling don't run the generated bison to update the docs.
Reported by Aaro Koskinen.
<http://lists.gnu.org/archive/html/bison-patches/2014-03/msg00000.html>

* configure.ac (CROSS_COMPILING): New.
* doc/local.mk: Use it.
This commit is contained in:
Akim Demaille
2014-08-30 00:36:20 +03:00
parent 8386f6ef28
commit a16074bb09
3 changed files with 11 additions and 1 deletions

View File

@@ -237,6 +237,9 @@ case $VALGRIND:$host_os in
;;
esac
# Whether we cannot run the compiled bison.
AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes])
AM_MISSING_PROG([AUTOM4TE], [autom4te])
# Needed by tests/atlocal.in.
AC_SUBST([GCC])