]> git.sur5r.net Git - openocd/commitdiff
- AC_CHECK_FILE not supported when cross-compiling
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 23 Jan 2009 12:07:15 +0000 (12:07 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 23 Jan 2009 12:07:15 +0000 (12:07 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1361 b42882b7-edfa-0310-969c-e2dbd0fdcd60

configure.in

index 7829083811d8a6d7d1dc10c4a3e6b370bd5e71f6..792e6f8c7401bf33c2319699e8bf9a24d373fec4 100644 (file)
@@ -33,9 +33,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.