[gnome-common] gnome-autogen: warn if $srcdir is undefined
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-common] gnome-autogen: warn if $srcdir is undefined
- Date: Tue, 23 Dec 2014 13:00:25 +0000 (UTC)
commit 8dd714645952ccaf99ab714e4af2c47718382b9e
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Tue Dec 23 03:47:47 2014 +0100
gnome-autogen: warn if $srcdir is undefined
Not setting $srcdir will lead to broken out-of-tree autogen call, so
let's ask to set it
https://bugzilla.gnome.org/show_bug.cgi?id=741891
macros2/gnome-autogen.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
old mode 100644
new mode 100755
index dace336..e4b7791
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -1,8 +1,6 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
-test "$srcdir" || srcdir=.
-
# default version requirements ...
test "$REQUIRED_AUTOMAKE_VERSION" || REQUIRED_AUTOMAKE_VERSION=1.11.2
test "$REQUIRED_AUTORECONF_VERSION" || REQUIRED_AUTORECONF_VERSION=2.53
@@ -62,6 +60,11 @@ check_deprecated GNOME2_PATH
check_deprecated USE_GNOME2_MACROS
check_deprecated PKG_NAME
+if [ -z "$srcdir" ]; then
+ printerr "***Warning*** \$srcdir is not defined, out of dir autogen is broken!"
+ srcdir=.
+fi
+
PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"`
# Usage:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]