summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-23 12:07:15 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-23 12:07:15 +0000
commit64e53c4fd8a5da944de57716b137a7dff5e67b63 (patch)
treec2c46142da232ecf13395011811b5a0bfaea0ff5
parentd5209daeb117af7378c3c0088caaa2ba67ea5cdf (diff)
downloadopenocd_libswd-64e53c4fd8a5da944de57716b137a7dff5e67b63.tar.gz
openocd_libswd-64e53c4fd8a5da944de57716b137a7dff5e67b63.tar.bz2
openocd_libswd-64e53c4fd8a5da944de57716b137a7dff5e67b63.tar.xz
openocd_libswd-64e53c4fd8a5da944de57716b137a7dff5e67b63.zip
- AC_CHECK_FILE not supported when cross-compiling
git-svn-id: svn://svn.berlios.de/openocd/trunk@1361 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--configure.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 78290838..792e6f8c 100644
--- a/configure.in
+++ b/configure.in
@@ -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.