Commits

youngs  committed 0e1e53d

2003-04-12 Steve Youngs <youngs@xemacs.org>

* Makefile (REQ_MIN_VERSION): New, set to '21 4'
(CHECK_VERSION): New.
(bad-version): New.

  • Participants
  • Parent commits 0647084

Comments (0)

Files changed (2)

+2003-04-12  Steve Youngs  <youngs@xemacs.org>
+
+	* Makefile (REQ_MIN_VERSION): New, set to '21 4'
+	(CHECK_VERSION): New.
+	(bad-version): New.
+
 2003-03-21  Ben Wing  <ben@xemacs.org>
 
 	* .cvsignore: Add latin-unity*.html.
 REQUIRES = mule-base mule-ucs leim fsf-compat dired
 endif
 
+# Latin-Unity is a unique package in that it does not compile or run
+# under XEmacsen 21.1, at least not "out of the box".  So here's
+# some really ugly Makefile voodoo that will allow people using XEmacs
+# 21.1 to build the packages without it blowing up in their faces.
+# Don't try this at home, kids.  SY.
+REQ_MIN_VERSION = 21 4
+include ../../Local.rules
+CHECK_VERSION =	$(XEMACS) -batch -eval '(princ (emacs-version>= $(value REQ_MIN_VERSION)))'
+
+ifeq ($(shell $(CHECK_VERSION)),t)
 ELCS = latin-unity.elc latin-unity-vars.elc latin-euro-input.elc \
        latin-unity-latin7.elc latin-latin7-input.elc latin-unity-latin9.elc \
        latin-unity-latin8.elc latin-unity-latin10.elc \
 #		-l latin-unity-vars -l latin-unity \
 #		-f latin-unity-install -f latin-unity-test \
 #		-eval "(write-file \"./latintest\" nil 'iso-2022-7)"
+else
+include ../../Version.rules
+
+bad-version: autoloads
+	@echo "************************ W A R N I N G *************************"
+	@echo "Building $(PACKAGE) with versions less than 21.4 is unsupported by"
+	@echo "the XEmacs Project."
+	@echo "If you need this feature, contact the package maintainer directly:"
+	@echo "$(MAINTAINER)"
+
+endif