X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=configure.in;h=e6c6473e41e255083d05cdf87e998f47df13d3ea;hb=f8c97a5d2e15c630479406cf5cc6a6e384336110;hp=7829083811d8a6d7d1dc10c4a3e6b370bd5e71f6;hpb=49e045faa4399bdbf410ebbcba063d68de35f675;p=openocd.git diff --git a/configure.in b/configure.in index 7829083811..e6c6473e41 100644 --- a/configure.in +++ b/configure.in @@ -11,6 +11,7 @@ AC_CHECK_HEADERS(sys/param.h) AC_CHECK_HEADERS(sys/time.h) AC_CHECK_HEADERS(elf.h) AC_CHECK_HEADERS(strings.h) +AC_CHECK_HEADERS(stdbool.h) AC_HEADER_TIME @@ -33,9 +34,11 @@ AC_ARG_ENABLE(release, AS_HELP_STRING([--enable-release], [Enable Release Build, default no]), [build_release=$enableval], [build_release=no]) -if test $build_release = no; then - # check we can find guess-rev.sh - AC_CHECK_FILE("$srcdir/guess-rev.sh", build_release=no, build_release=yes) +if test $cross_compiling = no; then + if test $build_release = no; then + # check we can find guess-rev.sh + AC_CHECK_FILE("$srcdir/guess-rev.sh", build_release=no, build_release=yes) + fi fi # We are not *ALWAYS* being installed in the standard place.