show git commit number even when cross-compiling
authorJie Zhang <jie.zhang@analog.com>
Mon, 15 Aug 2011 14:52:11 +0000 (10:52 -0400)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 15 Aug 2011 15:35:29 +0000 (16:35 +0100)
AC_CHECK_FILE will die when cross-compiling. So don't use it to test the existence of guess-rev.sh.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
configure.in

index dfa1e8ffaf0a88614c306ffccfeb1ca3c1a393f9..3c0056ccc49acb62468d1ca13946097cb1dfc2be 100644 (file)
@@ -143,20 +143,14 @@ is_mingw=no
 is_win32=no
 is_darwin=no
 
 is_win32=no
 is_darwin=no
 
-if test $cross_compiling = no; then
-  # guess-rev.sh only exists in the repository, not in the released archives
-  AC_CHECK_FILE("$srcdir/guess-rev.sh", has_guess_rev=yes, has_guess_rev=no)
-
-  AC_MSG_CHECKING([whether to build a release])
-  if test $has_guess_rev = no; then
-    build_release=yes
-  else
-    build_release=no
-  fi
-  AC_MSG_RESULT($build_release)
+# guess-rev.sh only exists in the repository, not in the released archives
+AC_MSG_CHECKING([whether to build a release])
+if test -f $srcdir/guess-rev.sh ; then
+  build_release=no
 else
   build_release=yes
 fi
 else
   build_release=yes
 fi
+AC_MSG_RESULT($build_release)
 
 # We are not *ALWAYS* being installed in the standard place.
 # We may be installed in a "tool-build" specific location.
 
 # We are not *ALWAYS* being installed in the standard place.
 # We may be installed in a "tool-build" specific location.

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)