[beast: 12/23] BUILD: let --enable-devel-mode=auto decide 'no' if $srcdir/.git is missing
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 12/23] BUILD: let --enable-devel-mode=auto decide 'no' if $srcdir/.git is missing
- Date: Wed, 14 Oct 2015 07:00:25 +0000 (UTC)
commit 22a1c5a3a6a2e6e76aba88112dcacce8ff972a53
Author: Tim Janik <timj gnu org>
Date: Thu Oct 8 22:55:07 2015 +0200
BUILD: let --enable-devel-mode=auto decide 'no' if $srcdir/.git is missing
Signed-off-by: Tim Janik <timj gnu org>
configure.ac | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7b0f9ac..5a5a9bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -632,7 +632,8 @@ AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database)
# check for development build rules, these usually require acess to .git/
# if 'auto', enable devel mode for odd (development) versions
AC_MSG_CHECKING(for ENABLE_DEVEL_MODE)
-[test x"$enable_devel_mode" = xauto && { echo " $BST_MICRO_VERSION" | grep -q '[13579]$' ; } &&
enable_devel_mode=yes]
+[test x"$enable_devel_mode" = xauto -a -d "$srcdir/.git/" &&
+ { echo " $BST_MICRO_VERSION" | grep -q '[13579]$' ; } && enable_devel_mode=yes]
test x"$enable_devel_mode" = xyes || enable_devel_mode=no
AM_CONDITIONAL(ENABLE_DEVEL_MODE, test x"$enable_devel_mode" = xyes)
AC_MSG_RESULT([$enable_devel_mode])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]