[evolution] Do not require gnome-common to run autogen.sh
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Do not require gnome-common to run autogen.sh
- Date: Wed, 27 Jan 2016 17:56:04 +0000 (UTC)
commit bbbfe5fcd9f53997ad7f2ffa858b7124b15f5421
Author: Milan Crha <mcrha redhat com>
Date: Wed Jan 27 18:54:59 2016 +0100
Do not require gnome-common to run autogen.sh
autogen.sh | 39 ++++++++++++++++++++++++++++-----------
1 files changed, 28 insertions(+), 11 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index ab5aa84..1d50ecb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,23 +4,40 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-PKG_NAME="Evolution"
-REQUIRED_AUTOCONF_VERSION=2.58
-REQUIRED_AUTOMAKE_VERSION=1.10
-REQUIRED_LIBTOOL_VERSION=2.2
-REQUIRED_INTLTOOL_VERSION=0.35.5
-
(test -f $srcdir/configure.ac \
&& test -f $srcdir/ChangeLog \
&& test -d $srcdir/shell) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level $PKG_NAME directory"
+ echo " top-level evolution directory"
exit 1
}
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from the GNOME git"
- exit 1
+olddir=`pwd`
+cd $srcdir
+
+check_exists() {
+ variable=`which $1`
+
+ if test -z $variable; then
+ echo "*** No $1 found, please intall it ***" >&2
+ exit 1
+ fi
}
-USE_GNOME2_MACROS=1 . gnome-autogen.sh
+check_exists aclocal
+check_exists autoreconf
+check_exists gtkdocize
+check_exists intltoolize
+
+m4dir=`autoconf --trace 'AC_CONFIG_MACRO_DIR:$1'`
+if [ -n "$m4dir" ]; then
+ mkdir -p $m4dir
+fi
+
+aclocal -I m4 || exit $?
+gtkdocize --copy || exit $?
+intltoolize --force --copy --automake || exit $?
+autoreconf --verbose --force --install -Wno-portability || exit $?
+
+cd $olddir
+test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]