aboutsummaryrefslogtreecommitdiffstats
path: root/macros/autogen.sh
diff options
context:
space:
mode:
authorChangwoo Ryu <cwryu@adam.kaist.ac.kr>1998-12-01 18:02:56 +0800
committerChangwoo Ryu <cwryu@src.gnome.org>1998-12-01 18:02:56 +0800
commitfa2ffdb513a8d8efbfb3076b9dfd0e6f1313d51a (patch)
treef010e70e97c20071c74d3706ec29c6f70025758a /macros/autogen.sh
parent6c6da37ef99e7a799fb8491f02ca7881a6574c3d (diff)
downloadgsoc2013-evolution-fa2ffdb513a8d8efbfb3076b9dfd0e6f1313d51a.tar.gz
gsoc2013-evolution-fa2ffdb513a8d8efbfb3076b9dfd0e6f1313d51a.tar.zst
gsoc2013-evolution-fa2ffdb513a8d8efbfb3076b9dfd0e6f1313d51a.zip
Run gettextize if needed. : Run libtoolize only if configure.in has
1998-12-01 Changwoo Ryu <cwryu@adam.kaist.ac.kr> * autogen.sh: Run gettextize if needed. : Run libtoolize only if configure.in has "^AM_PROG_LIBTOOL". svn path=/trunk/; revision=495
Diffstat (limited to 'macros/autogen.sh')
-rw-r--r--macros/autogen.sh32
1 files changed, 30 insertions, 2 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh
index f99299b0a0..2e9390e320 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -11,6 +11,7 @@ DIE=0
DIE=1
}
+(grep -q "^AM_PROG_LIBTOOL" configure.in) && {
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have "\`libtool\'" installed to compile Gnome."
@@ -18,6 +19,18 @@ DIE=0
echo "(or a newer version if it is available)"
DIE=1
}
+}
+
+grep -q "^AM_GNU_GETTEXT" configure.in && {
+grep -q "sed.*POTFILES" configure.in || \
+(gettext --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have "\`gettext\'" installed to compile Gnome."
+ echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+}
+}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
@@ -71,9 +84,24 @@ do
if test -d $k; then aclocalinclude="$aclocalinclude -I $k"; \
else echo "**Warning**: No such directory \`$k'. Ignored."; fi; \
done; \
- libtoolize --copy --force; \
+ if grep -q "^AM_GNU_GETTEXT" configure.in; then \
+ if grep -q "sed.*POTFILES" configure.in; then \
+ : do nothing -- we still have an old unmodified configure.in
+ else
+ echo "Running gettextize... Ignore non-fatal messages."; \
+ echo "no" | gettextize --force; \
+ fi \
+ fi; \
+ if grep -q "^AM_PROG_LIBTOOL" configure.in; then \
+ echo "Running libtoolize..."; \
+ libtoolize --force; \
+ fi
aclocal $aclocalinclude; \
- autoheader; automake --add-missing --gnu $am_opt; autoheader; autoconf)
+ if grep -q "^AM_CONFIG_HEADER" configure.in; then \
+ echo "Running autoheader..."; \
+ autoheader; \
+ fi
+ automake --add-missing --gnu $am_opt; autoconf)
fi
done