summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-09-05 13:26:10 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:01 -0500
commit031f4681472f56c36441b43612b4babfa24288a3 (patch)
tree0afef293c96fd35846c5ba4b1f20a6f52df4377f
parent5f302fc9cd5c871e26def230a8456f17c104baf9 (diff)
downloadsamba-031f4681472f56c36441b43612b4babfa24288a3.tar.gz
samba-031f4681472f56c36441b43612b4babfa24288a3.tar.bz2
samba-031f4681472f56c36441b43612b4babfa24288a3.zip
Complain when when dia version is < 0.93 and $DISPLAY is not set
(This used to be commit 9e2e51ba18fcefc7aa72f4f9aa846814bf44fdf7)
-rw-r--r--docs/configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/configure.in b/docs/configure.in
index 1471e43070..2ca88d4330 100644
--- a/docs/configure.in
+++ b/docs/configure.in
@@ -41,6 +41,20 @@ AC_SUBST(SAMBASOURCEDIR)
DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, ALL)
+
+# Check dia version number
+[ DIA_VERSION=`dia -v | egrep -o '([0-9]+)\.([0-9]+)'`]
+DIA_MAJ_VERSION=`echo $DIA_VERSION | cut -d . -f 1`
+DIA_MIN_VERSION=`echo $DIA_VERSION | cut -d . -f 2`
+
+if test "$DIA_MAJ_VERSION" -le "0"
+then
+ if test "$DIA_MIN_VERSION" -le "92" && test -z "$DISPLAY"
+ then
+ AC_MSG_ERROR([Dia below 0.93 requires an X environment. Set \$DISPLAY or install Dia 0.93 or higher])
+ fi
+fi
+
DOCS_TARGET_REQUIRE_PROGRAM(MAKEINDEX, makeindex, LATEX)
DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)