# GNU help2man creates man pages from --help output; in many cases, this
# is sufficient, and obviates the need to maintain man pages separately.
-AM_MISSING_PROG(HELP2MAN, help2man)
+# However, this means invoking executables, which we generally cannot do
+# when cross-compiling, so we test to avoid that (the variable
+# "cross_compiling" is set by AC_PROG_CC).
+if test $cross_compiling = no; then
+ AM_MISSING_PROG(HELP2MAN, help2man)
+else
+ HELP2MAN=:
+fi
# i18n support from GNU gettext.
AM_GNU_GETTEXT_VERSION([0.15])