summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-12-08 18:26:51 +0000
committerWerner Koch <wk@gnupg.org>2003-12-08 18:26:51 +0000
commit302007749109a4ee452c266c1acbd967591fa1cd (patch)
tree8526b7efed247210faeb3f349f7724d65418275c /autogen.sh
parent0036b9cf048d2d2d4c12d434af7979c7c3f242e4 (diff)
downloadlibgpg-error-302007749109a4ee452c266c1acbd967591fa1cd.tar.gz
Also test for msgmerge to detect presence of gettext-dev.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index c7e5789..dc9bf27 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
# Run this to generate all the initial makefiles, etc.
#
# Copyright (C) 2003 g10 Code GmbH
@@ -25,12 +25,12 @@ automake_vers=1.7.6
gettext_vers=0.12.1
-aclocal_vers="$automake_vers"
ACLOCAL=${ACLOCAL:-aclocal}
AUTOCONF=${AUTOCONF:-autoconf}
AUTOMAKE=${AUTOMAKE:-automake}
AUTOHEADER=${AUTOHEADER:-autoheader}
GETTEXT=${GETTEXT:-gettext}
+MSGMERGE=${MSGMERGE:-gettext}
DIE=no
cvtver () {
@@ -45,7 +45,8 @@ chkver () {
check_version () {
if ! chkver $1 $2 ; then
echo "**Error**: "\`$1\'" not installed or too old." >&2
- echo ' (version '$2' or newer is required)' >&2
+ echo ' Version '$2' or newer is required.' >&2
+ [ -n "$3" ] && echo ' Note that this is part of '\`$3\''.' >&2
DIE="yes"
return 1
else
@@ -56,9 +57,11 @@ check_version () {
check_version $AUTOCONF $autoconf_vers
if check_version $AUTOMAKE $automake_vers ; then
- check_version $ACLOCAL $aclocal_vers
+ check_version $ACLOCAL $automake_vers automake
+fi
+if check_version $GETTEXT $gettext_vers ; then
+ check_version $MSGMERGE $gettext_vers gettext
fi
-check_version $GETTEXT $gettext_vers
if test "$DIE" = "yes"; then
cat <<EOF